How do you set the play queue for your MPMusicPlayerController? Perhaps you are using MPMediaQuery to search for MPMediaItemCollection, which is then set as the MPMusicPlayerController queue.
If so, you can take the MPMusicPlayerController indexOfNowPlayingItem property in iOS 5+, add or subtract it, and select MPMediaItem from the items property MPMediaItemCollection that you found. (On iOS <5, you can get the nowPlayingItem index in the items array and use this instead of indexOfNowPlayingItem.)
The fact is that you cannot access the items in the player queue, but if you save the collection of items that you originally assigned to the queue, you can access the items in this collection.
source share