setLocalVideoCanvas method

FutureOr<int> setLocalVideoCanvas(
  1. ByteRTCVideoCanvas canvas
)

@detail api @hiddensdk(audiosdk) @author sunhang.io @brief Sets the view to be used for local video rendering and the rendering mode. @param canvas View information and rendering mode. See ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas}. @return - 0: Success. - -2: Invalid parameter. - -12: This method is not available in the Audio SDK. @note - You should bind your stream to a view before joining the room. This setting will remain in effect after you leave the room. - If you need to unbind the local video stream from the current view, you can call this API and set the videoCanvas to null.

Implementation

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