mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
chore: hide the tab audio button for now
It clicks in the mix and Edge delivers Windows system audio as silence; parked until there's time to move capture to an AudioWorklet. The code stays in place behind TAB_AUDIO_SUPPORTED. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
4752971f31
commit
b84dc0faac
2 files changed
+3
-1
No files matched your search
@@ -492,7 +492,10 @@ function loadFavorites(): Favorite[] {
|
||||
// Only Chromium hands out tab/system audio via getDisplayMedia; Firefox and
|
||||
// Safari return video only, so the button would just say "no audio" there.
|
||||
// userAgentData itself only exists in Chromium-based browsers.
|
||||
// Switched off for now (2026-10-03): clicks in the mix, and Edge delivers
|
||||
// Windows system audio as silence. Code stays; flip back once that's solved.
|
||||
const TAB_AUDIO_SUPPORTED =
|
||||
false &&
|
||||
typeof navigator.mediaDevices?.getDisplayMedia === "function" &&
|
||||
!!(navigator as Navigator & { userAgentData?: { brands: { brand: string }[] } }).userAgentData?.brands.some(
|
||||
(b) => b.brand === "Chromium"
|
||||
|
||||
Reference in new issue
Block a user