setCameraExposureCompensation method
@hidden(macOS)
@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 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details.
@note
- You must call startVideoCapture{@link #ByteRTCEngine#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 #ByteRTCEngine#stopVideoCapture} to stop internal capturing.
Implementation
FutureOr<int> setCameraExposureCompensation(float val) async {
return await nativeCall('setCameraExposureCompensation:', [val]);
}