Play/Pause stops working after playing video with AVPlayerViewController.
| Originator: | clvanwijk | ||
| Number: | rdar://34446163 | Date Originated: | September 14 2017 |
| Status: | Open | Resolved: | |
| Product: | tvOS + SDK | Product Version: | tvOS 10 and 11 |
| Classification: | AV Playback | Reproducible: | Always |
Area: AV Playback Summary: The play/pause button on the Apple TV remote stops working after playing a video with an AVPlayerViewController on Apple TV 4th generation. This problem only appears on the physical device and not the simulator. And the problem occurs if an audio file is played before or after presenting the video in an AVPlayerViewController. Steps to Reproduce: I have uploaded a Xcode project with a single viewController and storyboard. In the view controller I create two buttons, one for playing the audio file and the other to play a video file. I create a UITapGestureRecognizer with the allowedPressTypes = UIPressType.playPause Whenever the play/pause button is pressed on the remote the view changes back ground color as visual indicator that it worked. The play/pause button also pauses and resumes the audio. Expected Results: The play/pause button should remain functional even after the video is played. The screen should always change color and the audio should pause or resume Actual Results: If the audio is played before or after the video is played, the play/pause button stops working. The UITapGestureRecognizer does not call its targeted function any more. Version/Build: tvOS 10 and 11 Configuration: Apple TV 4th generation
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!