본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

How do I get twitch streams to load in background tabs?

  • 8 답장
  • 1 이 문제를 만남
  • 2 보기
  • 최종 답변자: ABitMore1024

more options

A few months ago, Twitch streams stopped loading in background tabs. I used to be able to open a stream, go to a different tab and do something for 5-10 seconds, hear stream sound as it started. Now I open the stream, go to a different tab and it will never finish loading until I go back to the twitch tab. Is there any setting to revert this?

Changing "browser.sessionstore.restore_on_demand" to false did not do anything for me.

A few months ago, Twitch streams stopped loading in background tabs. I used to be able to open a stream, go to a different tab and do something for 5-10 seconds, hear stream sound as it started. Now I open the stream, go to a different tab and it will never finish loading until I go back to the twitch tab. Is there any setting to revert this? Changing "browser.sessionstore.restore_on_demand" to false did not do anything for me.

모든 댓글 (8)

more options

Try setting media.block-autoplay-until-in-foreground to false in about:config. I think Beta and Nightly have this pref enabled by default now. Certainly helps a lot for me.

Edit: Also, I see that you are using v24 of Flash. If you choose to continue using Flash, please be sure to ALWAYS keep it updated. Flash is very vulnerable and security flaws are rampant in past versions.

글쓴이 Moses 수정일시

more options

Moses said

Try setting media.block-autoplay-until-in-foreground to false in about:config. I think Beta and Nightly have this pref enabled by default now. Certainly helps a lot for me. Edit: Also, I see that you are using v24 of Flash. If you choose to continue using Flash, please be sure to ALWAYS keep it updated. Flash is very vulnerable and security flaws are rampant in past versions.


It was already set to false. I tried toggling it but both settings did not change anything.

more options

Question: Does any part of the Twitch webpage load in the background?

Question: Do other websites load in the background like YouTube?

more options

Yes, the entirety of the page loads but the stream is just a black screen. It also doesn't go to other streams if the one i went to is hosting someone else.

Yes, Youtube loads in the background and starts to play correctly.Fiz said

Question: Does any part of the Twitch webpage load in the background? Question: Do other websites load in the background like YouTube?

Yes, the entirety of the page loads but the stream is just a black screen. It also doesn't go to other streams if the one i went to is hosting someone else.

Yes, Youtube loads in the background and starts to play correctly.

more options

Is the player into view when the page loads?

YouTube only continues playing a playlist or proceed the the next item if I leave the player into view. If I scroll down the page to look at some comments then I need to scroll to the top to make the next video start. This happens regardless whether the YouTube page is selected or not. i.e. if I switch to another tab and forget to scroll the player into view then loading the next video fails.

more options

The likely culprit is the JavaScript Event Listener viewport code in Twitch's https://player.twitch.tv/js/player.js checking to see if you're watching. They're probably doing this to save on bandwidth, and/or so you watch the ads. Looks like they're doing it on purpose. It behaves the same way in other browsers.

Specifically: "canUseViewport:n&&!!window.screen,isInWorker:"

I can't think of an easy way to change this unless you wrote an add-on that modified their JavaScript.

글쓴이 ABitMore1024 수정일시

more options

Any chance in creating a setting that allows all tabs to act like they are active tab to avoid issues such as this?

more options

The tabs are behaving as active tabs when you set media.block-autoplay-until-in-foreground to false (test it with YouTube). Content loads as expected. Twitch has purposely written code on their website to prevent the functionality you desire. This is apparent, as the "issue" is prevalent across browsers. They obviously prefer people not simultaneously launch a bunch of streams unless they intend to watch them. A third party add-on would be required, to re-write or remove their JavaScript code, for the functionality you desire.

Source: Chrome by default will not allow a streaming video to play in a background tab until you view it, however there is a setting under chrome://flags/ called "Gesture requirement for media playback" which will allow background tabs to playback video when disabled(like with YouTube). This doesn't work for Twitch, as Twitch has additional code to prevent it.

Suggestion: Use Shift+Left Click and open the link in new window then hit Alt+Tab to go back to your other window.

글쓴이 ABitMore1024 수정일시