add server-h264-save-to-disk example

This commit is contained in:
aler9
2022-10-29 16:56:03 +02:00
parent 6e6be34636
commit b3cde905f7
6 changed files with 328 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ func (sh *serverHandler) OnAnnounce(ctx *gortsplib.ServerHandlerOnAnnounceCtx) (
}, fmt.Errorf("someone is already publishing")
}
// save the track list and the publisher
// create the stream and save the publisher
sh.stream = gortsplib.NewServerStream(ctx.Tracks)
sh.publisher = ctx.Session