Type Property


Specify this mode if your app is recording a movie.


static let videoRecording: AVAudioSession.Mode


This mode is valid only with the record and playAndRecord audio session categories. On devices with more than one built-in microphone, the microphone closest to the video camera is used.

Using this mode might result in the system providing appropriate audio signal processing.

Use AVCaptureSession in conjunction with the video recording mode for greater control of input and output routes. For example, setting the automaticallyConfiguresApplicationAudioSession property automatically chooses the best input route depending on the device and camera used.