
// Mute user with id dennymCloud.muteRemoteAudio("denny", true);// Unmute user with id dennymCloud.muteRemoteAudio("denny", false);
self.trtcCloud = [TRTCCloud sharedInstance];// Mute user with id denny[self.trtcCloud muteRemoteAudio:@"denny" mute:YES];// Unmute user with id denny[self.trtcCloud muteRemoteAudio:@"denny" mute:YES];
// Mute user with id dennytrtc_cloud_->muteRemoteAudio("denny", true);// Unmute user with id dennytrtc_cloud_->muteRemoteAudio("denny", false);
// dennyのカメラ画面(「ビッグストリーム」と呼ばれる)を再生しますmCloud.startRemoteView("denny", TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_BIG,cameraView);// dennyの画面共有画面(「サブストリーム」と呼ばれる)を再生しますmCloud.startRemoteView("denny", TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_SUB,screenView);// 低解像度画面(ビッグストリームと低解像度の両方から1つのみ選択できる)を再生しますmCloud.startRemoteView("denny", TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_SMALL,cameraView);// dennyのカメラ画面の再生を停止しますmCloud.stopRemoteView("denny", TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_BIG,cameraView);// すべてのビデオ画面の再生を停止しますmCloud.stopAllRemoteView();
self.trtcCloud = [TRTCCloud sharedInstance];// dennyのカメラ画面(「ビッグストリーム」と呼ばれる)を再生します[self.trtcCloud startRemoteView:@"denny" streamType:TRTCVideoStreamTypeBig view:cameraView];// dennyの画面共有画面(「サブストリーム」と呼ばれる)を再生します[self.trtcCloud startRemoteView:@"denny" streamType:TRTCVideoStreamTypeSub view:screenView];// 低解像度画面(ビッグストリームと低解像度の両方から1つのみ選択できる)を再生します[self.trtcCloud startRemoteView:@"denny" streamType:TRTCVideoStreamTypeSmall view:cameraView];// dennyのカメラ画面の再生を停止します[self.trtcCloud stopRemoteView:@"denny" streamType:TRTCVideoStreamTypeBig view:cameraView];// すべてのビデオ画面の再生を停止します[self.trtcCloud stopAllRemoteView];
// dennyのカメラ画面(「ビッグストリーム」と呼ばれる)を再生しますtrtc_cloud_->startRemoteView("denny", liteav::TRTCVideoStreamTypeBig, (liteav::TXView)(hWnd));// dennyの画面共有画面(「サブストリーム」と呼ばれる)を再生しますtrtc_cloud_->startRemoteView("denny", liteav::TRTCVideoStreamTypeSub, (liteav::TXView)(hScreenWnd));// 低解像度画面(ビッグストリームと低解像度の両方から1つのみ選択できる)を再生しますtrtc_cloud_->startRemoteView("denny", liteav::TRTCVideoStreamTypeSmall, (liteav::TXView)(hWnd));// dennyのカメラ画面の再生を停止しますtrtc_cloud_->stopRemoteView("denny", liteav::TRTCVideoStreamTypeBig);// すべてのビデオ画面の再生を停止しますtrtc_cloud_->stopAllRemoteView();
// dennyのビッグストリーム画面を小さなフローティングウィンドウに切り替えます(ミニウィンドウがminiFloatingViewである場合)mCloud.updateRemoteView("denny", TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_BIG,miniFloatingView);// リモートユーザーdennyのビッグストリーム画面を塗りつぶしモードに設定し、左右のイメージモードを有効にしますTRTCCloudDef.TRTCRenderParams param = new TRTCCloudDef.TRTCRenderParams();param.fillMode = TRTCCloudDef.TRTC_VIDEO_RENDER_MODE_FILL;param.mirrorType = TRTCCloudDef.TRTC_VIDEO_MIRROR_TYPE_DISABLE;mCloud.setRemoteRenderParams("denny", TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_BIG,param);
self.trtcCloud = [TRTCCloud sharedInstance];// dennyのビッグストリーム画面を小さなフローティングウィンドウに切り替えます(ミニウィンドウがminiFloatingViewである場合)[self.trtcCloud updateRemoteView:miniFloatingView streamType:TRTCVideoStreamTypeBig forUser:@"denny"];// リモートユーザーdennyのビッグストリーム画面を塗りつぶしモードに設定し、左右のイメージモードを有効にしますTRTCRenderParams *param = [[TRTCRenderParams alloc] init];param.fillMode = TRTCVideoFillMode_Fill;param.mirrorType = TRTCVideoMirrorTypeDisable;[self.trtcCloud setRemoteRenderParams:@"denny" streamType:TRTCVideoStreamTypeBig params:param];
// dennyのビッグストリーム画面を他のウィンドウに切り替えます(新しいウィンドウハンドルがnewViewである場合)trtc_cloud_->updateRemoteView("denny", liteav::TRTCVideoStreamTypeBig, (liteav::TXView)(newView));// リモートユーザーdennyのビッグストリーム画面を塗りつぶしモードに設定し、左右のイメージモードを有効にしますliteav::TRTCRenderParams param;param.fillMode = TRTCVideoFillMode_Fill;param.mirrorType = TRTCVideoMirrorType_Enable;trtc_cloud_->setRemoteRenderParams("denny", TRTCVideoStreamTypeBig, param);
// リモートユーザーのビデオ状態の変化を検知し、カメラをオンにしたユーザーリストを更新します(mCameraUserList)@Overridepublic void onUserVideoAvailable(String userId, boolean available) {available?mCameraUserList.add(userId) : mCameraUserList.remove(userId);}// リモートユーザーのオーディオ状態の変化を検知し、マイクをオンにしたユーザーリストを更新します(mMicrophoneUserList)@Overridepublic void onUserAudioAvailable(String userId, boolean available) {available?mMicrophoneUserList.add(userId) : mMicrophoneUserList.remove(userId);}// リモートユーザーの入室通知を感知し、リモートユーザーリストを更新します(mUserList)@Overridepublic void onRemoteUserEnterRoom(String userId) {mUserList.add(userId);}// リモートユーザーの退室通知を感知し、リモートユーザーリストを更新します(mUserList)@Overridepublic void onRemoteUserLeaveRoom(String userId,int reason) {mUserList.remove(userId);}
// リモートユーザーのビデオ状態の変化を検知し、カメラをオンにしたユーザーリストを更新します(mCameraUserList)- (void)onUserVideoAvailable:(NSString *)userId available:(BOOL)available {if (available) {[mCameraUserList addObject:userId];}else{[mCameraUserList removeObject:userId];}}// リモートユーザーのオーディオ状態の変化を検知し、マイクをオンにしたユーザーリストを更新します(mMicrophoneUserList)- (void)onUserAudioAvailable:(NSString *)userId available:(BOOL)available{if (available) {[mMicrophoneUserList addObject:userId];}else{[mMicrophoneUserList removeObject:userId];}}// リモートユーザーの入室通知を感知し、リモートユーザーリストを更新します(mUserList)- (void)onRemoteUserEnterRoom:(NSString *)userId{[mUserList addObject:userId];}// リモートユーザーの退室通知を感知し、リモートユーザーリストを更新します(mUserList)- (void)onRemoteUserLeaveRoom:(NSString *)userId reason:(NSInteger)reason{[mUserList removeObject:userId];}
// リモートユーザーのビデオ状態の変化を検知し、カメラをオンにしたユーザーリストを更新します(mCameraUserList)void onUserVideoAvailable(const char* user_id, bool available) {available ? mCameraUserList.push_back(user_id) : mCameraUserList.remove(user_id);}// リモートユーザーのオーディオ状態の変化を検知し、マイクをオンにしたユーザーリストを更新します(mMicrophoneUserList)void onUserAudioAvailable(const char* user_id, bool available) {available ? mMicrophoneUserList.push_back(user_id) : mMicrophoneUserList.remove(user_id);}// リモートユーザーの入室通知を感知し、リモートユーザーリストを更新します(mUserList)void onRemoteUserEnterRoom(const char* user_id) {mUserList.push_back(user_id);}// リモートユーザーの退室通知を感知し、リモートユーザーリストを更新します(mUserList)void onRemoteUserLeaveRoom(const char* user_id, int reason) {mUserList.remove(user_id);}
フィードバック