Change HLS ID format
This commit is contained in:
+1
-2
@@ -10,7 +10,6 @@ import (
|
|||||||
"github.com/AlexxIT/go2rtc/pkg/tcp"
|
"github.com/AlexxIT/go2rtc/pkg/tcp"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@@ -105,7 +104,7 @@ func handlerStream(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
cons.Start()
|
cons.Start()
|
||||||
|
|
||||||
sid := strconv.FormatInt(time.Now().UnixNano(), 10)
|
sid := core.RandString(8, 62)
|
||||||
|
|
||||||
// two segments important for Chromecast
|
// two segments important for Chromecast
|
||||||
if medias != nil {
|
if medias != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user