修复:

直播結束關閉問題
This commit is contained in:
18401019693 2022-08-31 11:22:18 +08:00
parent 57f6d7da86
commit b89c65c690
2 changed files with 2 additions and 7 deletions

View File

@ -450,7 +450,7 @@ public class LiveAudienceActivity extends LiveActivity {
* 退出直播间
*/
public void exitLiveRoom() {
manager.exitLiveRoom();
onBackPressed();
}

View File

@ -291,10 +291,9 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mSocketRyClient.disConnect();
}
mSocketRyClient = null;
//结束播放
if (mLivePlayViewHolder != null) {
mLivePlayViewHolder.stopPlay();
mLivePlayViewHolder.release();
}
mLivePlayViewHolder = null;
@ -309,10 +308,6 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mSocketClient = null;
}
if (mLivePlayViewHolder != null) {
mLivePlayViewHolder.stopPlay();
}
if (mLiveRoomViewHolder != null) {
mLiveRoomViewHolder.removeFromParent();