CameraSessionConfiguration

interface CameraSessionConfiguration

Configuration for a CameraSession.

Properties

allowBackgroundAudioPlayback?

iOS
optional allowBackgroundAudioPlayback: boolean

If enabled, the CameraSession does not interrupt currently playing audio (e.g. music from a different app), while recording.

If disabled (the default), any playing audio will be stopped when a recording is started.

Default

false

automaticallyAdjustsColorSpace?

iOS
optional automaticallyAdjustsColorSpace: boolean

Gets or sets whether the CameraSession automatically adjusts its color-space. By default, a wide-gamut color-space like P3 or sRGB is selected.

Note

If you want to select a custom color-space on your CameraController (via CameraController.colorSpace), you must set automaticallyAdjustsColorSpace to false.

Default

true