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 摘要。