Displays correct resolution coming from FF.

This commit is contained in:
damencho 2015-12-16 12:45:13 -06:00
parent 2b2a34175f
commit 034ed200f3
1 changed files with 5 additions and 0 deletions

View File

@ -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];
}
}