Re: [ambient-light] Add camera permission requirement to spec? (#79)

I agree that relying on a side effect of `getUserMedia()` isn't the right design. The proposal here is to use the existing `"camera"` permission, not the `getUserMedia()` function. Both would, under the hood, request the `"camera"` permission but developers would not need to consider this when designing their sites and would call the appropriate method, `AmbientLightSensor.start()` or `Navigator.getUserMedia()`, for their application. The side-effect of this would be that a site which already had the `"camera"` permission because of a call to one of these functions would be able to call the other without re-prompting the user. The only downside as you mention is that devices with a dedicated camera notification LED would not illuminate this LED when only the ALS is in use. Browsers would have the choice of implementing their own notification UI for this case.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/ambient-light/issues/79#issuecomment-1176753737 using your GitHub account


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

Received on Wednesday, 6 July 2022 21:13:35 UTC