Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(rtcstats): Fix rtcstats poll interval typo and increase default value (#12024)

Nils Ohlmeierf70ed9cb8a27
diff --git a/config.js b/config.js
index d5ae3134b3..eb837d618f 100644
--- a/config.js
+++ b/config.js
@@ -968,7 +968,7 @@ var config = {
// The interval at which rtcstats will poll getStats, defaults to 1000ms.
// If the value is set to 0 getStats won't be polled and the rtcstats client
// will only send data related to RTCPeerConnection events.
- // rtcstatsPolIInterval: 1000,
+ // rtcstatsPollInterval: 1000,
// Array of script URLs to load as lib-jitsi-meet "analytics handlers".
// scriptURLs: [
diff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.ts
index 113c453e3e..57ade84f25 100644
--- a/react/features/base/config/configType.ts
+++ b/react/features/base/config/configType.ts
@@ -99,7 +99,7 @@ export interface IConfig {
obfuscateRoomName?: boolean;
rtcstatsEnabled?: boolean;
rtcstatsEndpoint?: string;
- rtcstatsPolIInterval?: number;
+ rtcstatsPollInterval?: number;
scriptURLs?: Array<string>;
};
apiLogLevels?: Array<'warn' | 'log' | 'error' | 'info' | 'debug'>;
diff --git a/react/features/rtcstats/middleware.js b/react/features/rtcstats/middleware.js
index 7be5f0131b..45c13888a7 100644
--- a/react/features/rtcstats/middleware.js
+++ b/react/features/rtcstats/middleware.js
@@ -42,7 +42,7 @@ MiddlewareRegistry.register(store => next => action => {
// original non proxy versions of these functions.
try {
// Default poll interval is 1000ms and standard stats will be used, if not provided in the config.
- const pollInterval = analytics.rtcstatsPollInterval || 1000;
+ const pollInterval = analytics.rtcstatsPollInterval || 10000;
const useLegacy = analytics.rtcstatsUseLegacy || false;