The category for recording (input) and playback (output) of audio, such as for a VoIP (Voice over Internet Protocol) app.
- iOS 3.0+
- tvOS 9.0+
- watchOS 3.0+
Your audio continues with the Silent switch set to silent and with the screen locked. (The switch is called the Ring/Silent switch on iPhone.) To continue playing audio when your app transitions to the background (for example, when the screen locks), add the
audio value to the UIBackgroundModes key in your information property list file.
This category is appropriate for simultaneous recording and playback, and also for apps that record and play back, but not simultaneously.
By default, using this category implies that your app’s audio is nonmixable—activating your session will interrupt any other audio sessions which are also nonmixable. To allow mixing for this category, use the
The user must grant permission for audio recording (see Recording Requires User Permission).
This category supports the mirrored version of Airplay. However, AirPlay mirroring will be disabled if the
AVAudio mode is used with this category.