www.ruu.cc
www.ruu.cc

Reputation: 425

How to get the play list of song in iphone programmatically

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

Answers (1)

ihm
ihm

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

Related Questions