
// 退出当前房间mCloud.exitRoom();
self.trtcCloud = [TRTCCloud sharedInstance];// 退出当前房间[self.trtcCloud exitRoom];
trtc_cloud_ = getTRTCShareInstance();// 退出当前房间trtc_cloud_->exitRoom();
// 监听 onExitRoom 回调即可获知自己的退房原因@Overridepublic void onExitRoom(int reason) {if (reason == 0) {Log.d(TAG, "Exit current room by calling the 'exitRoom' api of sdk ...");} else if (reason == 1) {Log.d(TAG, "Kicked out of the current room by server through the restful api...");} else if (reason == 2) {Log.d(TAG, "Current room is dissolved by server through the restful api...");}}
// 监听 onExitRoom 回调即可获知自己的退房原因- (void)onExitRoom:(NSInteger)reason {if (reason == 0) {NSLog(@"Exit current room by calling the 'exitRoom' api of sdk ...");} else if (reason == 1) {NSLog(@"Kicked out of the current room by server through the restful api...");} else if (reason == 2) {NSLog(@"Current room is dissolved by server through the restful api...");}}
// 监听 onExitRoom 回调即可获知自己的退房原因void onExitRoom(int reason) {if (reason == 0) {printf("Exit current room by calling the 'exitRoom' api of sdk ...");} else if (reason == 1) {printf("Kicked out of the current room by server through the restful api...");} else if (reason == 2) {printf("Current room is dissolved by server through the restful api...");}}
文档反馈