Page 1 of 1

Playing Sounds from the iPod Library

Posted: Fri Dec 10, 2010 6:23 am
by donw
I'm new to LiveCode and iOS development. I'm really excited about being able to have a common code base between the desktop and mobile platforms.

Is it possible to play songs from the iOS iPod library using LiveCode?

I'm not looking for a Song Selector UI. I'd like to programmatically select songs and information from the iPod Library. On OS X, everything I'm looking for is contained within the file ~/Music/iTunes/iTunes Music Library.xml. Is there an equivalent file under iOS and is that file accessible from within LiveCode?

Re: Playing Sounds from the iPod Library

Posted: Mon Dec 13, 2010 5:20 am
by donw
From what I can determine, before iOS 4, Apple forbid accessing the iPod music library. Under iOS 4, there is a Media Query API that reads the iPod Library and a Media Picker API that lets the user choose a song.

http://developer.apple.com/library/ios/ ... ccess.html

If LiveCode doesn't specifically support Apple's APIs, I can't see how one would use the iPod Music Library. Someone please correct me if my information is incorrect.

Re: Playing Sounds from the iPod Library

Posted: Tue Apr 26, 2011 2:59 am
by donw
I thought I'd bump my own post to see if there's any chance that the iPod Library Media Query will be added to LiveCode?

Re: Playing Sounds from the iPod Library

Posted: Tue Apr 26, 2011 11:43 am
by Klaus
Hi don

this not (yet) possible, but there are enhancement requests for this.
So I am sure this will be in one of the next releases.


Best

Klaus

Re: Playing Sounds from the iPod Library

Posted: Thu Jun 23, 2011 9:05 pm
by donw
If there isn't LiveCode specific support for the Media Query API, would using the Externals SDK be possible to bridge to the iOS Media Query API?

RunRev Website: /developers/documentation/externals-sdk/

I'm sure I could hack together the small amount of code needed, especially with the examples.