addyosmani / addyosmani/getUserMedia.js

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

未關閉
#48 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
901
分支
155
PR 合併指標
30 天內沒有已合併 PR

描述

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 !

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。