BRTCCloudVideoViewState constructor
BRTCCloudVideoViewState(
- Key? key,
- String? viewType,
- 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());
}