From 93b809ff9a7580b23662a543f75d8e7ba0b45912 Mon Sep 17 00:00:00 2001 From: Moepchi Date: Sat, 3 Oct 2026 09:27:39 +0000 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU --- web/src/App.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index 0aca421..c64cc90 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -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 }