setRemoteVideoCanvas method

FutureOr<int> setRemoteVideoCanvas(
  1. NSString streamId,
  2. ByteRTCVideoCanvas canvas
)

@detail api @hiddensdk(audiosdk) @author sunhang.io @brief Sets the view and rendering mode to use when rendering a video stream from a specified remote user uid.
If you need to unbind the video view, set canvas to empty. @param streamId ID of Remote stream. @param canvas View information and rendering mode. See ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas}. Starting from version 3.56, you can set the rotation angle of the remote video rendering using renderRotation. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note When the local user leaves the room, the setting will be invalid. The remote user leaving the room does not affect the setting.

Implementation

FutureOr<int> setRemoteVideoCanvas(
    NSString streamId, ByteRTCVideoCanvas canvas) async {
  return await nativeCall(
      'setRemoteVideoCanvas:withCanvas:', [streamId, canvas]);
}