Is there any iTunes API for the iPhone OS which I can use to access some information (current track, etc.) from iTunes?
I looked around, but all I could find was some AppleScript and COM API.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to add MediaPlayer.framework to your target in Xcode and #import MediaPlayer/MediaPlayer.h
then
something like
then in viewDidLoad you need to register for the event
implement handleNowPlayingItemChanged
now
When the now playing item changes you wll be notified by getting called this method