feat(desktop): port v0.11.4-v0.15.2 from Tauri to Electron + Discord-parity audio (v0.16.0)
Chronological port of every Tauri release commit (v0.11.4 -> v0.15.2)
into the Electron rebuild, plus Discord-style audio handling that goes
beyond the Tauri original.
Highlights:
- All 17 Tauri release commits ported (audio fixes, custom notification
sound, Discord-style chat UX, profile banner, changelog page,
Discord-parity call UX, screen-share echo + re-watch UX, audio-loop
fix).
- Native napi-rs audio-loopback addon with WASAPI process-loopback:
* EXCLUDE_TARGET_PROCESS_TREE for full-screen shares -> peers
never hear themselves echoed back through the capture.
* INCLUDE_TARGET_PROCESS_TREE for window shares -> only the
picked window's audio is captured, not the whole OS mixer
(Discord parity).
* HWND -> PID resolution via Win32 GetWindowThreadProcessId.
- Discord-style screen-source picker (thumbnail grid, screens vs
apps tabs, live-refreshing thumbnails).
- Hash routing fix for packaged builds (file:// can't resolve
BrowserRouter paths).
- Tauri sources removed (apps/desktop/src-tauri).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -25,6 +25,12 @@ export interface VoiceHotkeyBinding {
|
||||
export interface VoiceHotkeys {
|
||||
mute: VoiceHotkeyBinding;
|
||||
deafen: VoiceHotkeyBinding;
|
||||
/** Hang up the active call. Discord uses no default — easy to mis-fire. */
|
||||
hangup: VoiceHotkeyBinding;
|
||||
/** Toggle outgoing screen share. */
|
||||
screenShare: VoiceHotkeyBinding;
|
||||
/** Toggle outgoing camera. */
|
||||
video: VoiceHotkeyBinding;
|
||||
}
|
||||
|
||||
export type VoiceHotkeyKind = keyof VoiceHotkeys;
|
||||
@@ -46,6 +52,30 @@ const DEFAULTS: VoiceHotkeys = {
|
||||
alt: false,
|
||||
enabled: false,
|
||||
},
|
||||
hangup: {
|
||||
key: 'KeyH',
|
||||
keyLabel: 'Ctrl+Shift+H',
|
||||
ctrl: true,
|
||||
shift: true,
|
||||
alt: false,
|
||||
enabled: false,
|
||||
},
|
||||
screenShare: {
|
||||
key: 'KeyE',
|
||||
keyLabel: 'Ctrl+Shift+E',
|
||||
ctrl: true,
|
||||
shift: true,
|
||||
alt: false,
|
||||
enabled: false,
|
||||
},
|
||||
video: {
|
||||
key: 'KeyV',
|
||||
keyLabel: 'Ctrl+Shift+V',
|
||||
ctrl: true,
|
||||
shift: true,
|
||||
alt: false,
|
||||
enabled: false,
|
||||
},
|
||||
};
|
||||
|
||||
type Listener = (s: VoiceHotkeys) => void;
|
||||
@@ -78,6 +108,9 @@ function read(): VoiceHotkeys {
|
||||
cached = {
|
||||
mute: validateBinding(parsed.mute, DEFAULTS.mute),
|
||||
deafen: validateBinding(parsed.deafen, DEFAULTS.deafen),
|
||||
hangup: validateBinding(parsed.hangup, DEFAULTS.hangup),
|
||||
screenShare: validateBinding(parsed.screenShare, DEFAULTS.screenShare),
|
||||
video: validateBinding(parsed.video, DEFAULTS.video),
|
||||
};
|
||||
return cached;
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user