From 13d7a72bfce11b0b67b9be0c2452daf9e8121b01 Mon Sep 17 00:00:00 2001 From: seoko97 Date: Mon, 2 Dec 2024 05:37:42 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=AF=B8=EB=94=94=EC=96=B4=20=EC=9E=A5?= =?UTF-8?q?=EC=B9=98=20=ED=95=84=ED=84=B0=EB=A7=81=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EA=B8=B0=EB=B3=B8=20deviceId=20=EC=A0=9C=EC=99=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/hooks/useMediaTracks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/hooks/useMediaTracks.ts b/apps/web/src/hooks/useMediaTracks.ts index babb4bae..61bd27e0 100644 --- a/apps/web/src/hooks/useMediaTracks.ts +++ b/apps/web/src/hooks/useMediaTracks.ts @@ -11,7 +11,7 @@ const DEFAULT_LOCAL_STREAM = { const getMediaDevices = (kind: MediaDeviceKind, devices: MediaDeviceInfo[]) => { return devices - .filter((device) => device.kind === kind) + .filter((device) => device.kind === kind && device.deviceId && device.deviceId !== 'default') .map((device) => ({ label: device.label, value: device.deviceId })); };