mirror of
https://github.com/aler9/gortsplib
synced 2025-09-29 20:42:09 +08:00
add *Server argument to NewServerStream()
This commit is contained in:
@@ -88,7 +88,7 @@ func (sh *serverHandler) OnAnnounce(ctx *gortsplib.ServerHandlerOnAnnounceCtx) (
|
||||
}
|
||||
|
||||
// create the stream and save the publisher
|
||||
sh.stream = gortsplib.NewServerStream(ctx.Medias)
|
||||
sh.stream = gortsplib.NewServerStream(ctx.Server, ctx.Medias)
|
||||
sh.publisher = ctx.Session
|
||||
|
||||
return &base.Response{
|
||||
|
Reference in New Issue
Block a user