CameraControllerConfiguration

interface CameraControllerConfiguration

Specifies options to use for configuring a CameraController via configure(...).

Like a diff-map, setting a value inside the CameraControllerConfiguration object to undefined, causes the prop to be left at whatever its current value is.

Properties

colorSpace?

iOS
optional colorSpace: ColorSpace

Configures the ColorSpace to use for this connection.

Note

If you want to set a custom ColorSpace, you must set CameraSessionConfiguration.automaticallyAdjustsColorSpace to false.

Throws

If the currently selected CameraFormat does not support the given ColorSpace - see supportedColorSpaces.


enableDistortionCorrection?

iOS
optional enableDistortionCorrection: boolean

If set to true, the camera pipeline may correct areas of the image that may appear distorted - for example the edges of a ultra-wide-angle camera, at the cost of losing a small amount of field of view.

When enableDistortionCorrection is enabled and the camera pipeline applies a crop around the edges, the images will be upscaled to compensate for the artificial zoom - set enableDistortionCorrection to false if you want to avoid this overhead.

Throws

If the CameraDevice does not support distortion correction - see supportsDistortionCorrection.

Default

true

enableLowLightBoost?

optional enableLowLightBoost: boolean

Low light boost allows the Camera pipeline to automatically extend exposure times (and effectively drop frame rate) to receive more light, if necessary.

Throws

If the CameraDevice does not support low-light-boost - see supportsLowLightBoost.

Default

false

enableSmoothAutoFocus?

iOS
optional enableSmoothAutoFocus: boolean

If set to true, auto-focus will switch between focus states much slower and smoother to appear less intrusive in video recordings.

Throws

If the CameraDevice does not support smooth auto focus - see supportsSmoothAutoFocus.

Default

false