diff --git a/cmd/hls/hls.go b/cmd/hls/hls.go index 32618c64..18031e29 100644 --- a/cmd/hls/hls.go +++ b/cmd/hls/hls.go @@ -5,8 +5,8 @@ import ( "github.com/AlexxIT/go2rtc/cmd/api" "github.com/AlexxIT/go2rtc/cmd/streams" "github.com/AlexxIT/go2rtc/pkg/mp4" + "github.com/AlexxIT/go2rtc/pkg/mpegts" "github.com/AlexxIT/go2rtc/pkg/streamer" - "github.com/AlexxIT/go2rtc/pkg/ts" "github.com/rs/zerolog/log" "net/http" "strconv" @@ -75,7 +75,7 @@ func handlerStream(w http.ResponseWriter, r *http.Request) { Medias: medias, } } else { - cons = &ts.Consumer{ + cons = &mpegts.Consumer{ RemoteAddr: r.RemoteAddr, UserAgent: r.UserAgent(), } diff --git a/pkg/ts/ts.go b/pkg/mpegts/ts.go similarity index 99% rename from pkg/ts/ts.go rename to pkg/mpegts/ts.go index 7587c1b5..e9f0051b 100644 --- a/pkg/ts/ts.go +++ b/pkg/mpegts/ts.go @@ -1,4 +1,4 @@ -package ts +package mpegts import ( "bytes"