Re: [mediacapture-main] Should we allow empty string device IDs? (#551)

> What Firefox does is return temporal device ids if camera or mic permission has not (yet) been granted, but then reclassifies them as persisted _**if**_ the user grants later in the same session, otherwise they are forgotten. That way they remain good for the session.

It then means that the device IDs persist after the user granted permission once.
I do not think WebKit would implement this behavior.

> Another, perhaps hacky, option might be to do [what Chrome does for their redundant "default mic" entry](https://stackoverflow.com/a/53308831/918910) which is to give it a deviceId of the special value `"default"` or similar.

What is the difference between "default" and "" in that case?
In both cases, the device IDs might not be unique per-origin.

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

Received on Thursday, 10 January 2019 15:17:05 UTC