Browse Source

Displays correct resolution coming from FF.

master
damencho 9 years ago
parent
commit
034ed200f3
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      modules/UI/videolayout/ConnectionIndicator.js

+ 5
- 0
modules/UI/videolayout/ConnectionIndicator.js View File

@@ -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…
Cancel
Save