diff --git a/server.go b/server.go index 6ba1714..bfea917 100644 --- a/server.go +++ b/server.go @@ -73,7 +73,7 @@ func (conf *RTSPConfig) OnPlay(ctx *gortsplib.ServerHandlerOnPlayCtx) (*base.Res case *RTSPSubscriber: resp.StatusCode = base.StatusOK go func() { - v.PlayBlock(v) + v.PlayBlock() ctx.Session.Close() }() }