2 ms·
“Auto-playing audio and video” is confusing me: is it not standard across all browsers to let the user prevent autoplay of at least audio and unmuted video? So
by chrismorgan 6y ago
“Auto-playing audio and video” is confusing me: is it not standard across all browsers to let the user prevent autoplay of at least audio and unmuted video? So I feel like this should be an entirely avoidable problem, just by setting your browser so.
I have Firefox set to block all autoplay. This is generally excellent, stopping all those annoying videos on news articles from playing (seriously, does anyone like those things?). But I am surprised at how many things break in some way, using a <video autoplay> with no controls: like product websites that have short videos throughout the page, or imgur on a video. You end up with the page loading and just no visual indication that there’s a video that you could play at all, and are left to just guess “maybe it’s a video” and right click on it and click Play.
I wrote myself a simple user script a few days ago to experiment with just adding the controls attribute to all videos on page load, which will probably improve most things—though some will add the video element after page load, or remove the controls attribute gratuitously—in imgur, right click → Show Controls, and next time the video starts (e.g. unpause, or buffering completes, or the video loops around) it’ll kill the controls again for utterly mysterious reasons). I’m contemplating putting a MutationObserver in that flips the controls attribute on every time it gets switched off.
- curryst 6y agoMy understanding from a thread a couple of days ago is that are workarounds to that on some platforms. One that was mentioned was turning the videos into animated GIFs, which can autoplay on Chrome and require a special setting on Firefox. It's one of the many wars on the web; websites want to push content, users don't want to be annoyed.