Displays correct resolution coming from FF.
This commit is contained in:
parent
97ebcebdbe
commit
589380c7b3
|
@ -90,6 +90,11 @@ ConnectionIndicator.prototype.generateText = function () {
|
||||||
if(this.resolution && this.jid) {
|
if(this.resolution && this.jid) {
|
||||||
var keys = Object.keys(this.resolution);
|
var keys = Object.keys(this.resolution);
|
||||||
for(var ssrc in 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];
|
resolutionValue = this.resolution[ssrc];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue