mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
add server-h264-save-to-disk example
This commit is contained in:
@@ -84,7 +84,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