Reputation: 425
How to get the play list of song currently playing in iphone programmatically? I could use the following code to get the song's artist:
[currentItem valueForProperty: MPMediaItemPropertyArtist]
I couldn't find the property for the song's playlist.
Upvotes: 1
Views: 438
Reputation: 2889
MPMediaItems don't know what collections they're in. What you want is the current playback queue, which would be accessible through the [MPMusicPlayerController iPodMusicPlayer]
Unfortunately apple doesn't give access to this at this point.
Upvotes: 1