From 7b600ac066232906403738b997ba41c884109047 Mon Sep 17 00:00:00 2001 From: Timo K Date: Thu, 3 Jul 2025 15:32:19 +0200 Subject: [PATCH] use default device for unmute again Signed-off-by: Timo K --- src/livekit/useLivekit.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/livekit/useLivekit.ts b/src/livekit/useLivekit.ts index 7487a341..06a07cf0 100644 --- a/src/livekit/useLivekit.ts +++ b/src/livekit/useLivekit.ts @@ -245,10 +245,7 @@ export function useLivekit( audioMuteUpdating.current = true; trackPublication = await participant.setMicrophoneEnabled( buttonEnabled.current.audio, - { - ...room.options.audioCaptureDefaults, - deviceId: getValue(devices.audioInput.selected$)?.id, - }, + room.options.audioCaptureDefaults, ); audioMuteUpdating.current = false; break; @@ -256,10 +253,7 @@ export function useLivekit( videoMuteUpdating.current = true; trackPublication = await participant.setCameraEnabled( buttonEnabled.current.video, - { - ...room.options.videoCaptureDefaults, - deviceId: getValue(devices.videoInput.selected$)?.id, - }, + room.options.videoCaptureDefaults, ); videoMuteUpdating.current = false; break;