Is it possible to retrieve the info about the current song being played. I'm looking to get the artist and title so I can then display this on an app?
+2
A:
It is not currently possible with iPhone OS 2.0, but (without breaking any NDA) it was publicly disclosed on March 17th that iPhone OS 3.0 will add a new API that'll allow apps to extract metadata from the iPod application... I haven't looked at the API myself, but if you have an ADC account you should have a look at the API. I would'nt be surprised if you could get the currently playing song...
François P.
2009-04-12 14:41:30
+7
A:
With the publicaly available iPhone API (for OS <= 2.2.1), it is not possible to gather any information from the iTunes library on the device. It can be done using unofficial methods, however, such methods would result in Apple declining your application.
With the iPhone OS 3.0 API, you can use something like the following:
MPMediaItem *nowPlayingMediaItem = [[MPMusicPlayerController iPodMusicPlayer] nowPlayingItem];
Jason
2009-04-12 23:03:46