CameraSessionConfiguration

interface CameraSessionConfiguration

Configuration for a CameraSession.

Extended by

Properties

allowBackgroundAudioPlayback?

iOS
optional allowBackgroundAudioPlayback?: boolean

If enabled, the device may play background audio, possibly from another app (e.g. Apple Music) while the CameraSession is active.

If disabled (the default), any playing audio will be stopped while the CameraSession is active.

Note

If allowBackgroundAudioPlayback is true, background audio may also be captured in Video recordings.

Default

false

allowHapticsAndSystemSoundsPlayback?

iOS
optional allowHapticsAndSystemSoundsPlayback?: boolean

If enabled, the device may play haptics/vibrations and system sounds during while the CameraSession is active.

If disabled (the default), all haptics and system sounds will be muted while the CameraSession is active.

Note

If allowHapticsAndSystemSoundsPlayback is true, haptics or system sounds may also be captured in Video recordings. Haptics may also affect stabilization or focus operations.

Default

false

On this page