|
@@ -458,13 +458,6 @@ JitsiConference.prototype._init = function(options = {}) {
|
458
|
458
|
this.receiveVideoController = new ReceiveVideoController(this, this.rtc);
|
459
|
459
|
this.sendVideoController = new SendVideoController(this, this.rtc);
|
460
|
460
|
|
461
|
|
- // Add the ability to enable callStats only on a percentage of users based on config.js settings.
|
462
|
|
- let enableCallStats = true;
|
463
|
|
-
|
464
|
|
- if (config.testing && config.testing.callStatsThreshold) {
|
465
|
|
- enableCallStats = (Math.random() * 100) <= config.testing.callStatsThreshold;
|
466
|
|
- }
|
467
|
|
-
|
468
|
461
|
if (!this.statistics) {
|
469
|
462
|
this.statistics = new Statistics(this.xmpp, {
|
470
|
463
|
aliasName: this._statsCurrentId,
|
|
@@ -475,7 +468,7 @@ JitsiConference.prototype._init = function(options = {}) {
|
475
|
468
|
callStatsID: config.callStatsID,
|
476
|
469
|
callStatsSecret: config.callStatsSecret,
|
477
|
470
|
callStatsApplicationLogsDisabled: config.callStatsApplicationLogsDisabled,
|
478
|
|
- enableCallStats,
|
|
471
|
+ enableCallStats: true,
|
479
|
472
|
roomName: this.options.name,
|
480
|
473
|
applicationName: config.applicationName,
|
481
|
474
|
configParams: config.callStatsConfigParams
|