mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
simplify examples (#493)
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user