Simple Audio Player in Mobile Safari - Clearly Innovative | Web and Mobile DevelopmentClearly Innovative | Web and Mobile Development

Once again, looking at a StackOverflow question and trying to learn more about iPhone and PhoneGap.

I wrote this simple application to test playing audio on my iphone with just a simple HTML5 audio tag

Some gotchas were, finding the document folder, setting the base url for the web view and finally encoding the basepath for the webview ui

the code snippet is below, use at your own risk.