Rob, I’ve now purchased Scott’s external storage plugin. For the benefit of future readers, it’s at:
https://marketplace.coronalabs.com/plugin/external-storage
The inability of Corona to access accessible native media files (i.e., files whose permission lets me read them)
is mind boggling. I *CAN* read such files (e.g., io.open() and <filehandle>:read), so we know that they’re accessible.
The drawback to the plugin approach is that I have to copy .mp3 files to my Corona sandbox in order to play them.
I shouldn’t have to copy them! That introduces a potentially significant time-lag, and introduces the spectre of file-storage leakage.
The Corona SDK entire approach to files / directories is somewhat wonky, but even in the current system,
there should be a trivially easy way to signal to a function like audio.loadSound that the path is relative to the system root ("/"),
not the sandbox root. (E.g., system.realRootDirectory returning a constant directory handle, or some such.)
Yeah, there’s a chance that fix … ok, sigh, enhancement … might not be applicable to iOS, but it would be meaningful/useful
on Android, Mac, and Windows.
Guess I should start a list of things to change when I become CTO? 