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

start video in backgroud

Hello everyone!

I need to start a video even though my page is in the background, this does not start until the page is in the foreground, I have already checked the following param network.http.throttle.enable network.http.throttle.suspend-for network.http.throttle.version media.suspend-bkgnd-video.enabled media.videocontrols.picture-in-picture.video-toggle.enabled dom.min_background_timeout_value but none works, any idea how I can activate the video in the background

Hello everyone! I need to start a video even though my page is in the background, this does not start until the page is in the foreground, I have already checked the following param network.http.throttle.enable network.http.throttle.suspend-for network.http.throttle.version media.suspend-bkgnd-video.enabled media.videocontrols.picture-in-picture.video-toggle.enabled dom.min_background_timeout_value but none works, any idea how I can activate the video in the background

All Replies (3)

You can check media*autoplay prefs like these:

  • media.block-autoplay-until-in-foreground = false

Note that services.sync.prefs.sync.<pref> prefs are about syncing prefs to other devices and best is to leave such prefs alone unless you do not want to sync the specified pref.

thanks for the answer, change the parameter to false, but it still continues without playing the video when it is in the background

There is an add-on for YouTube and Vimeo to prevent the sites from detecting that their tab is in the background, so they don't pause the stream. If the video is playing on one of those sites, you could take a look:

https://addons.mozilla.org/firefox/addon/video-background-play-fix/