Bladeren bron

feat: Adds an option to disable local stats.

master
damencho 2 jaren geleden
bovenliggende
commit
a41aa571b8
1 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. 4
    2
      modules/connectivity/ConnectionQuality.js

+ 4
- 2
modules/connectivity/ConnectionQuality.js Bestand weergeven

@@ -212,8 +212,10 @@ export default class ConnectionQuality {
212 212
                 this._updateRemoteStats(participant.getId(), payload);
213 213
             });
214 214
 
215
-        // Listen to local statistics events originating from the RTC module and update the _localStats field.
216
-        conference.statistics.addConnectionStatsListener(this._updateLocalStats.bind(this));
215
+        if (!this._options.config.disableLocalStats) {
216
+            // Listen to local statistics events originating from the RTC module and update the _localStats field.
217
+            conference.statistics.addConnectionStatsListener(this._updateLocalStats.bind(this));
218
+        }
217 219
 
218 220
         // Save the last time we were unmuted.
219 221
         conference.on(

Laden…
Annuleren
Opslaan