Re: [mediacapture-main] Update enumerateDevices algorithm to make use of device-kind specific exposure checks when building cameraList and microphoneList. (#900)

This seems reasonable to me. (I ran into #903 while reading this, btw.) LGTM from my side, but please wait for @alvestrand to review as well, as I've not had much mileage on `enumerateDevices()` yet, and I'd prefer one more person from Chrome take a look.

> This ensures we do not get dummy similar audioinput or camera devices if only camera or only microphone is used.

Btw, where's the part of the spec that deals with dummy objects? Looking at [creating a list of device info objects](https://w3c.github.io/mediacapture-main/#creating-a-list-of-device-info-objects), I see that:
* Lists are created for distinct device types.
* The system default device is kept first.
* In the absence of the necessary permission, the lists are truncated to a single element - the first one.

I don't see mention of dummy devices, though. Has this dropped on the edit room floor at some point, or am I misreading things?

-- 
GitHub Notification of comment by eladalon1983
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/pull/900#issuecomment-1255301619 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 22 September 2022 16:58:26 UTC