setVideoCaptureConfig method

FutureOr<int> setVideoCaptureConfig(
  1. ByteRTCVideoCaptureConfig captureConfig
)

@detail api @hiddensdk(audiosdk) @author liuyangyang @brief Sets the video capture parameters for internal capture of the RTC SDK.
If your project uses the SDK internal capture module, you can specify the video capture parameters including preference, resolution and frame rate through this interface. @param captureConfig Video capture parameters. See: ByteRTCVideoCaptureConfig{@link #ByteRTCVideoCaptureConfig}. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details. @note

  • This interface can be called after the engine is created and takes effect immediately after being called. It is recommended to call this method before startVideoCapture{@link #ByteRTCEngine#startVideoCapture}.
  • It is recommended that different Engines on the same device use the same video capture parameters.
  • If you use the internal module to start video capture before calling this interface, the capture parameters default to Auto.

Implementation

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