搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

start video in backgroud

more options

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

所有回覆 (3)

more options

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.

more options

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

more options

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/