enableCameraAutoExposureFaceMode method

Future<int?> enableCameraAutoExposureFaceMode(
  1. bool enable
)

@valid since 353 @detail api @author yinkaisheng @brief Enable or disable face auto exposure mode during internal video capture. This mode fixes the problem that the face is too dark under strong backlight; but it will also cause the problem of too bright/too dark in the area outside the ROI region. @param enable Whether to enable the mode. True by default for iOS, False by default for Android. @return - 0: Success. - < 0: Failure. @note You must call this API before calling startVideoCapture{@link #RTCEngine#startVideoCapture} to enable internal capture to make the setting valid.

Implementation

Future<int?> enableCameraAutoExposureFaceMode(bool enable) async {
  $a() =>
      ($instance as $p_a.RTCEngine).enableCameraAutoExposureFaceMode(enable);
  $i() => ($instance as $p_i.ByteRTCEngine)
      .enableCameraAutoExposureFaceMode(enable);

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}