Broken iPodMusicPlayer playbackState
| Originator: | info | ||
| Number: | rdar://12065482 | Date Originated: | |
| Status: | Open | Resolved: | |
| Product: | iPhone SDK | Product Version: | 5 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: After the iPod music player has finished its queue and a new song is started, the [MPMusicPlayerController iPodMusicPlayer].playbackState property is broken. Steps to Reproduce: I've created a very basic music player, it's located at https://github.com/kevinrenskers/MusicPlayerTest. After installing the app on an iPhone or iPod Touch (iOS 5), kill the app and do these steps: 1. In the iPod app, play a song on an album that has multiple songs. 2. Open the MusicTest app and see that the play/pause button works fine. 3. Go back to the iPod app, and keep pressing the forward button until you hit the end of the queue. 4. Play another song of this same album, then pause it. 5. Go back to the MusicTest app, the play/pause button is now broken. It seems that once you hit the end of the play queue, the playback state of the iPod app is no longer functioning correctly. When we request the [MPMusicPlayerController iPodMusicPlayer].playbackState property, it always says it is currently playing a song, even though it is not. Hitting the play/pause button is now broken because of this. I can't think of any workarounds, since we need the playbackState property to reflect the actual current state. Expected Results: Everything should be working fine, the playbackState property should reflect the actual state. Actual Results: After hitting the end of the queue and starting another song, the playbackState property is "stuck", saying a song is playing even though it is paused. Regression: It happens in iOS 5.1.1 on an iPhone 4 and the latest generation iPod Touch. Notes: Please see the code at https://github.com/kevinrenskers/MusicPlayerTest. It's the most basic music player ever.
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!