mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-09-27 03:56:08 +08:00
跟随引擎4.3.0版本
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
@@ -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()
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user