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
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
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];