W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > April 2020

Re: [mediacapture-image] [PTZ] Should `applyConstraints` request permission? (#223)

From: Reilly Grant via GitHub <sysbot+gh@w3.org>
Date: Mon, 27 Apr 2020 20:29:36 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-620216710-1588019375-sysbot+gh@w3.org>
Calling `applyConstraints({pan: true, tilt: true, zoom: true}}` could request PTZ permission but I worry that if we apply the existing automatic ignore logic then that would expose capabilities of the user's device through the immediate denial. The best option seems to be to present the prompt to the user whether or not they have a PTZ camera available.

The purpose of ignoring the request for PTZ in `getUserMedia()` is to avoid prompting users for a capability their hardware doesn't support on every camera permission request. The use case for `applyConstraints()` is different. As @eehakkin suggested, it could be used by a site with an explicit "enable PTZ" button.

GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/223#issuecomment-620216710 using your GitHub account
Received on Monday, 27 April 2020 20:29:38 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:50 UTC