Re: [mediacapture-main] Prompt user to choose unless constraints reduce to 1. (#644)

> I am fine with a PR allowing a browser to implement a device picker only in the case where there is more than one device to choose from.

@youennf Great! That's what this PR aims to do.

> I am not sure that "request permission to use" is not allowing this already.

It does, but merely allowing it doesn't make `getUserMedia` a reliable selector. When I click here:

<img width="300" src="https://user-images.githubusercontent.com/3136226/71021127-aceec300-20cb-11ea-8847-90da2c31fb65.png">
...I want to write:

```js
button.onclick = async () => {
  if (numberOfVideoInputDevices > 1) {
    const c = {video: {deviceId: cameraTrack.getSettings().deviceId}};
    cameraTrack = (await navigator.mediaDevices.getUserMedia(c)).getVideoTracks()[0];
  }
}
```
...and have that bring up a browser picker in all browsers (with "Logitech BRIO" as current choice).

This needs to be guaranteed, to replace in-content selection, which won't happen from vague prose.

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

Received on Wednesday, 8 January 2020 20:10:54 UTC