setVideoCaptureConfig method
@detail api
@hiddensdk(audiosdk)
@author liuyangyang
@brief Set 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 videoCaptureConfig Video capture parameters. See: VideoCaptureConfig{@link #VideoCaptureConfig}.
@return
- 0: Success.
- < 0: Failure. See ReturnStatus{@link #ReturnStatus} for more details.
@note
- This interface can be called after the engine is created. It is recommended to call this interface before calling startVideoCapture{@link #RTCEngine#startVideoCapture}.
- It is recommended that different Engines on the same device use the same video capture parameters.
- If you used the internal module to start video capture before calling this interface, the capture parameters default to Auto.
Implementation
FutureOr<int> setVideoCaptureConfig(
VideoCaptureConfig videoCaptureConfig) async {
return await nativeCall('setVideoCaptureConfig', [videoCaptureConfig]);
}