Fixes issue with gsm bars for remote participants are always full
This commit is contained in:
parent
1d393f5786
commit
970e8c764c
|
@ -99,7 +99,8 @@ export default {
|
||||||
|
|
||||||
var newVal = 100 - data.packetLoss.total;
|
var newVal = 100 - data.packetLoss.total;
|
||||||
var oldVal = remoteConnectionQuality[id];
|
var oldVal = remoteConnectionQuality[id];
|
||||||
remoteConnectionQuality[id] = calculateQuality(newVal, oldVal);
|
remoteConnectionQuality[id] = calculateQuality(newVal, oldVal || 100);
|
||||||
|
console.debug(newVal, oldVal, remoteConnectionQuality[id]);
|
||||||
|
|
||||||
eventEmitter.emit(
|
eventEmitter.emit(
|
||||||
CQEvents.REMOTESTATS_UPDATED, id, remoteConnectionQuality[id],
|
CQEvents.REMOTESTATS_UPDATED, id, remoteConnectionQuality[id],
|
||||||
|
|
Loading…
Reference in New Issue