Browse Source

edge: fix processing remote stats

dev1
Saúl Ibarra Corretgé 8 years ago
parent
commit
6437dfaefe
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      modules/statistics/RTPStatsCollector.js

+ 3
- 2
modules/statistics/RTPStatsCollector.js View File

@@ -582,7 +582,9 @@ StatsCollector.prototype.processStatsReport = function() {
582 582
         // the sent bytes to the local download bitrate.
583 583
         // In new W3 stats spec, type="track" has a remoteSource boolean
584 584
         // property.
585
-        if (now.isRemote === true || now.remoteSource === true) {
585
+        // Edge uses the new format, so skip this check.
586
+        if (!RTCBrowserType.isEdge()
587
+                && (now.isRemote === true || now.remoteSource === true)) {
586 588
             continue;
587 589
         }
588 590
 
@@ -604,7 +606,6 @@ StatsCollector.prototype.processStatsReport = function() {
604 606
             packetsNow = getStatValue(now, key);
605 607
             if (typeof packetsNow === 'undefined' || packetsNow === null) {
606 608
                 logger.warn('No packetsReceived nor packetsSent stat found');
607
-                continue;
608 609
             }
609 610
         }
610 611
         if (!packetsNow || packetsNow < 0) {

Loading…
Cancel
Save