updateLocalVideoCanvas method

FutureOr<int> updateLocalVideoCanvas(
  1. ByteRTCRenderMode renderMode,
  2. NSUInteger backgroundColor
)

@detail api @hiddensdk(audiosdk) @author wangfujun.911 @brief 修改本地视频渲染模式和背景色。 @param renderMode 渲染模式。参看 ByteRTCRenderMode{@link #ByteRTCRenderMode} @param backgroundColor 背景颜色。参看 ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas}.backgroundColor @return - 0: 调用成功。 - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 @note 你可以在本地视频渲染过程中,调用此接口。调用结果会实时生效。

Implementation

FutureOr<int> updateLocalVideoCanvas(
    ByteRTCRenderMode renderMode, NSUInteger backgroundColor) async {
  return await nativeCall('updateLocalVideoCanvas:withBackgroundColor:',
      [renderMode.$value, backgroundColor]);
}