internet-explorer - 如何在 IE 11 上访问相机(视频)?
问题描述
我需要能够访问相机。我正在使用 mediaDevices.getUserMedia,它在 Chrome 上运行良好,但我们的大多数用户都使用 Internet Explorer 11。
我一直在阅读这些:
webcamjs: https://github.com/jhuckaby/webcamjs
webrtc adapter: https://github.com/webrtc/adapter
getUserMedia: https://github.com/addyosmani/getUserMedia.js
我试过了,但没有很好的例子。我只需要能够访问 Internet Explorer 11 上的相机,这不可能那么困难。
如果有人能提供一个简洁的例子,我将不胜感激。
解决方案
为了让 getuserMedia 在 IE 上运行,您必须使用 webRTC 插件,temasys 就是这样一个插件。
推荐阅读
- c - 在C中获取负数或零作为阶乘的输出
- asp.net-core - 将更新日志文件提交到主数据库文件
- azure - WebAPI 应用程序的 Application Insights
- javascript - 使用 .focus/.focusout (jquery) 对选定的 div 进行键控
- switch-statement - 开关盒需要一点更新
- java - 在java中从3d位置播放声音
- java - getClassLoader().getResourceAsStream() 在模块化 Java 项目(openjdk 11)中不起作用?
- bash - 如果文件夹名称在bash中的变量中,如何遍历文件夹中的所有pdf文件?
- c++ - C++ 中的 llround() 和 round() 函数有什么区别?
- node.js - 如何使用 fastify 发送多个 URL 参数?