Can an application find out information about currently playing song on iPhone/iPod Touch? [closed]

StackOverflow https://stackoverflow.com/questions/235369

  •  04-07-2019
  •  | 
  •  

Question

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.

Was it helpful?

Solution

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top