fix: shared tab/system audio arrived silent in Edge

Edge ran its echo canceller on the display-capture track (getSettings showed
echoCancellation: true on deviceId "loopback"), which subtracts exactly
what the speakers play - the whole signal. Voice processing is now off for
that track; noise suppression would mangle music anyway.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
MoepchiandClaude Opus 5.5 committed 2026-10-03 09:27:39 +00:00
1 parent fa3fa2e4ad
commit 93b809ff9a
1 file changed
+7 -1
+7 -1
View File
@@ -8722,7 +8722,13 @@ function AppInner() {
// Browsers only offer audio together with a video capture. The video
// track stays alive (at 1 fps) until sharing stops: stopping it right
// away may end or silence the capture session the audio belongs to.
stream = await navigator.mediaDevices.getDisplayMedia({ video: { frameRate: 1 }, audio: true });
// Edge applies voice processing to the capture by default: echo
// cancellation then subtracts exactly what the speakers play, so
// Windows system audio arrives as pure silence (measured: peak 0).
stream = await navigator.mediaDevices.getDisplayMedia({
video: { frameRate: 1 },
audio: { echoCancellation: false, noiseSuppression: false, autoGainControl: false },
});
} catch {
return; // picker cancelled
}