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.