Firefox block autoplay not working, preferences are showing "Block Audio and Video"
Hi there!
I have been having trouble with Firefox continuing to autoplay videos even with preferences set to "Block Audio and Video."
If I go to twitter.com or elsewhere Firefox will show that auto play is disabled, but videos will autoplay with no audio. I would just like to get this feature working as autoplaying videos are incredibly annoying!
Thanks for any help!
Firefox 72.0.1
Réiteach roghnaithe
You can look at these prefs on the about:config page to see if these values work for you.
- media.autoplay.default = 5 [0:allow; 1:blockAudible; 5:blockAll]
- media.autoplay.allow-extension-background-pages = false
- media.autoplay.block-event.enabled = true
- media.autoplay.enabled.user-gestures-needed = false
For user-gestures-needed you can try false and true to see what works for you.
See also my reply further down for Firefox 78.
In Firefox 78 media.autoplay.enabled.user-gestures-needed =true has been replaced by media.autoplay.blocking_policy =1
If this isn't working then try media.autoplay.blocking_policy = 2
All Replies (11)
Réiteach Roghnaithe
You can look at these prefs on the about:config page to see if these values work for you.
- media.autoplay.default = 5 [0:allow; 1:blockAudible; 5:blockAll]
- media.autoplay.allow-extension-background-pages = false
- media.autoplay.block-event.enabled = true
- media.autoplay.enabled.user-gestures-needed = false
For user-gestures-needed you can try false and true to see what works for you.
See also my reply further down for Firefox 78.
In Firefox 78 media.autoplay.enabled.user-gestures-needed =true has been replaced by media.autoplay.blocking_policy =1
If this isn't working then try media.autoplay.blocking_policy = 2
Athraithe ag cor-el ar
Settings have been changed and are working for all media. Thank you so much!
Athraithe ag GuyManSir657438 ar
This is not working, videos is still starting automatically on Bloomberg and many other sites.
I have had this problem for a long time. Previously, I made the suggested changes inside of about:config. This worked to block the autoplay of videos, but it ultimately prevented the playing of videos when I actually clicked on them because I wanted them to play. I have recently Refreshed Firefox hoping to reset all of my tweaks within about:config, and now I am back to the original problem of block autoplay not working.
Furthermore, why should it be necessary to go into the config settings to fix this problem? Why isn't it working as it should by using the standard settings option under Preferences?
I love Firefox and will continue to use it, but this is very annoying. Thanks for any help!
I'm also having this problem. Out of those 4 about:config flags, this one worked:
media.autoplay.block-event.enabled = true
which makes sense. The first one was already set to 5, the second one has to do with addons (I don't have any malicious addons installed), and the fourth one, I don't even know what user gestures are.
brilliant! thank you cor-el!
"Block Audio and Video" still doesn't seem to work correctly in v77.0.1.
I have it blocking audio and video. I go to Twitter, and it seems to work as it's not auto playing and there's a big blue circle play button.
But when I click anywhere on the screen then scroll one notch in any direction the video starts playing. I can even scroll farther down to hide the video, click the empty side of the page, then scroll up to the video then it starts playing.
And get this, even when I click the scrollbar to go down a few lines, the videos star playing. All videos go into auto play mode. I have all my add-ons disabled too. Is this a known ongoing bug in Firefox trying to be resolved?
I'll try some of the config hacks above, but why is the option there in the first place if it's not working correctly?
EDIT: Ok, I tried the above hacks and the only one I had to change was:
- media.autoplay.enabled.user-gestures-needed = false
The .default setting was already 5 due to the Settings change. Apparently "user-gestures" are causing Twitter to autoplay everything with one mouse click anywhere. Maybe the "Block Audio and Video" permission option should disable that option along with .default=5. Unless all of this is just my configuration.
Athraithe ag Mr.Tom4 ar
"media.autoplay.enabled.user-gestures-needed = false"
This is the only one that has ever worked, and Firefox has now gotten rid of it. This is so unnecessarily complicated. What's its replacement?
media.autoplay.enabled.user-gestures-needed =true has been replaced by media.autoplay.blocking_policy =1 If this isn't working then try media.autoplay.blocking_policy = 2
See also:
- /questions/1293231 Block autoplay being ignored on Firefox 78
More info:
Yup. Thanks.
media.autoplay.blocking_policy = 2
Did the trick again. It was auto set at 1 for some dumb reason even though gestures-needed was false. So it appears Permissions->Autoplay GUI option is still broke since it doesn't modify blocking_policy also.
Just wanted to say thanks corel. It would autoplay on youtube if i single-clicked. If I open in new tab, I have to click to play. Anyway, media.autoplay.blocking_policy was set to 0. I changed it to 2. Works. Thanks for including the info as well.