From f1b9594a1e9a3fc8af3ad916ed870538f0744d69 Mon Sep 17 00:00:00 2001 From: Timo K Date: Thu, 3 Jul 2025 15:07:09 +0200 Subject: [PATCH] try "mute with audio capture defaults" again Signed-off-by: Timo K --- src/livekit/useLivekit.ts | 8 +------- src/useAudioContext.tsx | 7 ------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/livekit/useLivekit.ts b/src/livekit/useLivekit.ts index 33f720de..48327b17 100644 --- a/src/livekit/useLivekit.ts +++ b/src/livekit/useLivekit.ts @@ -245,9 +245,7 @@ export function useLivekit( audioMuteUpdating.current = true; trackPublication = await participant.setMicrophoneEnabled( buttonEnabled.current.audio, - // platform === "ios" - // ? undefined - // : room.options.audioCaptureDefaults, + room.options.audioCaptureDefaults, ); audioMuteUpdating.current = false; break; @@ -329,10 +327,6 @@ export function useLivekit( selected$: Observable, ): Subscription => selected$.subscribe((device) => { - // let d = device; - // if (controlledAudioDevices && kind === "audiooutput") { - // d = { id: "default" }; - // } logger.warn( "[LivekitRoom] syncDevice room.getActiveDevice(kind) !== d.id :", room.getActiveDevice(kind), diff --git a/src/useAudioContext.tsx b/src/useAudioContext.tsx index da68d02a..1b00e82b 100644 --- a/src/useAudioContext.tsx +++ b/src/useAudioContext.tsx @@ -114,13 +114,6 @@ export function useAudioContext( // Update the sink ID whenever we change devices. useEffect(() => { - logger.info( - "setSinkId hook:", - `"setSinkId" in audioContext`, - audioContext && "setSinkId" in audioContext, - `!controlledAudioDevices`, - !controlledAudioDevices, - ); if ( audioContext && "setSinkId" in audioContext &&