CameraSessionConfiguration
interface CameraSessionConfigurationConfiguration for a CameraSession.
Properties
allowBackgroundAudioPlayback?
optional allowBackgroundAudioPlayback?: booleanIf 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
falseallowHapticsAndSystemSoundsPlayback?
optional allowHapticsAndSystemSoundsPlayback?: booleanIf 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