拿到后台发送给我的roomID,调用SDK进入房间joinRoom方法,使用interface默认配置,报错,错误码10015,msg是invalid group id。代码如下
let liveRoomVC = PCApplyFaceSignViewController()
// 2. 创建房间配置对象
let option = ILiveRoomOption.defaultInteractUserLive()
// 设置房间内音视频监听
option?.memberStatusListener = liveRoomVC
// 设置房间中断事件监听
option?.roomDisconnectListener = liveRoomVC
// 3. 调用创建房间接口,传入房间ID和房间配置对象
ILiveRoomManager.getInstance().joinRoom(Int32(roomId), option: option, succ: { [weak self] in
self?.navigationController?.pushViewController(liveRoomVC, animated: true)
}) { (module, errId, errMsg) in
print(errMsg!)
}
相似问题