Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5: get device camera information (focal length,...)

Is it somehow possible, in javascript, to retrieve technical information about the device camera, such as focal length?

NB: my goal is not to extract EXIF tags from an existing file (like in Read meta data from image file with javascript) but to find information about the current device camera.

like image 213
sdabet Avatar asked Apr 27 '15 16:04

sdabet


1 Answers

Coming to a 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.

Doesn't look like it will contain the information you want, but potentially will be available in the future. W3C Editors Draft.

like image 189
Jamie Barker Avatar answered Sep 23 '22 11:09

Jamie Barker