addyosmani / getUserMedia.js

Shim for getUserMedia(). Uses native implementation for modern browsers and a Flash fallback for everyone else.
MIT License
903 stars 158 forks source link

IE 12/Edge in Windows 10 Beta #40

Open atkulp opened 9 years ago

atkulp commented 9 years ago

Obviously, this may not be relevant for long since it's a beta build, but currently getUserMedia.js doesn't work on Windows 10/IE in Edge document mode. If I change to IE 11 document mode then it works fine.

image

The problem seems to be that the Flash file doesn't load properly (after the fourth try calling register(), it gives up "Flash movie not yet registered"). Is the control possibly checking for a user agent as part of launching?

Also, there's a bug in demo.js:

deviceError: function (error) {
  alert('No camera available.');
  console.error('An error occurred: [CODE ' + error.code + ']');
},

The error object has no property when thrown from getUserMedia.js register() method. It should either be fixed by setting a code property for the error object, or not looking for that property in the demo class.