setCameraExposureCompensation method
@detail api
@author zhangzhenyu.samuel
@brief Sets the exposure compensation for the currently used camera.
@param val Exposure compensation in range of -1, 1. Default to 0, which means no exposure compensation.
@return
- 0: Success.
- < 0: Failure. See ReturnStatus{@link #ReturnStatus} for more details.
@note
- You must call startVideoCapture{@link #RTCEngine#startVideoCapture} to start SDK internal video capturing, and use SDK internal rendering before calling this API.
- The camera exposure compensation setting will be invalid after calling stopVideoCapture{@link #RTCEngine#stopVideoCapture} to stop internal capturing.
Implementation
FutureOr<int> setCameraExposureCompensation(float val) async {
return await nativeCall('setCameraExposureCompensation', [val]);
}