W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > January 2019

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

From: youennf via GitHub <sysbot+gh@w3.org>
Date: Thu, 10 Jan 2019 15:17:03 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-453131419-1547133422-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 15:32:54 UTC