跟随引擎4.3.0版本

This commit is contained in:
dexter
2022-06-19 23:44:28 +08:00
parent ced54a94a4
commit 2c1d908d7e
2 changed files with 2 additions and 2 deletions

View File

@@ -125,6 +125,6 @@ func (p *RTSPPusher) Push() (err error) {
if _, err = p.Record(); err != nil {
return
}
p.PlayBlock()
p.PlayRaw()
return
}

View File

@@ -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()
}()
}