Titanium Community Questions & Answer Archive

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

Titanium.Media.MusicPlayer with local MP3 file ?

Is there a possibility to use the Titanium.Media.MusicPlayer with local MP3 file ?

I don't know how to set setQueue to a local MP3 file.

Thanks,

Johan

— asked September 16th 2010 by Johan Pyfferoen
  • local
  • musicplayer
  • sound
0 Comments

1 Answer

  • Accepted Answer

    I'm pretty certain that the MusicPlayer functions will only work for files/tracks in your iPod library.

    To play a local mp3 file which is in your app Resources, you'd need to use the Sound object.

    http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Media.Sound-object

    — answered September 16th 2010 by Kosso
    permalink
    0 Comments
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.