From 7bb1b7f670d61908fbc83bccea6bf26c30e24585 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Mon, 3 Jun 2019 16:10:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Player/PlayerProxy.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Player/PlayerProxy.cpp b/src/Player/PlayerProxy.cpp index 6dbd10d3..eca5c9ab 100644 --- a/src/Player/PlayerProxy.cpp +++ b/src/Player/PlayerProxy.cpp @@ -203,7 +203,7 @@ void PlayerProxy::onPlaySuccess() { if(videoTrack){ //添加视频 _mediaMuxer->addTrack(videoTrack); - //视频数据写入_pChn + //视频数据写入_mediaMuxer videoTrack->addDelegate(_mediaMuxer); } @@ -211,16 +211,16 @@ void PlayerProxy::onPlaySuccess() { if(audioTrack){ //添加音频 _mediaMuxer->addTrack(audioTrack); - //音频数据写入_pChn + //音频数据写入_mediaMuxer audioTrack->addDelegate(_mediaMuxer); }else if(videoTrack){ //没有音频信息,产生一个静音音频 MuteAudioMaker::Ptr audioMaker = std::make_shared(); //videoTrack把数据写入MuteAudioMaker videoTrack->addDelegate(audioMaker); - //添加一个静音Track至_pChn + //添加一个静音Track至_mediaMuxer _mediaMuxer->addTrack(std::make_shared()); - //MuteAudioMaker生成静音音频然后写入_pChn; + //MuteAudioMaker生成静音音频然后写入_mediaMuxer; audioMaker->addDelegate(_mediaMuxer); } }