Implemented new MediaDevices API; Fallback for facingMode on Chrome-Mobile

This commit is contained in:
Christoph Oberhofer
2016-03-27 23:18:43 +02:00
parent 322413b3c5
commit 4019ea867f
6 changed files with 89 additions and 124 deletions
-4
View File
@@ -14,10 +14,6 @@ if (typeof window !== 'undefined') {
window.setTimeout(callback, 1000 / 60);
};
})();
navigator.getUserMedia = navigator.getUserMedia ||
navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;
window.URL = window.URL || window.webkitURL || window.mozURL || window.msURL;
}
Math.imul = Math.imul || function(a, b) {
var ah = (a >>> 16) & 0xffff,