My app uses the microphone and outputs audio, so I am setting my Audio Session to the Play and Record Category, but this seems to disable Airplay. If I set the category to Play,
From the Audio Session Programming Guide › Working with Categories › Choosing Categories and Modes for AirPlay:
Only specific categories and modes support AirPlay. The following categories support both the mirrored and non-mirrored versions of Airplay:
AVAudioSessionCategorySoloAmbient
AVAudioSessionCategoryAmbient
AVAudioSessionCategoryPlayback
The AVAudioSessionCategoryPlayAndRecord
category only supports mirrored Airplay.