From c37b2924afbd36d3ded5339a4317b81238bab400 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 3 Oct 2023 18:27:10 +0100 Subject: [PATCH] Comment --- src/livekit/useLiveKit.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/livekit/useLiveKit.ts b/src/livekit/useLiveKit.ts index f92047c1..bf12669c 100644 --- a/src/livekit/useLiveKit.ts +++ b/src/livekit/useLiveKit.ts @@ -164,6 +164,10 @@ export function useLiveKit( // we need to to see if the default device has changed to a different device // by comparing the group ID of the device we're using against the group ID // of what the default device is *now*. + // This is special-cased for only audio inputs because we need to dig around + // in the LocalParticipant object for the track object and there's not a nice + // way to do that generically. There is usually no OS-level default video capture + // device anyway, and audio outputs work differently. if ( id === "default" && kind === "audioinput" &&