setCameraExposurePosition method

FutureOr<int> setCameraExposurePosition(
  1. dynamic position
)

@hidden(macOS) @detail api @author zhangzhenyu.samuel @brief 设置当前使用的摄像头的曝光点。 @param position 曝光点坐标。以本地预览画布的左上为坐标原点,positionx字段为曝光点水平方向归一化坐标,y字段为曝光点垂直方向归一化坐标,取值范围为 0, 1。 @return - 0: 成功。 - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 @note - 必须已调用 startVideoCapture{@link #ByteRTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集,并且使用 SDK 内部渲染时,才能设置曝光点。 - 曝光点设置为画布中央(即xy均取 0.5)时,恢复系统默认值。 - 调用 stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} 关闭内部采集后,设置的曝光点失效。

Implementation

FutureOr<int> setCameraExposurePosition(CGPoint position) async {
  return await nativeCall('setCameraExposurePosition:', [position]);
}