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
Future<int?> setCameraExposureCompensation(float val) async {
$a() => ($instance as $p_a.RTCEngine).setCameraExposureCompensation(val);
$i() =>
($instance as $p_i.ByteRTCEngine).setCameraExposureCompensation(val);
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}