3 ms·
I thought HTML audio couldn't be auto-played without first receiving a tap from the user? If true, the fake phone call trick wouldn't be possible. That's the l
by exodust 13y ago
I thought HTML audio couldn't be auto-played without first receiving a tap from the user? If true, the fake phone call trick wouldn't be possible.
That's the limitation I noticed anyway when I had a quick go at an audio web app a year ago. I couldn't get sounds to play on load without first a tap from user - this was on iOS Safari anyway, I didn't test on other browsers.
- edent 13y agoIt depends on the browser. In Firefox, it will autoplay. But, that said, there's nothing to stop you adding an onClick() event to any part of your page which will then play the audio.
- judah 13y agoThis is really a limitation on iOS, see my blog post on the subject here: http://debuggerdotbreak.wordpress.com/2012/06/12/apple-please-fix-html5-on-ios/ http://debuggerdotbreak.wordpress.com/2012/06/12/apple-pleas... It's a limitation that makes it quite annoying to build HTML5 audio apps, which is what my startup does. I have several hacks in my code to accomodate iOS's crippled HTML5 audio implementation.