Apple TV play/pause button does not fire event with MPRemoteCommandCenter

In my opinion, when the Play/pause button is pressed on the AppleTV remote while an app is airplaying video, the framework should go through the MPRemoteCommandCenter to fire a callback on the appropriate command object.

My handlers don't get called — and I provided a handler for togglePlayPauseCommand, playCommand, and pauseCommand.

Also as an effect, in Command Center the play/pause icon is not changed when I use the ATV remote button.

It seems like the AppleTV is pausing the stream at a lower level.

Agreed, we had to work around this in our code as well. This is also a problem in the new iOS 9 API AVPictureInPictureController. I encourage you to file a bug report with Apple.


Here are my radars:

"Apple TV remote should trigger MPRemoteCommandCenter callbacks" (rdar://21375465)

"AVPictureInPictureController controls should respect MPRemoteCommandCenter." (rdar://21375458)

I've also opened a radar asking for a way to catch play/pause control events in AVPictureInPictureController. (rdar://21519877)

We have found that observing the rate property of AVPlayerItem works to detect play/pause events in AVPictureInPictureController.


However, while that part does work, after pausing the player using the button on the little PictureInPicture window, the stream does not continue to play when un-pausing with the Play button. We get the observer firing, reporting that rate has been set to 1.0, but the stream remains paused.


We are using an HLS stream, which works perfectly with our custom AVPlayer based player, but cannot resolve this play/pause issue in AVPictureInPictureController.

Please file a bug at bugreporter.apple.com, ideally with a small sample project that exhibits the issue clearly.

I have the same issue, will this be fixed?

It used to work fine in the previous OS version, I really miss this feature!

May you please fix it or at least communicate on it. Thank you.

I been to find by missing iPhone

Apple TV play/pause button does not fire event with MPRemoteCommandCenter
 
 
Q