Does not flood with missing "Jid for SSRC" warnings for outdated stats(removed streams).
This commit is contained in:
parent
1aed7e6237
commit
6cc8b63104
|
@ -267,9 +267,9 @@ StatsCollector.prototype.start = function ()
|
|||
{
|
||||
self.processStatsReport();
|
||||
}
|
||||
catch(e)
|
||||
catch (e)
|
||||
{
|
||||
console.error("Unsupported key:" + e);
|
||||
console.error("Unsupported key:" + e, e);
|
||||
}
|
||||
|
||||
self.baselineStatsReport = self.currentStatsReport;
|
||||
|
@ -466,7 +466,7 @@ StatsCollector.prototype.processStatsReport = function () {
|
|||
if(!ssrc)
|
||||
continue;
|
||||
var jid = ssrc2jid[ssrc];
|
||||
if (!jid) {
|
||||
if (!jid && (Date.now() - now.timestamp) < 3000) {
|
||||
console.warn("No jid for ssrc: " + ssrc);
|
||||
continue;
|
||||
}
|
||||
|
@ -667,7 +667,7 @@ StatsCollector.prototype.processAudioLevelReport = function ()
|
|||
|
||||
var ssrc = getStatValue(now, 'ssrc');
|
||||
var jid = ssrc2jid[ssrc];
|
||||
if (!jid)
|
||||
if (!jid && (Date.now() - now.timestamp) < 3000)
|
||||
{
|
||||
console.warn("No jid for ssrc: " + ssrc);
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue