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 &&