Hacker News new | ask | show | jobs
by sparky_z 3778 days ago
Believe me I've looked. As far as I can tell, there's no way to make one that works for everything because the HTML5 standard* doesn't have a clear distinction between things that autoplay and things that don't, the way there was between "flash content" and "everything else".

*I'm not a tech guy so I may be using the wrong terminology here.

1 comments

Yes, it's a tricky problem because "what does autoplay mean?" If you load up a page containing an HTML5 game, presumably you want the background music and SFX to work. But how do we differentiate those from an unwanted autoplaying audio ad?

I believe the Firefox devs settled on anything during/after a user interaction is allowed to autoplay. More at this bug (which I've been following for years, if you couldn't tell :)

https://bugzilla.mozilla.org/show_bug.cgi?id=659285