Selaa lähdekoodia

Displays correct resolution coming from FF.

master
damencho 9 vuotta sitten
vanhempi
commit
034ed200f3
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5
    0
      modules/UI/videolayout/ConnectionIndicator.js

+ 5
- 0
modules/UI/videolayout/ConnectionIndicator.js Näytä tiedosto

@@ -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…
Peruuta
Tallenna