7

I've searched around a bit in the small amount of iPhone/iPod Touch development information available and couldn't find anything for or against. Can an application find out information about currently playing song on iPhone/iPod Touch? Since the music can continue to play while you are in 3rd party applications, is there a function or library that will give you information about what is playing? (Track, Artist, Album, etc.) I know generally that applications are sand-boxed but thought maybe there was a way.

Ned Batchelder
  • 364,293
  • 75
  • 561
  • 662
David Lambert
  • 639
  • 5
  • 12

2 Answers2

4

Apple is pretty tight about allowing access to anything having to do with media (other than that provided by you) on the device. I've not found a way to do this.

Ben Gottlieb
  • 85,404
  • 22
  • 176
  • 172
4

If you aren't planning to put your app on the App Store you can import MobileMusicPlayer.h as seen in this example application: song-info

edit: Interacting with the iPod application is now part of the iPhone OS 3.0 SDK

rpetrich
  • 32,196
  • 6
  • 66
  • 89