Audio Airplay with Multiple AVPlayers

Our app uses multiple AVPlayers at once, some with video, and some with just audio.
When trying to airplay it appears that only one of the AVPlayers can play at a time.

Is there a setting for the Apple TV to just work as an external audio output rather than it attempting to play a particular AVPlayerItem.
We would like all the audios to mix together.

Screen Mirroring works ok, but we cant expect all our users to go through the process to enable that and some will select audio airplay.
It sounds like you are using the "long-form audio" AVAudioSession route sharing policy. Have you tried using the default route sharing policy?
Thanks, that was a good thought!
It was getting set to default on our end. So I added additional logging and code to switch it to default any time that it wasn't.
But it appears that when connected to airplay, it switches the route sharing policy to long-form audio when audio is played.
When I disconnect and play audio from the phone's internal speaker, it doesn't change unexpectedly and stays set to default.

So it does seem to be an issue with the route sharing policy. Know of any reason it would be getting switched to long form audio unexpectedly while using airplay?
Audio Airplay with Multiple AVPlayers
 
 
Q