This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

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?

All Replies (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.