3 ms·
Currently Audio support in html5 in iOS is really bad, and there's no way around that. Native code is the only realistic option right now for games on iOS. I
by delackner 16y ago
Currently Audio support in html5 in iOS is really bad, and there's no way around that. Native code is the only realistic option right now for games on iOS. I don't see Apple going out of their way to "fix" the situation either.
Specifically, telling an Audio element to simply load and then play a sound fails much of the time, or takes upwards of a full second to start playback of a very short sample file.
Not to mention that iOS specifically prevents an Audio element from playing unless it is in a function responding to user touch. This means background sound effects and such are effectively impossible. I'd love very much if someone told me (with working sample code) that I was wrong.