Mozilla VPN is currently experiencing an outage. Our team is actively working to resolve the issue. Please check the status page for real-time updates. Thank you for your patience.

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Re-enable autoplay permission for website using Web Audio API

  • 2 个回答
  • 1 人有此问题
  • 13 次查看
  • 最后回复者为 Marcin

more options

Hi. Doing some clean up I removed an exception for https://www.diki.pl/ to autoplay sounds (e.g. https://www.diki.pl/dog ). I expected to have a an ability to add it again when entered on the website and clicked the (i) icon with Permissions as described in https://support.mozilla.org/en-US/kb/block-autoplay . However, for that site I don't see anything special (the screenshot attached). The aforementioned site has the "Add sites to your list to autoplay media", but it doesn't allow to add pages, only to remove them or change the settings.

After some digging I was able to restore an exception by adding the following row in the moz_perms table in permissions.sqlite: insert into moz_perms values(XXX, 'https://www.diki.pl', 'autoplay-media', 1, 0, 0, 1570918391133);

However, I would expect to have an easier way to do that - I tested it with a clean profile and the effect is the same - just media.autoplay.block-webaudio needs to be set to true to block it at all).

Is there any easier way to (re-)enable autoplay for shy website (here using Web Audio API)?

Firefox 69.0.1, Fedora 30.

Hi. Doing some clean up I removed an exception for https://www.diki.pl/ to autoplay sounds (e.g. https://www.diki.pl/dog ). I expected to have a an ability to add it again when entered on the website and clicked the (i) icon with Permissions as described in https://support.mozilla.org/en-US/kb/block-autoplay . However, for that site I don't see anything special (the screenshot attached). The aforementioned site has the "Add sites to your list to autoplay media", but it doesn't allow to add pages, only to remove them or change the settings. After some digging I was able to restore an exception by adding the following row in the moz_perms table in permissions.sqlite: insert into moz_perms values(XXX, 'https://www.diki.pl', 'autoplay-media', 1, 0, 0, 1570918391133); However, I would expect to have an easier way to do that - I tested it with a clean profile and the effect is the same - just media.autoplay.block-webaudio needs to be set to true to block it at all). Is there any easier way to (re-)enable autoplay for shy website (here using Web Audio API)? Firefox 69.0.1, Fedora 30.
已附加屏幕截图

所有回复 (2)

more options
more options

Thanks @cor-el! That was something I needed - much simpler than operating at the SQLite DB level :).

Anyway, it would be probably good to mention it at: https://support.mozilla.org/en-US/kb/block-autoplay

In addition, I still would expect to have a page using Web Audio API for autoplay to trigger a question to a user about his/her decision what to do (when `media.autoplay.block-webaudio == true`). WDYT?