Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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?

— asked July 17th 2010 by Jason Kam
  • currently
  • music
  • playing

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 ;) )

    — answered July 18th 2010 by Kosso
    1 Comment
    • any solution for android…??

      — commented November 22nd 2011 by Gagan Tiwari
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.