搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

enable autoplay videos for new tab

  • 7 回覆
  • 1 有這個問題
  • 662 次檢視
  • 最近回覆由 DeviantWolf

more options

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!

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.

從原來的回覆中察看解決方案 👍 1

所有回覆 (7)

more options

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.

more options

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
more options

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.

more options

cor-el said

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

looked into all those and still no luck

more options

選擇的解決方法

In that case, you are looking for the media.block-autoplay-until-in-foreground preference. You want to set that to false.

more options

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.

more options

Wesley Branton said

In that case, you are looking for the media.block-autoplay-until-in-foreground preference. You want to set that to false.

awesome work! that did it, i appreciate the help very much, Wesley.