Преглед изворни кода

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,6 +90,11 @@ ConnectionIndicator.prototype.generateText = function () {
90 90
     if(this.resolution && this.jid) {
91 91
         var keys = Object.keys(this.resolution);
92 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 98
             resolutionValue = this.resolution[ssrc];
94 99
         }
95 100
     }

Loading…
Откажи
Сачувај