MPMusicPlayerController systemMusicPlayer plays the wrong item

Originator:rics
Number:rdar://31960855 Date Originated:3/5/2017
Status:Open Resolved:
Product:iOS Product Version:10.3.1
Classification:Serious Bug Reproducible:Rarely
 
Area:
Media Player Framework

Summary:
When using MPMusicPlayerController systemMusicPlayer and setting a queue and now playing item in a music player, the wrong item plays.

My app, Stezza, has been running the same code since 2013, but this bug appears to have been introduced with Apple Music, although I do not have any data to support this.

There are others posting the same issue in the forums and on Stack Overflow:
https://forums.developer.apple.com/thread/47962
https://forums.developer.apple.com/thread/46666
http://stackoverflow.com/questions/38164511/music-player-does-not-play-item-selected
http://stackoverflow.com/questions/37281520/ios-9-3-2-breaks-mpmusicplayercontroller
http://stackoverflow.com/questions/37069232/mpmusicplayercontroller-not-working-first-time
http://stackoverflow.com/questions/32299065/mpmusicplayercontroller-play-not-working-after-killing-ios-music-app

Steps to Reproduce:
Open a third party music player
Select some music

Expected Results:
Selected item plays

Actual Results:
A completely different item plays

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!