updateLocalView method
Update the preview image of local camera
Implementation
@override
void updateLocalView(int? viewId) {
TRTCLog(_tag, "updateLocalView: $viewId");
if (viewId != null && !TRTCCloudVideoView.containsViewId(viewId)) {
TRTCLog(_tag, "updateLocalView fail, viewId does not exist");
return;
}
TRTCCloudNative.instance.updateLocalView(_isNativeTexturePlatform ? null : viewId);
if (_isNativeTexturePlatform) {
if (viewId == null) {
TRTCMethodChannel().unsetLocalTextureRender(TRTCVideoStreamType.big);
} else {
TRTCMethodChannel().setLocalTextureRender(viewId, TRTCVideoStreamType.big);
}
}
}