AirPlay connection from iOS device to AppleTV being interrupted while inside the tvOS App

Hello. I am having an issue with AirPlay connection while being in my tvOS App which has content playing from AVPlayer. The AirPlay content is coming from an iOS device. When the AirPlay connection is established between my iOS device and Apple TV and something is playing from AVPlayer on my tvOS app the airplay is refusing to play the content on Apple TV and directly disconnecting.


I see that AVPlayer in the tvOS App is somehow conflicting with airplay player and breaking the AirPlay connection.


I couldn't find any solution for dedecting incoming airplay content from code side so I could disable or pause AVPlayer content.


Any suggestion on how to fix this?


Thanks in advance. 🙂

Replies

Hello,

Did you find a solution for detecting incoming airplay inside the tvOS App ?