use default device for unmute again

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2025-07-03 15:32:19 +02:00
parent ff4903faf0
commit 7b600ac066

View File

@@ -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;