updateRemoteView method

Future<void> updateRemoteView(
  1. String userId,
  2. int streamType,
  3. int viewId
)

Update the window of remote video image

Note: When viewtype is TRTCCloudDef.TRTC_VideoView_TextureView is valid for Android

Parameters:

userId: userId of the specified remote user

streamType: Video stream type of the userId specified for watching:

viewId: Control that carries the video image

Platform not supported:

  • web
  • macOS
  • Windows

Implementation

Future<void> updateRemoteView(String userId, int streamType, int viewId) {
  return TRTCCloudVideoViewController(viewId)
      .updateRemoteView(userId, streamType, viewId, _cloudChannel!.name);
}