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

搜索 | 用户支持

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

详细了解

Firefox stopped autoplaying audio in the background

more options

I listen to a lot of music over the internet. When listening to sites and have "tracks" and need to skip to the next one, firefox always used to move on to the next track. Sometime recently, within the last few weeks, it stopped functioning like this. It will only work as is used to when the tab playing audio is opened in the foreground. If I've switched to another tab, it will continue playing the song it was on, but will not skip to the next song when it's time. I've tried changing some playback settings in about:config, to no avail. Any help?

I listen to a lot of music over the internet. When listening to sites and have "tracks" and need to skip to the next one, firefox always used to move on to the next track. Sometime recently, within the last few weeks, it stopped functioning like this. It will only work as is used to when the tab playing audio is opened in the foreground. If I've switched to another tab, it will continue playing the song it was on, but will not skip to the next song when it's time. I've tried changing some playback settings in about:config, to no avail. Any help?

所有回复 (13)

more options

Could the problem be the anti-autoplay setting? This article describes where to find that: Allow or block media autoplay in Firefox.

more options

thanks, but I tried that already. Its set to the proper settings to allow autoplay.

more options

There are methods pages can use to detect that they are not the page in focus, so it's possible this is a change in the page. Any difference in other browsers?

more options

I tried Chrome, and it functions as Firefox used to. Skips to the next song when ready. Would it be too much to ask for you to check a website I'm trying?

more options

You can share links to sites that do not require an account. Happens all the time here.

more options

Thanks. No account required.

http://www.gratefuldeadoftheday.com/05-15-1970

So normally, say I have two tabs open, that one I just linked, and facebook. I start the music, and switch over to facebook to browse, when the song in the other tab ends, it switches to the next song. It recently stopped behaving this way, not when one song ends I need to switch over to the tab playing music for it to start again.

more options

Hmm, it's strange. The moment I click that tab it starts playing. Why is it waiting?

I think the site has all the needed permissions, and if I pop the player frame out and give it permission, same problem.

So far, the only way I see to make it work it to move the tab to a new window (you can click and drag down on the tab and it will detach). As the active tab in the new window, as long as the window is on screen and not minimized, it plays through at least a couple tracks.

Thinking maybe the problem was the media.block-autoplay-until-in-foreground preference, I flipped it to false, but it didn't help get the autoplay working in this case (not sure if it works immediately or a restart is needed). So I'm not sure why it pauses in background tabs.

more options

That's what got me too. I tried toggling all the recommended settings. I think it's a bug. It just started happeing within the last update or two. That's not the only site it does it on.

archive.org is the same way.

Also, I have a personal server, it reacts the same way in firefox when streaming my music app.

more options

jscher2000 said

So far, the only way I see to make it work it to move the tab to a new window (you can click and drag down on the tab and it will detach). As the active tab in the new window, as long as the window is on screen and not minimized, it plays through at least a couple tracks.

This is a great workaround. Don't know why I didn't think of it. Thank you.

more options

An extremely patient person with a high bandwidth connection and a test page that plays very short clips could run Mozregression to try to track down the relevant change. But considering the workaround, I'm not sure it's worth it unless you are operating a public site that needs to autoplay.

https://mozilla.github.io/mozregression/

more options

In this case the website plays a mp3 audio file via a video tag. I don't know whether it would make a difference with an audio tag, but this sounds more like a problem with the JWPlayer that wants focus for some reason.

more options

cor-el said

In this case the website plays a mp3 audio file via a video tag. I don't know whether it would make a difference with an audio tag, but this sounds more like a problem with the JWPlayer that wants focus for some reason.

I'm sorry, what is the JWPlayer?

more options

JWPlayer is a popular video script used for the Archive.org player.