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

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

View File

@ -525,18 +525,22 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
//1. 设置自适应合流布局模式 //1. 设置自适应合流布局模式
config.setLayoutMode(RCRTCMixConfig.MixLayoutMode.ADAPTIVE); config.setLayoutMode(RCRTCMixConfig.MixLayoutMode.ADAPTIVE);
//2. 合流画布设置 //2. 合流画布设置
rcrtcLiveInfo.setMixConfig(config, new IRCRTCResultCallback() { if(rcrtcLiveInfo!=null) {
@Override rcrtcLiveInfo.setMixConfig(config, new IRCRTCResultCallback() {
public void onSuccess() { @Override
Log.e("ry", "混成功" + u.getId()); public void onSuccess() {
} Log.e("ry", "混成功" + u.getId());
}
@Override @Override
public void onFailed(RTCErrorCode errorCode) { public void onFailed(RTCErrorCode errorCode) {
Log.e("ry", "混失败" + errorCode); Log.e("ry", "混失败" + errorCode);
} }
}); });
}else{
Log.w("PkDebug", "PK合流失败,rcrtcLiveInfo为空" );
}
} }
} }