- From: Raphael Kubo da Costa via GitHub <sysbot+gh@w3.org>
- Date: Thu, 23 Jun 2022 14:55:43 +0000
- To: public-device-apis-log@w3.org
> I think the resolution was to make requesting the `"camera"` permission a normative requirement.
If I've understood it correctly, the idea is to:
* Add "camera" to ALS's set of _sensor permisson names_ (along with "ambient-light-sensor").
* Add "camera" to ALS's set of _sensor feature names_ (along with "ambient-light-sensor") for Permissions Policy integration.
Consequently, from an UA perspective, calling `AmbientLightSensor.start()` would prompt for sensor _and_ camera access (in whatever fashion the UA sees fit). If allowed by the user, this means that:
* `navigator.mediaDevices.getUserMedia({ video: true })` would resolve without prompting
* The UA would indicate somehow that the camera is being used (just like if camera access was being requested via `getUserMedia()`)
* If a user revokes the camera permission, active ALS instances need to be stopped as well.
--
GitHub Notification of comment by rakuco
Please view or discuss this issue at https://github.com/w3c/ambient-light/issues/79#issuecomment-1164513908 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 23 June 2022 14:55:45 UTC