From 15e205cc01dda1794dc3ea04639a0fb8c0525535 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Sun, 26 Mar 2023 15:45:07 +0300 Subject: [PATCH] Change HLS ID format --- cmd/hls/hls.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/hls/hls.go b/cmd/hls/hls.go index 334a9037..e9658538 100644 --- a/cmd/hls/hls.go +++ b/cmd/hls/hls.go @@ -10,7 +10,6 @@ import ( "github.com/AlexxIT/go2rtc/pkg/tcp" "github.com/rs/zerolog/log" "net/http" - "strconv" "sync" "time" ) @@ -105,7 +104,7 @@ func handlerStream(w http.ResponseWriter, r *http.Request) { cons.Start() - sid := strconv.FormatInt(time.Now().UnixNano(), 10) + sid := core.RandString(8, 62) // two segments important for Chromecast if medias != nil {