How to store the selection of MusicLibrary ?

You must Login before you can answer or comment on any questions.

I'm using the latest 1.7.6 with iOS.

I'm making an application that need to store playlists from the music library.

My problem is that I need to store persistently the selection made by user with the openMusicLibrary function.

Even when I JSON.stringify the result that I get with the success callback function (in order to use it with Ti.APP.Properties), all I can get is a "[object TiMediaItem]" string.... Trying to access the object properties give me nothing more than "null"...

HELP

1 Answer

there is currently no API exposed that will support that functionality

— answered 1 year ago by Aaron Saunders
answer permalink
3 Comments
  • Very sad :(

    I'm sure there is a workaround, because Titanium give me access to many properties of the obj-c MPMediaItem via the TiMediaItem. But not the one that I want (the persistantIDs and asset url).

    http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPMediaItem_ClassReference/Reference/Reference.html

    — commented 1 year ago by Oussama Ghalbzouri

  • no work around other than writing a module :-)

    — commented 1 year ago by Aaron Saunders

  • have you found anything for this? or are you writing a module? ;) I wanted to point you to this thread. scroll down a bit to see the examples. Not sure if it gets you what you need, but might be a step in the right direction? If you found an answer I would be interested!

    — commented 1 year ago by Mendel Broekhuijsen

Your Answer

Think you can help? Login to answer this question!