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

My concern would be JavaScript would need to start testing these ids against `""`, which seems like unnecessary breakage.

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.

Additionally, in about:config we have a `privacy.resistFingerprinting` mode where we hide the real devices behind a single `"Default Video Device"` and a single `"Default Audio Device"` (their labels hidden before grant), with their own device ids that work similarly.

Could you do something similar? AFAIK there's no requirement that [label](https://w3c.github.io/mediacapture-main/getusermedia.html#dom-mediastreamtrack-label) remain stable.

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

Received on Thursday, 15 November 2018 16:42:52 UTC