Html5 Audio+ Phonegap + Android?
Solution 1:
No, the audio tag is not supported everywhere, and probably not on your Android device. I found this blog on Android and audio support useful, plus he's got snippet of test code. Run in any browser, including Android browser, to see what's supported.
I used PhoneGap / Android / jQuery Mobile to write this tutorial for playing audio files in a mobile web app using PhoneGap Media API (source is there).
Cheers, Libby
Solution 2:
In 2.3 and newer you can use Audio tag just fine
It's true that HTML 5 audio (.ogg) works in the Android browser but not AFAIK with jQuery and Phonegap. I have code that works in Chrome, on the Android browser on my phone via LAN, even on the iPhone simulator (.mp3) but not in the installed Phonegap app (using Gingerbread 2.3.3).
Solution 3:
It depends on your Android version. In 2.3 and newer you can use Audio tag just fine, but in older versions you have to use Media API from Phonegap.
Post a Comment for "Html5 Audio+ Phonegap + Android?"