enable autoplay videos for new tab
I tried to enable the browser to play videos in new tabs by itself but it refuses to. I read to change the value of the media.autoplay.enabled but i did a search for it in the about:config window, but it doesn't show that it exists... any help would be grateful!
被選擇的解決方法
In that case, you are looking for the media.block-autoplay-until-in-foreground
preference. You want to set that to false
.
所有回覆 (7)
Those are the old steps. Firefox just recently had that setting added to the Firefox Settings page. It's the Block websites from automatically playing sound option.
You can also allow/block autoplay on a site-by-site basis using the website permissions menu.
More information about the feature can be found in Allow or block media autoplay in Firefox.
Hope this helps.
The media.autoplay.enabled pref is replaced by an Integer pref named media.autoplay.default.
- media.autoplay.default = 1 [0:Allowed; 1:Blocked 2:Prompt]
Two other prefs available on the about:config page:
- media.autoplay.allow-muted
- media.autoplay.enabled.user-gestures-needed
Wesley Branton said
Those are the old steps. Firefox just recently had that setting added to the Firefox Settings page. It's the Block websites from automatically playing sound option. You can also allow/block autoplay on a site-by-site basis using the website permissions menu. More information about the feature can be found in Allow or block media autoplay in Firefox. Hope this helps.
I tried that and unfortunately that didn't work. What it used to do, i would middle click on a video so it would open in a new tab, and then it would autoplay, but now i do the same thing, and it won't play until i click on the new tab.
cor-el said
The media.autoplay.enabled pref is replaced by an Integer pref named media.autoplay.default.Two other prefs available on the about:config page:
- media.autoplay.default = 1 [0:Allowed; 1:Blocked 2:Prompt]
- media.autoplay.allow-muted
- media.autoplay.enabled.user-gestures-needed
looked into all those and still no luck
選擇的解決方法
In that case, you are looking for the media.block-autoplay-until-in-foreground
preference. You want to set that to false
.
You have to disable block auto-play and make sure media.autoplay.default = 0 Also make sure media.autoplay.allow-muted = true and media.autoplay.enabled.user-gestures-needed = false That would work if the website allows auto play. If the website doesn't use auto-play then these setting do not have effect as this is only about websites that play automatically and you do not want this.
Wesley Branton said
In that case, you are looking for themedia.block-autoplay-until-in-foreground
preference. You want to set that tofalse
.
awesome work! that did it, i appreciate the help very much, Wesley.