- From: François Beaufort via GitHub <sysbot+gh@w3.org>
- Date: Mon, 27 Apr 2020 11:43:21 +0000
- To: public-webrtc@w3.org
beaufortfrancois has just created a new issue for https://github.com/w3c/mediacapture-image: == [PTZ] Should pan,tilt,zoom double constraints apply to getUserMedia? == When would web developers set pan, tilt, and zoom double values as part of a `getUserMedia` call? ```js await navigator.mediaDevices.getUserMedia({ video: { pan: 1, tilt: 2, zoom: 3, } }); ``` As we're not sure which camera would be plugged in and cameras have different ranges for pan, tilt, and zoom, I'm not sure those values should be "set" or "applied" to the video stream. In this case, shall we simply set them as boolean constraint for `getUserMedia` and keep double constraint for `applyConstraints`? One more thing. Could this code be a thing eventually? Would it be a way to detect a certain type of camera? ```js await navigator.mediaDevices.getUserMedia({ video: { pan: { min: 0, max: 1 }, tilt: { min: 0, max: 1 }, zoom: { min: 0, max: 1 }, } }); ``` Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/224 using your GitHub account
Received on Monday, 27 April 2020 11:43:23 UTC