Play/Pausing from AirPlay Device Does Not Send UIEvent
| Originator: | atwhitcomb | ||
| Number: | rdar://19020006 | Date Originated: | November 18th, 2014 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | Multiple |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: Using an AirPlay device's player controls (whether AppleTV, AirServer, etc) will not properly send a UIEvent to an application to be handled. Steps to Reproduce: 1. Setup an application to use a UIApplication subclass such that - (void)remoteControlReceivedWithEvent:(UIEvent *)event is overridden and a breakpoint is added to the method for debugging. 2. Setup an AVPlayer with AirPlay capabilities to play a video in the application and ensure that [[UIApplication sharedApplication] beginReceivingRemoteControlEvents] is called during the application's runtime before the AVPlayer starts playing. 3. Add a symbolic breakpoint for the method -[UIResponder remoteControlReceivedWithEvent:]. 4. Run the application on a device (not simulator) and AirPlay the video to a remote device (i.e. Apple TV) 5. Pause the video via the AirPlay device. Expected Results: The symbolic breakpoint set up in step 3 should trigger. After hitting continue on the debugger enough, the standard breakpoint set up in step 2 should trigger, ensuring that the application did receive the UIEvent from the AirPlay device. Actual Results: Neither of the two breakpoints are called, meaning the device did not receive a remote event. Version: iOS 7.1.2 (11D257) for iPad 2, iOS 8.0 (12A365) for iPad 4, Apple TV Software 7.0.2 (6915) for Apple TV. Notes: If using the internal AirPlay controls for the device running the application, the appropriate breakpoints are triggered, signifying the application is properly set up as to handle remote control events via AirPlay. Configuration: iPad 2 Model A1395 and iPad 4 Model A1458 for application, Apple TV Model A1469 for AirPlay device
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!