diff --git a/src/livekit/useLivekit.ts b/src/livekit/useLivekit.ts index 06a07cf0..8f302e7a 100644 --- a/src/livekit/useLivekit.ts +++ b/src/livekit/useLivekit.ts @@ -245,7 +245,6 @@ export function useLivekit( audioMuteUpdating.current = true; trackPublication = await participant.setMicrophoneEnabled( buttonEnabled.current.audio, - room.options.audioCaptureDefaults, ); audioMuteUpdating.current = false; break; @@ -253,7 +252,6 @@ export function useLivekit( videoMuteUpdating.current = true; trackPublication = await participant.setCameraEnabled( buttonEnabled.current.video, - room.options.videoCaptureDefaults, ); videoMuteUpdating.current = false; break;