优化room为空时开播的提示
This commit is contained in:
parent
4a6bb9fd56
commit
7a01f62490
@ -529,10 +529,13 @@ public class LivePushRyViewHolder extends AbsRyLivePushViewHolder implements ITX
|
||||
//加入房间成功后可以通过 RCRTCLocalUser 对象发布本地默认音视频流,包括:麦克风采集的音频和摄像头采集的视频。
|
||||
RCRTCEngine.getInstance().getDefaultVideoStream().setEncoderMirror(true);
|
||||
if (rtcRoom == null || rtcRoom.getLocalUser() == null) {
|
||||
ToastUtil.show("开播失败 room为空");
|
||||
if (room == null || room.getLocalUser() == null) {
|
||||
ToastUtil.show("开播失败 请稍后再试,错误代码:room is null");
|
||||
((LiveRyAnchorActivity) mContext).endLives();
|
||||
return;
|
||||
}
|
||||
rtcRoom = room;
|
||||
}
|
||||
rtcRoom.getLocalUser().publishDefaultLiveStreams(new IRCRTCResultDataCallback<RCRTCLiveInfo>() {
|
||||
@Override
|
||||
public void onSuccess(RCRTCLiveInfo rcrtcLiveInfo1) {
|
||||
|
Loading…
Reference in New Issue
Block a user