From 0ef6052820e075cef7ed82f18c37368b0fda7be3 Mon Sep 17 00:00:00 2001 From: mplorentz Date: Wed, 1 Apr 2026 14:22:14 -0400 Subject: [PATCH 1/2] Add settings button to configure audio devices in call --- .../VoiceCallAudioSettingsDialog.svelte | 134 ++++++++++++++++++ src/app/components/VoiceWidget.svelte | 12 ++ src/app/voice.ts | 33 +++++ 3 files changed, 179 insertions(+) create mode 100644 src/app/components/VoiceCallAudioSettingsDialog.svelte diff --git a/src/app/components/VoiceCallAudioSettingsDialog.svelte b/src/app/components/VoiceCallAudioSettingsDialog.svelte new file mode 100644 index 00000000..f656eb5f --- /dev/null +++ b/src/app/components/VoiceCallAudioSettingsDialog.svelte @@ -0,0 +1,134 @@ + + + + + + Audio settings + +

Choose microphone and speaker for this call.

+
+ + {#snippet label()} +

Microphone

+ {/snippet} + {#snippet input()} + + {/snippet} +
+ {#if canPickOutput} + + {#snippet label()} +

Speaker

+ {/snippet} + {#snippet input()} + + {/snippet} +
+ {/if} +
+
+ + + +
diff --git a/src/app/components/VoiceWidget.svelte b/src/app/components/VoiceWidget.svelte index 603d2efc..1ed8356e 100644 --- a/src/app/components/VoiceWidget.svelte +++ b/src/app/components/VoiceWidget.svelte @@ -9,8 +9,10 @@ import PhoneRounded from "@assets/icons/phone-rounded.svg?dataurl" import PhoneCallingRounded from "@assets/icons/phone-calling-rounded.svg?dataurl" import CloseCircle from "@assets/icons/close-circle.svg?dataurl" + import Settings from "@assets/icons/settings.svg?dataurl" import Icon from "@lib/components/Icon.svelte" import Button from "@lib/components/Button.svelte" + import VoiceCallAudioSettingsDialog from "@app/components/VoiceCallAudioSettingsDialog.svelte" import VoiceRoomJoinDialog from "@app/components/VoiceRoomJoinDialog.svelte" import { decodeRelay, @@ -63,6 +65,10 @@ await goto(makeRoomPath(targetRoom.url, targetRoom.h)) pushModal(VoiceRoomJoinDialog, {url: targetRoom.url, h: targetRoom.h}) } + + const openAudioSettings = () => { + pushModal(VoiceCallAudioSettingsDialog) + } {#if targetRoom} @@ -100,6 +106,12 @@ onclick={toggleMute}> + + -- 2.52.0