Get artist and title of currently playing song
I'm having difficulty finding the API to get this. Any help or a point in the right direction?
1 Answer
-
If you look in KitchenSink, you'll find a demo in the 'Phone' tab > Music
If you open the iPod player first, then start a song. Then let that play in the background, then open KitchenSink on your device, you'll see that it shows you the currently playing song title and artist.
Look for the file : /Resources/exmaples/music.js in the KitchenSink folder ;)
or here on github: http://github.com/appcelerator/titanium_mobile/blob/master/demos/KitchenSink/Resources/examples/music.js
(I'm assuming you're asking this question in relation to iPhone app development ;) )