simplify examples (#493)

This commit is contained in:
Alessandro Ros
2024-01-01 19:56:40 +01:00
committed by GitHub
parent 013a8d8463
commit bcd17a992c
8 changed files with 28 additions and 20 deletions

View File

@@ -84,8 +84,9 @@ func (sh *serverHandler) OnAnnounce(ctx *gortsplib.ServerHandlerOnAnnounceCtx) (
// setup H264 -> MPEGTS muxer
mpegtsMuxer := &mpegtsMuxer{
sps: forma.SPS,
pps: forma.PPS,
fileName: "mystream.ts",
sps: forma.SPS,
pps: forma.PPS,
}
mpegtsMuxer.initialize()
if err != nil {