brianchirls / Seriously.js

A real-time, node-based video effects compositor for the web built with HTML5, Javascript and WebGL
MIT License
3.87k stars 354 forks source link

Refactor camera source #104

Open brianchirls opened 9 years ago

brianchirls commented 9 years ago

Firefox has a new MediaDevices API to replace the legacy navigator.getUserMedia, which will presumably be deprecated eventually.

Also, Firefox's media constraints format is incompatible with Chrome's, which is obsolete. So we need a shim to make sure we can work with both until Chrome's implementation is updated.

For reference: http://stackoverflow.com/questions/26415778/getusermedia-video-size-in-firefox-chrome-differs