From 2c1d908d7e685266d2bb5603eeb525074d8c20cd Mon Sep 17 00:00:00 2001 From: dexter <178529795@qq.com> Date: Sun, 19 Jun 2022 23:44:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=9F=E9=9A=8F=E5=BC=95=E6=93=8E4.3.0?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client.go | 2 +- server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() }() }