Repository navigation
Mute preview tabs by default, plus "Mute all" / "Close all preview tabs" #20893
rene-demonsters
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
Agents often open the app in the preview side panel to check their changes. For projects with background audio (games, media apps, anything that autoplays), every preview tab plays its own audio. The tabs pile up across threads, so the same sound ends up playing many times at once.
The lifecycle bug behind this is tracked in #15579: preview tabs are never closed or suspended. Even with that fixed, it can be hard to know when a preview is truly done with, and audio is the symptom that disrupts work right away. So it would help to have user-facing controls that don't depend on getting the lifecycle right.
Proposal
Why this is cheap
Electron already supports per-webview muting (
webContents.setAudioMuted()andisCurrentlyAudible()), so the setting and the indicator shouldn't need much new plumbing.Related: #15579, #20890
All reactions