setRemoteDisplayWithUserId method
Future<void>
setRemoteDisplayWithUserId(
- int viewId,
- int userId
)
Implementation
Future<void> setRemoteDisplayWithUserId(int viewId, int userId) {
if (viewId == null) {
return bRTCPluginChannel.invokeMethod(
'setRemoteDisplay', {"viewId": viewId, "userId": userId});
} else {
if (Platform.isAndroid) {
return BRTCVideoViewController(
BRTCCloudConfig.BRTC_Video_SurfaceView_Channel, viewId)
.setRemoteDisplayWithUserId(userId);
} else {
return BRTCVideoViewController(
BRTCCloudConfig.BRTC_Video_Remote_View_Channel, viewId)
.setRemoteDisplayWithUserId(userId);
}
}
}