是否有可能在 javascript 中检索有关设备相机的技术信息,例如焦距?
注意:我的目标不是从现有文件中提取 EXIF 标签(如 Read meta data from image file with javascript ),而是查找有关当前设备相机的信息。
最佳答案
来到您附近的 Firefox 浏览器(显然是版本 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.
看起来它不会包含您想要的信息,但将来可能会提供。 W3C Editors Draft .
关于javascript - HTML5 : get device camera information (focal length, ...),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29900695/