本文介绍了如何通过Internet Explorer(11)访问摄像头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上下文:我正在构建一个离线网站(html5,css,js),我想通过IE(11)调用。为了拍摄/保存图片,我需要访问网络摄像头。

我读的是IE不支持getUserMedia;唯一的办法就是使用闪光灯。



问题:使用闪光灯访问网络摄像头的唯一方法是通过IE访问摄像头吗?如果是的话,请推荐一个例子。



我会很感激您的意见。 目前IE 11及以下版本不支持 getUserMedia ,但在github上有一个polyfill,你可以找到



在 getUserMedia $ b

更新1



还有几个polyfill可用,并列在

和可以通过NPAPI / ActiveX插件提供回退。 p>

Context: I'm building an offline website (html5, css, js) which i want to call over IE (11). For taking/saving a picture i need to access the webcam.

Approach: I read that IE doesn't support the getUserMedia; and the only way is to use flash.

Question: Is the only possibility to access the webcam over IE by using flash? If yes, please recommend an example.

I'd appreciate your input.

解决方案

Yes IE 11 and below currently doesn't support getUserMedia ,but there is a polyfill available on github, which you can find here

It uses flash fallback in case getUserMedia is unavailable so you can give it a try.

Update 1

There are a few more polyfills available and are listed under

webrtc4all and Temasys WebRTC can provides fallback via an NPAPI/ActiveX plugin.

这篇关于如何通过Internet Explorer(11)访问摄像头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 00:30
查看更多