updateLocalVideoCanvas method

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

@detail api @hiddensdk(audiosdk) @author wangfujun.911 @brief Update the render mode and background color of local video rendering. @param renderMode See ByteRTCRenderMode{@link #ByteRTCRenderMode}. @param backgroundColor See ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas}.backgroundColor. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details. @note Calling this API during local video rendering will be effective immediately.

Implementation

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