RTCViewContext.remoteContext constructor

RTCViewContext.remoteContext({
  1. required String roomId,
  2. required String userId,
  3. StreamIndex streamIndex = StreamIndex.main,
  4. VideoRotation videoRotation = VideoRotation.rotation0,
  5. String? streamId = '',
})

Set the canvas for rendering remote video

The application binds the canvas and the remote video stream by calling this interface. The binding remains valid after leaving the room. Call removeRemoteVideo to remove the binding.

Implementation

RTCViewContext.remoteContext({
  required this.roomId,
  required this.userId,
  this.streamIndex = StreamIndex.main,
  this.videoRotation = VideoRotation.rotation0,
  this.streamId = '',
})  : canvasType = VideoCanvasType.remote,
      viewId = genViewId(roomId, userId);