HTML5: get information about the device’s camera (focal length, ...)

Is it possible, in javascript, to get technical information about the device’s camera, such as focal length?

NB: my goal is not to extract EXIF ​​tags from an existing file (for example, read metadata from an image file using javascript ), but to find information about the current device.

+6
source share
1 answer

Going to the Firefox browser near you (apparently in version 39):

https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices .

The MediaDevices.enumeratedDevices () method collects information about the media input and output devices available on the system.

It doesn't look like it will contain the information you need, but it will potentially be available in the future. Project Editors W3C .

+1
source

Source: https://habr.com/ru/post/986074/


All Articles