oddworks blog

Twitch pauses when you switch tabs? Every fix that works

On this page
  1. Fix 1: Unmute the player and mute the tab instead
  2. Fix 2: Keep the window visible when you Alt+Tab
  3. Fix 3: Exclude Twitch from Memory Saver or sleeping tabs
  4. Fix 4: Use Twitch's popout player
  5. Fix 5: Picture-in-picture
  6. Fix 6: Stop the page from seeing the tab switch
  7. Check what Twitch can see
  8. FAQ

When a Twitch stream stops after you switch tabs, it is almost always one of three things: the player is muted and the browser stops muted video in background tabs, the browser window is minimized or covered so the page is told it is hidden, or a memory feature put the tab to sleep. Unmute the player, keep the window on screen, and exclude twitch.tv from Memory Saver or sleeping tabs. If the stream still stops, the page itself is reacting to the tab losing visibility or focus, and that needs an extension.

The fixes below are in the order most likely to help. Each one is free.

Fix 1: Unmute the player and mute the tab instead

This is the most common cause, and it is behind the "twitch pauses when muted" searches. People report that Chrome, and Chromium browsers like Brave and Edge, pause or stop rendering video that is muted when its tab goes into the background. A muted stream left running in another tab is exactly that case.

The workaround is to move the mute from the player to the tab:

  1. In the Twitch player, turn the volume back up so the player is not muted.
  2. Right-click the Twitch tab in the tab strip.
  3. Select Mute site.

The page still plays audio as far as the player is concerned, so the browser treats it as normal playback, but you hear nothing. To undo it, right-click the tab again and select Unmute site. Note that Mute site applies to every twitch.tv tab, not only the one you clicked.

Fix 2: Keep the window visible when you Alt+Tab

Switching to another tab in the same window always marks the Twitch tab as hidden. Switching to another app with Alt+Tab (or Cmd+Tab on a Mac) is different, and what happens depends on the window:

  • Minimized window: the page is told it is hidden, the same as a background tab.
  • Window fully covered by another app: Chrome on Windows can detect that a window is completely covered and report it as hidden too.
  • Window still partly visible: the page stays "visible", but it does receive a window blur event because it lost focus.

So if the stream stops on Alt+Tab, try leaving the browser window partly on screen, or put the stream in its own smaller window (Fix 4). If it still stops while the window is clearly visible, the player is reacting to the focus change, which only Fix 6 addresses.

Fix 3: Exclude Twitch from Memory Saver or sleeping tabs

Browsers deactivate tabs you haven't used for a while to free memory. Google says active audio or video playback normally keeps Chrome from deactivating a tab, so this mostly bites when a stream was paused, buffering, or muted for a while. When a tab is deactivated, clicking it reloads the page. If you come back to Twitch and it reloads from scratch, this is your cause.

Chrome: go to Settings > Performance, then next to Always keep these sites active, click Add and enter twitch.tv. You can also turn Memory Saver off on the same page. Google's steps are in Personalize Chrome performance. Our guide on whether to keep Chrome Memory Saver on or off goes through the trade-off.

Brave: Memory Saver lives under Settings > System, and Brave's help page on Memory and Energy Saver explains the exception list. Some recent Brave releases have moved or hidden this section, so if you can't find the exception list, turning Memory Saver off is the reliable option.

Edge: open edge://settings/system, and under Optimize Performance add twitch.tv to Never put these sites to sleep.

Chrome's Energy Saver (same Performance page) is worth checking on a laptop running on battery. Google notes it stops some CPU-heavy background tabs, though tabs playing audio are not affected.

Fix 4: Use Twitch's popout player

Twitch has its own popout player. Click the gear icon on the video player and choose Popout Player, as described on Twitch's channel page tour. The stream opens in a separate small window.

Because that window has only one tab, switching tabs in your main window doesn't hide it. Keep it somewhere on screen, not minimized, and it behaves like a foreground tab. On Windows, keep in mind that a window buried completely under others can still be reported as hidden.

Fix 5: Picture-in-picture

Chrome can float a video above everything else:

  1. Start the stream.
  2. Click the Media control icon at the top right of Chrome, next to the address bar.
  3. Click Enter picture-in-picture.

The steps are on Google's Control your music, videos, and more page, which also covers automatic picture-in-picture, a site permission under Settings > Privacy and security > Site settings > Additional permission settings. Chrome only uses it on sites and in situations that qualify, so don't count on it for every stream.

Picture-in-picture keeps the video in view, but the Twitch tab itself is still a background tab. Chat and channel points still won't update the way they do in a foreground tab. For a side-by-side comparison of these options, see keep a video playing while you work.

Fix 6: Stop the page from seeing the tab switch

If the stream is unmuted, the tab isn't being discarded, and it still stops when you leave, the page is reacting to the switch itself. Websites can tell you've left through the Page Visibility API (document.hidden and the visibilitychange event), the window blur event, and the fact that animation frames stop in hidden tabs. Can websites see when you switch tabs? explains each signal.

There is no browser setting to turn these off. An extension has to change what the page sees before the site's own scripts run. Focus Spoofer (which we make) does that on the tabs you choose:

  • document.hidden stays false and document.visibilityState stays "visible".
  • visibilitychange, pagehide and window-level blur and mouseleave events are blocked.
  • document.hasFocus() keeps returning true.
  • requestAnimationFrame and requestVideoFrameCallback keep firing in the hidden tab.

To use it on Twitch:

  1. Install Focus Spoofer from the Chrome Web Store. It works in Chrome, Brave and Edge.
  2. Open the stream, click the extension icon and turn the switch on. The tab reloads with protection active.
  3. To protect Twitch every time, tick Always protect this site.

It is free, needs no account, and your browsing data never leaves the browser. The source is on GitHub. It doesn't work in Firefox or Safari yet.

Be clear on what it can't do. It does not stop Memory Saver or sleeping tabs from discarding a tab (use Fix 3 for that), and it does not fix the muted-video behavior on its own (use Fix 1). It also only works on desktop browsers, not the Twitch mobile app.

Check what Twitch can see

Open our tab-switch detection test, switch to another tab for a few seconds, then come back. The page logs every signal it caught: hidden state, blur, missing animation frames. Run it once with nothing changed, then again after a fix, and you can see exactly which signals are still getting through.

FAQ

Why does Twitch only pause when the stream is muted?

People report that Chrome and other Chromium browsers pause or stop rendering muted video in background tabs. Unmute the player and use right-click on the tab > Mute site instead, so the browser treats it as normal playback.

Why does Twitch pause when I Alt+Tab but not when I switch tabs?

Alt+Tab to another app takes focus away from the browser window, and some pages react to that blur event. If the window is minimized or completely covered, the page can also be told it is hidden. Keeping the window partly visible, or using the popout player, often helps.

Does Brave pause Twitch more than Chrome?

Brave is built on Chromium, so the same causes apply: muted background video, hidden windows and Memory Saver. Check Brave's Memory Saver under Settings > System and use the same unmute-and-mute-site workaround.

Will Focus Spoofer stop Twitch tabs from being put to sleep?

No. Discarding a tab is a browser decision the page never sees. Add twitch.tv to Chrome's Always keep these sites active list or Edge's Never put these sites to sleep list instead.

Does this work on the Twitch mobile app?

No. These fixes are for desktop browsers. Focus Spoofer runs in Chrome, Brave and Edge on Windows, macOS, Linux and ChromeOS.

For the general version of this problem across every video site, read why videos pause when you switch tabs.

Keep reading

Start with the overview: Why videos pause when you switch tabs, and how to stop it