From 16e21e020593afbfd19384b62ac33d3ef6598fea Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 6 Sep 2020 17:52:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=B4=E6=8E=A5=E6=8B=89?= =?UTF-8?q?=E6=B5=81=E4=BB=A3=E7=90=86=E6=97=B6=E6=9C=89=E4=BA=9B=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Player/PlayerProxy.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Player/PlayerProxy.cpp b/src/Player/PlayerProxy.cpp index 294d77ba..1de35270 100644 --- a/src/Player/PlayerProxy.cpp +++ b/src/Player/PlayerProxy.cpp @@ -272,6 +272,8 @@ void PlayerProxy::onPlaySuccess() { if (_pMediaSrc) { _pMediaSrc->setTrackSource(_muxer); + //让_muxer对象拦截一部分事件(比如说录像相关事件) + _pMediaSrc->setListener(_muxer); } }