4 ms·
It is about permissions. You can autoplay video just fine with HTML5. But you can't do it with sound. And how would your WebAssembly decoded video play sound? R
by eis 6y ago
It is about permissions. You can autoplay video just fine with HTML5. But you can't do it with sound. And how would your WebAssembly decoded video play sound? Right, using the exact same HTML5 media elements. WebAssembly doesn't allow you to somehow do different things in the page. It only allows some computations but to actually have any output it has to resort to the same APIs that your normal JS uses.
- vbezhenar 6y agoIf you can autoplay html video without sound right now, then you're right, I thought that autoplay was forbidden for all videos.
- magicalhippo 6y agoThat's what I told Firefox, but for some reason video autoplays just fine all the time so...
- RedComet 6y agoSame, is there a fix for this?
- padenot 6y agoFirefox media developer here. It's a bit hard to understand what the problem is, sorry. You can block video and sound auto-play altogether, or just audio, or none, in `about:preferences#privacy`, and choose or check exceptions you've granted, but if I read the grand-parent comment correctly, an appropriate setting has already been put in place. Additionally, if the website really wants to play audio against a visitor's will, it can try to hijack clicks and touch events. There are some plans to tighten this, the spec was designed to allow implementing various policies. It should also be possible to write a content blocker for this as a Web Extension (maybe it already exists). Does this happen on all websites? On some websites, that you could possibly share with us, so we can have a look and understand what's up ? Can anybody that is not satisfied about this open a ticket at https://mzl.la/363s8KN https://mzl.la/363s8KN, and put in `:padenot` in the box `Request information from` (log in with github or a bugzilla account) with some info about the websites ? An alternative would be to send me an email, username at mozilla.com.
- magicalhippo 6y agoThanks, I'll keep this in mind and report when I get it next time. So far uBlock Origin seems to be pretty good at keeping the most annoying videos at bay, but sometimes they do slip through.
- rbg246 6y agoI also noticed it today on a website that video was autoplaying and was shocked by it as Firefox has stopped that for some time. I'll note where it happens again.
- lewiscollard 6y agoI don't suppose you dismissed one of those "totally GDPR compliant" cookie bars right before that, did you? (You may have to think very hard; it's basically muscle memory for us these days...) I've seen this trick in the wild. "No autoplay" means "no autoplay without some user interaction first". And clicking one of those "I accept" buttons is indistinguishable from clicking on any other random element to make it play a video. So they just made the "I accept" button play the video as well as dismiss whatever thing was probably covering up the website. Some people are terrible.
- rbg246 6y agoYou know what that could have been it, that would be one of those tricks. Thanks for the tip.
- RedComet 6y agoThank you, I have only noticed this occurring after clicking a different video first. It is probably due click highjacking or the like.