1

Possible Duplicate:
On iPhone: Find out what song is currently playing? (in the iPod music player)

Is it possible to get info ob the currently playing song in the iPhone's music player? Can it b accessed from a different app? Thanks

Community
  • 1
  • 1
La bla bla
  • 8,558
  • 13
  • 60
  • 109

1 Answers1

0

Yes you can use MPMusicPlayerController class.

+ (MPMusicPlayerController *)iPodMusicPlayer
Return Value

The iPod music player.
nowPlayingItem

The currently-playing media item, or the media item, within a queue, that you have designated to begin playback with.
@property (nonatomic, copy) MPMediaItem *nowPlayingItem
MPMediaItem *currentPlayingSong = [[MPMusicPlayerController iPodMusicPlayer] nowPlayingItem];
Parag Bafna
  • 22,812
  • 8
  • 71
  • 144
  • Thanks. I'm unfamilliar with the MPMediaItem and not near a mac now, can I get the ID3 details? like artist and name etc? – La bla bla Mar 25 '12 at 11:15