enableCameraAutoExposureFaceMode method

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

@valid since 353 @detail api @author yinkaisheng @brief 启用或禁用内部采集时人脸自动曝光模式。此模式会改善强逆光下,脸部过暗的问题;但也会导致 ROI 以外区域过亮/过暗的问题。 @param enable 是否启用。iOS默认开启,Android默认关闭。 @return - 0: 成功。 - < 0: 失败。 @note 你必须在调用 startVideoCapture{@link #RTCEngine#startVideoCapture} 开启内部采集前,调用此接口方可生效。

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}');
  }
}