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

搜索 | 用户支持

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

详细了解

Pandora fails to work when media.autoplay.enabled is set to false

more options

I've toggled the media.autoplay.enabled value to false to stop irritating videos from autoplaying all over the damned place, however this seems to have disable the ability of Pandora and Amazon Music to function. I've toggled back to true and managed to operate the site, but the music will fail to proceed to the next track once I've toggled back to false.

Why does autoplay need to be enabled when I am attempting to manually play the music tracks? (literally pressing the play button.) That's not autoplay, that's just play.

Is there a way to add exceptions for the media.autoplay option? As if there were a way to code for something like media.autoplay.enabled = false for all except site: Pandora, Amazon Music

I've toggled the media.autoplay.enabled value to false to stop irritating videos from autoplaying all over the damned place, however this seems to have disable the ability of Pandora and Amazon Music to function. I've toggled back to true and managed to operate the site, but the music will fail to proceed to the next track once I've toggled back to false. Why does autoplay need to be enabled when I am attempting to manually play the music tracks? (literally pressing the play button.) That's not autoplay, that's just play. Is there a way to add exceptions for the media.autoplay option? As if there were a way to code for something like media.autoplay.enabled = false for all except site: Pandora, Amazon Music

所有回复 (6)

more options

I haven't heard of this problem before. Your browser says it is version 54.0.1 (as modified by Waterfox) so if this affected everyone, I think there would have been a post on it in the past 10 weeks. Something odd is happening.

Could you test in Firefox's Safe Mode? In Safe Mode, Firefox temporarily deactivates extensions, hardware acceleration, and some other advanced features to help you assess whether these are causing the problem.

If Firefox is not running: Hold down the Shift key when starting Firefox.

If Firefox is running: You can restart Firefox in Safe Mode using either:

  • "3-bar" menu button > "?" button > Restart with Add-ons Disabled
  • Help menu > Restart with Add-ons Disabled

and OK the restart.

Both scenarios: A small dialog should appear. Click "Start in Safe Mode" (not Refresh).

Any improvement? (More info: Diagnose Firefox issues using Troubleshoot Mode)

Urobolos said

Is there a way to add exceptions for the media.autoplay option? As if there were a way to code for something like media.autoplay.enabled = false for all except site: Pandora, Amazon Music

No. It's not a "permission" so it doesn't have site-by-site settings.

more options

We have seen issues before with autoplay disabled where a script running on the website doesn't detect this properly. In that case you would have to click Play twice to start the video.

more options

jscher2000 said

I haven't heard of this problem before. Your browser says it is version 54.0.1 (as modified by Waterfox) so if this affected everyone, I think there would have been a post on it in the past 10 weeks. Something odd is happening. Could you test in Firefox's Safe Mode? In Safe Mode, Firefox temporarily deactivates extensions, hardware acceleration, and some other advanced features to help you assess whether these are causing the problem. If Firefox is not running: Hold down the Shift key when starting Firefox. If Firefox is running: You can restart Firefox in Safe Mode using either:
  • "3-bar" menu button > "?" button > Restart with Add-ons Disabled
  • Help menu > Restart with Add-ons Disabled
and OK the restart. Both scenarios: A small dialog should appear. Click "Start in Safe Mode" (not Refresh). Any improvement? (More info: Diagnose Firefox issues using Troubleshoot Mode) Urobolos said
Is there a way to add exceptions for the media.autoplay option? As if there were a way to code for something like media.autoplay.enabled = false for all except site: Pandora, Amazon Music

No. It's not a "permission" so it doesn't have site-by-site settings.

No change in safemode. Behavior is the same as regular mode.

cor-el said

We have seen issues before with autoplay disabled where a script running on the website doesn't detect this properly. In that case you would have to click Play twice to start the video.

Double clicking the play button starts the progress bar (not sure if that's the actual progress or a buffering indication in this situation), but the time counter doesn't change and no audio plays. Additionally clicking the button again seems to lock it into a "paused" mode and click play again has no effect.

more options

Just realized I don't need a Pandora account to test this:

https://www.pandora.com/station/play/3713379784854834023

In Firefox 55, the Web Console shows:

[7:53:27:38] WARN Client/mediaElementHarness: The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.

I don't know whether this is something unique to how the player works on Pandora or affects all scripted play() commands.

You can show the built-in player controls, limited as they are, by running this script:

var player=document.getElementById('mediaelement_0'); player.setAttribute('controls', 'true'); player.setAttribute('style', 'position:fixed; bottom:1px; left:1px; height:40px; width:200px; z-index:1000; display:block;');

But hopefully a more convenient method will be found, or Pandora will find a workaround. Have you reported this problem to them?

more options

I have sent a message to Pandora, I have not yet heard anything from them.

more options

Here's a screenshot for the previous post.

由jscher2000 - Support Volunteer于修改