Re: [mediacapture-main] In-content device selection a mistake. Too complicated, leaks info (#652)

https://github.com/w3c/mediacapture-main/pull/644#issuecomment-566248295 accomplishes this by tweaking the existing `getUserMedia` request method a bit, and relying on browsers to figure out the rest from context. E.g.:
```js
camera.innerText = cameraTrack.label;

camera.onclick = async () => {
  const deviceId = cameraTrack.getSettings().deviceId;
  cameraTrack = (await getUserMedia({video: {deviceId}})).getVideoTracks()[0];
};
```
...brings up a selector with the existing device as default (like Firefox does on initial prompt), except instead of "Don't Allow"/"Allow", users might see "Cancel"/"Allow" so they can back out safely.

Details are up to browsers. The context here is the application has permission to a device already.

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

Received on Wednesday, 18 December 2019 00:07:50 UTC