移除多人连麦下麦黑屏问题

This commit is contained in:
zlzw 2022-11-30 18:34:18 +08:00
parent 637fedcbe6
commit 210749ebd3

View File

@ -248,7 +248,8 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
.postDelayed(() -> { .postDelayed(() -> {
mPlayer.stopPlay(); mPlayer.stopPlay();
int val = mPlayer.startPlay(purl); int val = mPlayer.startPlay(purl);
// ToastUtil.show("强制播放" + val); // ToastUtil.show("强制播放" + val);
Log.i(TAG, "强制播放: " + val);
}, 100); }, 100);
} }
} }
@ -705,6 +706,7 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
mPlayer.startPlay(purl); mPlayer.startPlay(purl);
} }
ry_view.removeAllViews(); ry_view.removeAllViews();
ry_view.getLayoutParams().height = ViewGroup.LayoutParams.WRAP_CONTENT;
onPrepared(); onPrepared();
rcrtcRoom = null; rcrtcRoom = null;
MicStatusManager.getInstance().clear(); MicStatusManager.getInstance().clear();