為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

Youtube block autoplay not working

more options

Hello,

Recently Firefox tends to start autoplaying a YouTube video if I am on the tab.

Before it would not play the video if i am on the tab unless I physically press play.

It still works if I open a YouTube video in a tab that is not active, it will not autoplay, but as soon as I hover over and click on that tab it will start playing, however I do not want this to happen, I want it to pretty much always be autoplay blocked regardless if tab is active or not and I want to physically press play in order for it to start.

How to revert it to that state?

My block audio and video setting in firefox is already turned on, not sure what to do, pretty sure I did nothing on my end.

Right now I have to use extension called "disable autoplay" just to get by.

Thanks guys!

Hello, Recently Firefox tends to start autoplaying a YouTube video if I am on the tab. Before it would not play the video if i am on the tab unless I physically press play. It still works if I open a YouTube video in a tab that is not active, it will not autoplay, but as soon as I hover over and click on that tab it will start playing, however I do not want this to happen, I want it to pretty much always be autoplay blocked regardless if tab is active or not and I want to physically press play in order for it to start. How to revert it to that state? My block audio and video setting in firefox is already turned on, not sure what to do, pretty sure I did nothing on my end. Right now I have to use extension called "disable autoplay" just to get by. Thanks guys!

被選擇的解決方法

You can look at these prefs on the about:config page to see what settings work for you to block autoplay.

  • media.autoplay.default = 5 [0:allow;1:blockAudible;5:blockAll]
  • media.autoplay.blocking_policy = 2
  • media.autoplay.allow-extension-background-pages = false
  • media.autoplay.block-event.enabled = true
  • media.block-autoplay-until-in-foreground

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.


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

所有回覆 (7)

more options

Did you check you settings in youtube in playback & performance? Not sure if this will help but worth a shot. This latest update has been a nightmare all around I see. I lost my ability to print and no matter what I do, it doesn't solve it.

more options

janpre2001 said

Did you check you settings in youtube in playback & performance? Not sure if this will help but worth a shot. This latest update has been a nightmare all around I see. I lost my ability to print and no matter what I do, it doesn't solve it.

In chrome it works perfect, was there a firefox update that broke this? Or was it a youtube update?

由 HabibiFreshUFC 於 修改

more options

選擇的解決方法

You can look at these prefs on the about:config page to see what settings work for you to block autoplay.

  • media.autoplay.default = 5 [0:allow;1:blockAudible;5:blockAll]
  • media.autoplay.blocking_policy = 2
  • media.autoplay.allow-extension-background-pages = false
  • media.autoplay.block-event.enabled = true
  • media.block-autoplay-until-in-foreground

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.


more options

Beast!

This one fixed it "media.autoplay.blocking_policy = 2 "

more options

Do you know how to make it so YouTube remembers where I left off it seems to have stopped saving where I left a video off...

more options

HabibiFreshUFC said

if I open a YouTube video in a tab that is not active, it will not autoplay, but as soon as I hover over and click on that tab it will start playing

New youtube tabs should not autoplay like you describe if you are blocking audio & video with no other changes.

HabibiFreshUFC said

make it so YouTube remembers where I left off

You need to be logged in to a youtube account with history enabled and it only works for longer videos that you have watched for a while.

Test in Troubleshoot Mode to rule out interference from extensions.

more options