How to access webcam via Internet Explorer (11)? [

2020-02-11 05:15发布

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.

1条回答
Deceive 欺骗
2楼-- · 2020-02-11 05:45

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.

查看更多
登录 后发表回答