diff --git a/client.go b/client.go index 0059f07..2fc02d2 100644 --- a/client.go +++ b/client.go @@ -125,6 +125,6 @@ func (p *RTSPPusher) Push() (err error) { if _, err = p.Record(); err != nil { return } - p.PlayBlock() + p.PlayRaw() return } diff --git a/server.go b/server.go index d9f4464..8a4e833 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.PlayRaw() ctx.Session.Close() }() }