[mediacapture-main] Should we allow empty string device IDs?

youennf has just created a new issue for https://github.com/w3c/mediacapture-main:

== Should we allow empty string device IDs? ==
In WebKit, we do want to filter out device IDs provided through enumerateDevices until the user grants permission to camera or microphone.

>From https://w3c.github.io/mediacapture-main/#device-info, it seems that we could omit the deviceId member field as it is optional.

Another option is for the deviceId value to be the empty string, as a way to limit the potential breakage made to web applications. This seems forbidden as per spec:
"All enumerable devices have an identifier that MUST be unique to the page's origin"

Any thoughts?

Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/551 using your GitHub account

Received on Wednesday, 31 October 2018 17:17:12 UTC