|
@@ -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(
|