setVideoCaptureConfig method

FutureOr<int> setVideoCaptureConfig(
  1. ByteRTCVideoCaptureConfig captureConfig
)

@detail api @hiddensdk(audiosdk) @author liuyangyang @brief 设置 RTC SDK 内部采集时的视频采集参数。
如果你的项目使用了 SDK 内部采集模块,可以通过本接口指定视频采集参数包括模式、分辨率、帧率。 @param captureConfig 视频采集参数。参看: ByteRTCVideoCaptureConfig{@link #ByteRTCVideoCaptureConfig}。 @return - 0: 调用成功。 - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 @note

  • 本接口在引擎创建后可调用,调用后立即生效。建议在调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 前调用本接口。
  • 建议同一设备上的不同引擎使用相同的视频采集参数。
  • 如果调用本接口前使用内部模块开始视频采集,采集参数默认为 Auto 模式。

Implementation

FutureOr<int> setVideoCaptureConfig(
    ByteRTCVideoCaptureConfig captureConfig) async {
  return await nativeCall('setVideoCaptureConfig:', [captureConfig]);
}