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

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

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Mon, 16 Dec 2019 21:20:00 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-566248295-1576531198-sysbot+gh@w3.org>
To clarify this PR: I believe these changes to `getUserMedia` are the best path toward it becoming useful as an in-chrome picker.

It should be highly web compatible since most users won't see a change. https://github.com/w3c/mediacapture-main/pull/644#issuecomment-561253297

From [slide](https://docs.google.com/presentation/d/1QEdMf6Ixg1NNvHoZUvO29njrSKn9pdF1WqcrFWI4uX8/edit?ts=5dbaf0b6#slide=id.g6b7f95ec98_3_139):


User with previously persisted permission for camera: | Single camera | Front/back camera | Multiple cameras
-- | -- | -- | --
getUserMedia({video: true}) getUserMedia({video: {facingMode: "user"}}) getUserMedia({video: {deviceId: cameraId}}) | Granted! | _**Selector!**_ | _**Selector!**_
gUM({video: {facingMode: {exact: "user"}}}) | Granted! | Granted! | _**Selector!**_
gUM({video: {deviceId: {exact: cameraId}}}) | Granted! | Granted! | Granted!

**User without persisted permission:** replace “Granted!” with “Selector!” or “Prompt!”


-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/pull/644#issuecomment-566248295 using your GitHub account
Received on Monday, 16 December 2019 21:20:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:35 UTC