优化PK过程中关播问题

This commit is contained in:
Martin 2024-07-29 14:04:44 +08:00
parent 60e82fa8e4
commit 59712d0da9
2 changed files with 8 additions and 0 deletions

View File

@ -1000,6 +1000,7 @@ public class LiveSwAnchorActivity extends LiveActivity implements LiveFunctionCl
}
if (mLivePushViewHolder != null) {
mLivePushViewHolder.closeLive();
mLivePushViewHolder.release();
}
if (mLiveLinkMicPresenter != null) {

View File

@ -666,6 +666,13 @@ public class LivePushSwViewHolder extends AbsRyLivePushViewHolder implements ITX
}
}
public void closeLive(){
if (swManager != null) {
swManager.exitChannelAll();
}
}
public interface onDrPkJoinSuccessListener{
void joinSuccess1();
void joinSuccess2();