setLocalVideoCanvas method

FutureOr<int> setLocalVideoCanvas(
  1. ByteRTCVideoCanvas canvas
)

@detail api @hiddensdk(audiosdk) @author sunhang.io @brief 设置本地视频渲染时使用的视图,并设置渲染模式。 @param canvas 视图信息和渲染模式,参看 ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas} @return - 0:成功。 - -2: 参数错误。 - -12: 本方法不支持在 Audio SDK 中使用。 @note - 你应在加入房间前,绑定本地视图。退出房间后,此设置仍然有效。 - 如果需要解除绑定,你可以调用本方法传入空视图。

Implementation

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