Type Property

videoRecording

Specify this mode if your app is recording a movie.

Declaration

static let videoRecording: AVAudioSession.Mode

Discussion

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software