Re: [mediacapture-main] Bug in spec: circular dependency for enumerateDevices() (#709)

> This is the current concern: ([full context](https://github.com/w3c/mediacapture-main/issues/709#issuecomment-691139860)). Can this be implemented?

@hills You're describing a solution here not a concern (concerns cannot be implemented). We need to start with problem-statements, not solutions, but to save time, putting `enumerateDevices` behind any kind of permission prompt has been suggested in the past and soundly rejected because of the difficulty of wording such a prompt to users.

From what I can tell from a read-through, all concerns with the current model that have been backed up by examples have been addressed with https://github.com/w3c/mediacapture-main/pull/717 and https://github.com/w3c/mediacapture-main/issues/724 (Firefox bug [here](https://bugzilla.mozilla.org/show_bug.cgi?id=1669507)) and an [explanation](https://github.com/w3c/mediacapture-main/issues/709#issuecomment-687569461) from @youennf that `exact` constraints allow for some device triage before prompt, which means this was a productive discussion. Thanks!

I'm going to close this thread as it has gotten too long. It'd be more productive to open new issues on specific unresolved items.

To summarize the broader issue for people who land here: The WG consensus is that the _enumerate-first_ strategy wrt device discovery is no longer feasible in the current privacy climate. While the spec previously implicitly supported this, it no longer does. What remains is the _device-first_ model that most sites already follow. e.g.:
 1. Open the same camera/mic [from last session using `deviceId`](https://jsfiddle.net/jib1/e89jp3hv/) (system defaults on initial visit, within app constraints)
 2. Add an ⚙️ options panel where users can change their camera/mic preference during live capture.

Long term we hope to move away from `enumerateDevices` even further, by [deprecating in-content device pickers](https://github.com/w3c/mediacapture-extensions/issues/2) in favor of in-browser ones as seen in Firefox & other APIs like `getDisplayMedia`.



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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 6 October 2020 15:32:02 UTC