mirror of
https://github.com/aler9/gortsplib
synced 2025-09-27 11:32:08 +08:00
add server-h264-save-to-disk example
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user