Skip to content

Commit

Permalink
feat: 미디어 장치 필터링에서 기본 deviceId 제외
Browse files Browse the repository at this point in the history
  • Loading branch information
seoko97 committed Dec 1, 2024
1 parent 94296a0 commit 13d7a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/hooks/useMediaTracks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }));
};

Expand Down

0 comments on commit 13d7a72

Please sign in to comment.