4 ms·
It works on Android, yes. However, sound is not supported on iOS or Android devices yet. The <audio> implementation on those platforms is unbelievably broken a
by phoboslab 16y ago
It works on Android, yes.
However, sound is not supported on iOS or Android devices yet. The <audio> implementation on those platforms is unbelievably broken and there's not much I can do about it other than wait for Apple and Google to fix it.
This blog post does a good job at mentioning the problems with sound on iOS and how to work around a few of them. Android has basically the same problems:
http://remysharp.com/2010/12/23/audio-sprites/ http://remysharp.com/2010/12/23/audio-sprites/
Still, even with all those workarounds, you have a lot of lag (>0.5s) before a sound plays and you can only play one sound at a time. That's hardly suited for games :/
- dpcan 16y agoI had trouble with the multi-touch on my android, so the demo game didn't really work, but it does seem to work, yes, sorry about that. I see what you mean about sounds. I just went and tried some of the HTML 5 games I like on my iPhone and just realized they too didn't have sounds. I'm thinking that if I create a native Android app and wrap the HTML 5 game into a browser, then I may be able to use SoundPool to play some sounds if the game and the app can communicate. We'll see, may be purchasing today :)