addyosmani / addyosmani/getUserMedia.js

Object doesn't support property or method 'setTimeout' on IE

Aperta
#48 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
901
Fork
155
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello,

I'm trying to use the fallback on IE (version 11), but I have a strange error :

```
Object doesn't support property or method setTimeout
```

It happens on line 129 of the unminified version, which is the following :

``` js
window.setTimeout(register, 1000 * (4 - run), run - 1);
```

Here is how I instanciate getUserMedia :

``` js
getUserMedia(_this.options.webcam, _this.initWebcamSuccess, _this.initWebcamError);
window.webcam = _this.options.webcam;
```

Here is my _this.options.webcam object :

``` js
{
'audio': false,
'video': true,
el: 'webcam-preview',
extern: null,
append: true,
noFallback: false,
swffile: '/jscam_canvas_only.swf',
width: 640,
height: 480,
mode: 'callback',
quality: 85,
context: 'webrtc',
debug: function() {},
onCapture: function() {},
onTick: function() {},
onSave: function(data) {},
onLoad: function() {}
}
```

Can somebody guess what is happening ? Your help is precious !

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.