跟随引擎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 { if _, err = p.Record(); err != nil {
return return
} }
p.PlayBlock() p.PlayRaw()
return return
} }

View File

@@ -73,7 +73,7 @@ func (conf *RTSPConfig) OnPlay(ctx *gortsplib.ServerHandlerOnPlayCtx) (*base.Res
case *RTSPSubscriber: case *RTSPSubscriber:
resp.StatusCode = base.StatusOK resp.StatusCode = base.StatusOK
go func() { go func() {
v.PlayBlock() v.PlayRaw()
ctx.Session.Close() ctx.Session.Close()
}() }()
} }