automaticallyConfiguresApplicationAudioSession
A Boolean value that indicates whether the capture session automatically changes settings in the app’s shared audio session.
Declaration
var automaticallyConfiguresApplicationAudioSession: Bool { get set }Discussion
This property only takes effect if the value of the usesApplicationAudioSession property is true.
The value of this property defaults to true, causing the capture session to automatically configure the app’s shared AVAudioSession instance for optimal recording. For example, if the capture session uses a device’s rear-facing camera, the system sets the audio session’s microphone and polar pattern for optimal recording of sound from that direction. The audio session’s original state isn’t restored after capture finishes.
If you set value to false, your app is responsible for selecting appropriate audio session settings. Recording may fail if the audio session’s settings are incompatible with the capture session.