浏览代码

Fixes some issue for FF

tags/v0.0.2
hristoterezov 10 年前
父节点
当前提交
f6ac3bdf58
共有 4 个文件被更改,包括 330 次插入251 次删除
  1. 0
    10
      .editorconfig
  2. 1
    0
      .gitattributes
  3. 326
    239
      lib-jitsi-meet.js
  4. 3
    2
      modules/RTC/RTCUtils.js

+ 0
- 10
.editorconfig 查看文件

1
-# http://editorconfig.org
2
-root = true
3
-
4
-[*]
5
-charset = utf-8
6
-end_of_line = lf
7
-indent_size = 4
8
-indent_style = space
9
-max_line_length = 80
10
-trim_trailing_whitespace = true

+ 1
- 0
.gitattributes 查看文件

1
 *.bundle.js -text -diff
1
 *.bundle.js -text -diff
2
+.editorconfig

+ 326
- 239
lib-jitsi-meet.js
文件差异内容过多而无法显示
查看文件


+ 3
- 2
modules/RTC/RTCUtils.js 查看文件

330
 }
330
 }
331
 
331
 
332
 function obtainDevices(options) {
332
 function obtainDevices(options) {
333
-    if (!options.devices || options.devices.length === 0) {
334
-        return options.successCallback(options.streams);
333
+    if(!options.devices || options.devices.length === 0) {
334
+        return options.successCallback(options.streams || {});
335
     }
335
     }
336
 
336
 
337
     var device = options.devices.splice(0, 1);
337
     var device = options.devices.splice(0, 1);
338
     options.deviceGUM[device](function (stream) {
338
     options.deviceGUM[device](function (stream) {
339
+            options.streams = options.streams || {};
339
             options.streams[device] = stream;
340
             options.streams[device] = stream;
340
             obtainDevices(options);
341
             obtainDevices(options);
341
         },
342
         },

正在加载...
取消
保存