重连时,注销直接拉流代理的流:#532

This commit is contained in:
xiongziliang 2020-10-24 23:30:25 +08:00
parent dd2abd7924
commit bfdd02905c
1 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,10 @@ void PlayerProxy::play(const string &strUrlTmp) {
if(!strongSelf) {
return;
}
//注销直接拉流代理产生的流:#532
strongSelf->setMediaSource(nullptr);
if(strongSelf->_muxer) {
auto tracks = strongSelf->MediaPlayer::getTracks(false);
for (auto & track : tracks){