From e0920536cc42ae22b9f1fcff480349ab116818a6 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 17 Nov 2018 14:41:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8B=89=E6=B5=81=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E6=88=90=E5=8A=9F=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Player/PlayerProxy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Player/PlayerProxy.cpp b/src/Player/PlayerProxy.cpp index d2f0579c..6fbc85cb 100644 --- a/src/Player/PlayerProxy.cpp +++ b/src/Player/PlayerProxy.cpp @@ -99,7 +99,7 @@ void PlayerProxy::play(const char* strUrl) { return; } if(strongSelf->_mediaMuxer) { - auto tracks = strongSelf->getTracks(); + auto tracks = strongSelf->getTracks(false); for (auto & track : tracks){ track->delDelegate(strongSelf->_mediaMuxer.get()); } @@ -176,7 +176,7 @@ void PlayerProxy::onPlaySuccess() { _mediaMuxer.reset(new MultiMediaSourceMuxer(_strVhost.data(),_strApp.data(),_strSrc.data(),getDuration(),_bEnableHls,_bEnableMp4)); _mediaMuxer->setListener(shared_from_this()); - auto videoTrack = getTrack(TrackVideo); + auto videoTrack = getTrack(TrackVideo,false); if(videoTrack){ //添加视频 _mediaMuxer->addTrack(videoTrack); @@ -184,7 +184,7 @@ void PlayerProxy::onPlaySuccess() { videoTrack->addDelegate(_mediaMuxer); } - auto audioTrack = getTrack(TrackAudio); + auto audioTrack = getTrack(TrackAudio, false); if(audioTrack){ //添加音频 _mediaMuxer->addTrack(audioTrack);