Hi,
I am making a music player for iOS. So far, I have figured that I am supposed to:
- in the InfoAdditions section of the app manifest, add: UIFileSharingEnabled = true, so that users can place mp3s in iTunes within the app's documents directory, which my app can then open.
- Since File.browseForOpen() doesn't work on iOS ( *sigh* ), either:
- create my own file browser, based on the file pointers I get via File.documentsDirectory.getDirectoryListing().
- OR: coherce an image browser to look for sound files ( ! ) somehow, such as:
- CameraRoll.browseForImage()
- ANE: https://github.com/freshplanet/ANE-ImagePicker
- Distriqt's CameraRollExtended ANE: http://distriqt.com/native-extensions#camerarollextended
Assuming I can make this work without running afoul of Apple's storage guidelines ( BTW: from what I am reading, using the documents directory to store mp3s might be a violation ), I still need to figure out one more thing:
How do I make it so that other apps can see my air app via the little "Open in..." drop-down menu, when trying to read an mp3? Is that even possible? IOW, is there a way to indicate to iOS that my AIR app can read mp3s ( or other sound files )?