From 034ed200f3c5753f5c7ddcad926521806417d2d9 Mon Sep 17 00:00:00 2001 From: damencho Date: Wed, 16 Dec 2015 12:45:13 -0600 Subject: [PATCH] Displays correct resolution coming from FF. --- modules/UI/videolayout/ConnectionIndicator.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/UI/videolayout/ConnectionIndicator.js b/modules/UI/videolayout/ConnectionIndicator.js index 7923d4135..4ee8ae5de 100644 --- a/modules/UI/videolayout/ConnectionIndicator.js +++ b/modules/UI/videolayout/ConnectionIndicator.js @@ -90,6 +90,11 @@ ConnectionIndicator.prototype.generateText = function () { if(this.resolution && this.jid) { var keys = Object.keys(this.resolution); for(var ssrc in this.resolution) { + // skip resolutions for ssrc that don't have this info + // like receive-only ssrc for FF + if(this.resolution[ssrc] + && this.resolution[ssrc].height != -1 + && this.resolution[ssrc].width != -1) resolutionValue = this.resolution[ssrc]; } }