修复一处PK中的空指针问题

This commit is contained in:
zlzw 2022-11-10 15:13:38 +08:00
parent 4d573767f7
commit e2f8e52583

View File

@ -525,6 +525,7 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
//1. 设置自适应合流布局模式 //1. 设置自适应合流布局模式
config.setLayoutMode(RCRTCMixConfig.MixLayoutMode.ADAPTIVE); config.setLayoutMode(RCRTCMixConfig.MixLayoutMode.ADAPTIVE);
//2. 合流画布设置 //2. 合流画布设置
if(rcrtcLiveInfo!=null) {
rcrtcLiveInfo.setMixConfig(config, new IRCRTCResultCallback() { rcrtcLiveInfo.setMixConfig(config, new IRCRTCResultCallback() {
@Override @Override
public void onSuccess() { public void onSuccess() {
@ -537,6 +538,9 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
} }
}); });
}else{
Log.w("PkDebug", "PK合流失败,rcrtcLiveInfo为空" );
}
} }
} }