BRTCCloudVideoViewState constructor

BRTCCloudVideoViewState(
  1. Key? key,
  2. String? viewType,
  3. BRTCVideoParams? textureParam
)

Implementation

BRTCCloudVideoViewState(Key? key, String? viewType,
    BRTCVideoParams? textureParam) {
  videoParam = textureParam;
  if (viewType != null) {
    channelType = viewType;
  }
  if (Platform.isIOS) {
    if (key == ValueKey("LocalView")) {
      channelType = BRTCCloudConfig.BRTC_Video_Local_View_Channel;
    } else {
      channelType = BRTCCloudConfig.BRTC_Video_Remote_View_Channel;
    }
  } else if (Platform.isAndroid) {
    channelType = BRTCCloudConfig.BRTC_Video_SurfaceView_Channel;
  }
  print(TAG + ", BRTCCloudVideoViewState (), viewId=" +
      videoParam!.viewId.toString() +
      ",isLocal=" + videoParam!.isLocal.toString() +
      ",type=" + channelType.toString());
}