Re: [mediacapture-main] If getUserMedia access is not granted, devicechange event should only be fired if devices of a given type go from 0 to 1 or 1 to 0 (#690)

Some websites do not expose any 'call' feature/do not call getUserMedia if enumerateDevices does not return any device. To not break theses sites, the current consensus is to limit enumerateDevices result to at most 1 device, pre-gum.

We do not want the spec to mandate devicechange event to fire whenever a new device is added or removed pre-gum. But we still want to allow user agents to fire the devicechange event if camera device count goes from 0 to 1 or 1 to 0. This removes the need for a website to poll enumerateDevices regularly.

User Agents that want to mitigate these two bits of fingerprinting can do the following:
- By default, expose 1 camera and 1 microphone device
- After the first getUserMedia call, if not successful, expose the real number of devices, 0 in that case.
This comes at the price of users clicking on a web site 'start a call' button and later discovering they cannot actually connect.

-- 
GitHub Notification of comment by youennf
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/690#issuecomment-623160605 using your GitHub account

Received on Sunday, 3 May 2020 18:45:17 UTC