- From: François Beaufort via GitHub <sysbot+gh@w3.org>
- Date: Wed, 12 Oct 2016 11:11:21 +0000
- To: public-media-capture@w3.org
beaufortfrancois has just created a new issue for https://github.com/w3c/mediacapture-image: == How to know which zooms are supported? == As you can see in this example below, there is no way for me as a developer to know if setting zoom options to `150` will actually trigger a zoom change. In my configuration, my stream will change only if I set it to 200 or more. ```js imageCapture.getPhotoCapabilities() .then(photoCapabilities => { console.log(photoCapabilities.zoom.min); // 100 console.log(photoCapabilities.zoom.current); // 100 console.log(photoCapabilities.zoom.max); // 500 }); ``` I wish we would have a list of supported zooms instead. I believe something like this below (not sure about the naming yet) would be more helpful: ```js imageCapture.getPhotoCapabilities() .then(photoCapabilities => { console.log(photoCapabilities.zoom.current); // 1 console.log(photoCapabilities.zoom.available); // [1, 2] }); ``` Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/98 using your GitHub account
Received on Wednesday, 12 October 2016 11:11:29 UTC