Przeglądaj źródła

edge: fix processing remote stats

dev1
Saúl Ibarra Corretgé 8 lat temu
rodzic
commit
6437dfaefe
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3
    2
      modules/statistics/RTPStatsCollector.js

+ 3
- 2
modules/statistics/RTPStatsCollector.js Wyświetl plik

582
         // the sent bytes to the local download bitrate.
582
         // the sent bytes to the local download bitrate.
583
         // In new W3 stats spec, type="track" has a remoteSource boolean
583
         // In new W3 stats spec, type="track" has a remoteSource boolean
584
         // property.
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
             continue;
588
             continue;
587
         }
589
         }
588
 
590
 
604
             packetsNow = getStatValue(now, key);
606
             packetsNow = getStatValue(now, key);
605
             if (typeof packetsNow === 'undefined' || packetsNow === null) {
607
             if (typeof packetsNow === 'undefined' || packetsNow === null) {
606
                 logger.warn('No packetsReceived nor packetsSent stat found');
608
                 logger.warn('No packetsReceived nor packetsSent stat found');
607
-                continue;
608
             }
609
             }
609
         }
610
         }
610
         if (!packetsNow || packetsNow < 0) {
611
         if (!packetsNow || packetsNow < 0) {

Ładowanie…
Anuluj
Zapisz