How can I get Airplay device play status, like play/pause

Hello, there. I use “AVPlayer.usesExternalPlaybackWhileExternalScreenIsActive = YES” to display video on some TV which support airplay like Apple TV. I often got the play/pause button shows the incorrect state when playing on TV but correctly in App video playing. So I'd like to get the playing state of Airplay Device to change the App play/pause button state, anyone can help?

Emmm...,I get it fixed by judge player.rate == 0/1

How can I get Airplay device play status, like play/pause
 
 
Q