Move ts to mpegts package

This commit is contained in:
Alexey Khit
2023-02-13 15:39:34 +03:00
parent 3f22c010ce
commit 5b1ec08341
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"github.com/AlexxIT/go2rtc/cmd/api" "github.com/AlexxIT/go2rtc/cmd/api"
"github.com/AlexxIT/go2rtc/cmd/streams" "github.com/AlexxIT/go2rtc/cmd/streams"
"github.com/AlexxIT/go2rtc/pkg/mp4" "github.com/AlexxIT/go2rtc/pkg/mp4"
"github.com/AlexxIT/go2rtc/pkg/mpegts"
"github.com/AlexxIT/go2rtc/pkg/streamer" "github.com/AlexxIT/go2rtc/pkg/streamer"
"github.com/AlexxIT/go2rtc/pkg/ts"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"net/http" "net/http"
"strconv" "strconv"
@@ -75,7 +75,7 @@ func handlerStream(w http.ResponseWriter, r *http.Request) {
Medias: medias, Medias: medias,
} }
} else { } else {
cons = &ts.Consumer{ cons = &mpegts.Consumer{
RemoteAddr: r.RemoteAddr, RemoteAddr: r.RemoteAddr,
UserAgent: r.UserAgent(), UserAgent: r.UserAgent(),
} }
+1 -1
View File
@@ -1,4 +1,4 @@
package ts package mpegts
import ( import (
"bytes" "bytes"