Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

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

Tất cả các câu trả lời (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.

Được chỉnh sửa bởi jscher2000 - Support Volunteer vào