mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 11:17:09 +08:00
修正注释
This commit is contained in:
parent
7f062c661b
commit
7bb1b7f670
@ -203,7 +203,7 @@ void PlayerProxy::onPlaySuccess() {
|
|||||||
if(videoTrack){
|
if(videoTrack){
|
||||||
//添加视频
|
//添加视频
|
||||||
_mediaMuxer->addTrack(videoTrack);
|
_mediaMuxer->addTrack(videoTrack);
|
||||||
//视频数据写入_pChn
|
//视频数据写入_mediaMuxer
|
||||||
videoTrack->addDelegate(_mediaMuxer);
|
videoTrack->addDelegate(_mediaMuxer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -211,16 +211,16 @@ void PlayerProxy::onPlaySuccess() {
|
|||||||
if(audioTrack){
|
if(audioTrack){
|
||||||
//添加音频
|
//添加音频
|
||||||
_mediaMuxer->addTrack(audioTrack);
|
_mediaMuxer->addTrack(audioTrack);
|
||||||
//音频数据写入_pChn
|
//音频数据写入_mediaMuxer
|
||||||
audioTrack->addDelegate(_mediaMuxer);
|
audioTrack->addDelegate(_mediaMuxer);
|
||||||
}else if(videoTrack){
|
}else if(videoTrack){
|
||||||
//没有音频信息,产生一个静音音频
|
//没有音频信息,产生一个静音音频
|
||||||
MuteAudioMaker::Ptr audioMaker = std::make_shared<MuteAudioMaker>();
|
MuteAudioMaker::Ptr audioMaker = std::make_shared<MuteAudioMaker>();
|
||||||
//videoTrack把数据写入MuteAudioMaker
|
//videoTrack把数据写入MuteAudioMaker
|
||||||
videoTrack->addDelegate(audioMaker);
|
videoTrack->addDelegate(audioMaker);
|
||||||
//添加一个静音Track至_pChn
|
//添加一个静音Track至_mediaMuxer
|
||||||
_mediaMuxer->addTrack(std::make_shared<AACTrack>());
|
_mediaMuxer->addTrack(std::make_shared<AACTrack>());
|
||||||
//MuteAudioMaker生成静音音频然后写入_pChn;
|
//MuteAudioMaker生成静音音频然后写入_mediaMuxer;
|
||||||
audioMaker->addDelegate(_mediaMuxer);
|
audioMaker->addDelegate(_mediaMuxer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user