1 Reply
      Latest reply on Sep 9, 2019 2:27 PM by cabearsfan
      MultiMe Level 1 Level 1 (0 points)

        How can I see what device is airplayed to when choosing Apple TV or Home Pod? In both cases the type in the route of the current audio session is just returned as airplay and I'm not seeing anything else that allows me to distinguish between the two?

        • Re: Airplay to AppleTV vs. HomePod
          cabearsfan Level 1 Level 1 (0 points)

          Just ran into this myself, In addition to checking for AVAudioSession.Port.airPlay of the current AVAudioSession, you also need to check the value of the AVPlayer's isExternalPlaybackActive property. If it's true, it's AirPlaying video, if not it's just sending the audio to the HomePod.