This commit is contained in:
xiongziliang 2019-12-17 09:04:10 +08:00
parent 0670f9f62b
commit 1cc6a0dce5

View File

@ -248,6 +248,9 @@ void PlayerProxy::onPlaySuccess() {
} }
} }
_mediaMuxer->setListener(shared_from_this()); _mediaMuxer->setListener(shared_from_this());
if(_pMediaSrc){
_pMediaSrc->setTrackSource(_mediaMuxer);
}
auto videoTrack = getTrack(TrackVideo,false); auto videoTrack = getTrack(TrackVideo,false);
if(videoTrack){ if(videoTrack){