浏览代码

Displays correct resolution coming from FF.

j8
damencho 9 年前
父节点
当前提交
034ed200f3
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      modules/UI/videolayout/ConnectionIndicator.js

+ 5
- 0
modules/UI/videolayout/ConnectionIndicator.js 查看文件

90
     if(this.resolution && this.jid) {
90
     if(this.resolution && this.jid) {
91
         var keys = Object.keys(this.resolution);
91
         var keys = Object.keys(this.resolution);
92
         for(var ssrc in this.resolution) {
92
         for(var ssrc in this.resolution) {
93
+            // skip resolutions for ssrc that don't have this info
94
+            // like receive-only ssrc for FF
95
+            if(this.resolution[ssrc]
96
+                && this.resolution[ssrc].height != -1
97
+                && this.resolution[ssrc].width != -1)
93
             resolutionValue = this.resolution[ssrc];
98
             resolutionValue = this.resolution[ssrc];
94
         }
99
         }
95
     }
100
     }

正在加载...
取消
保存