Skip to content

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

Use rtcstats with keep-alive / add rtcstats enabled config

Andrei Gavrilescud725c0ab8a8e
diff --git a/config.js b/config.js
index 97f6c296b3..b70d1ca92b 100644
--- a/config.js
+++ b/config.js
@@ -459,6 +459,12 @@ var config = {
// amplitudeAPPKey: '<APP_KEY>'
// Configuration for the rtcstats server:
++ // By enabling rtcstats server every time a conference is joined the rtcstats
+ // module connects to the provided rtcstatsEndpoint and sends statistics regarding
+ // PeerConnection states along with getStats metrics polled at the specified
+ // interval.
+ // rtcstatsEnabled: true,
+
// In order to enable rtcstats one needs to provide a endpoint url.
// rtcstatsEndpoint: wss://rtcstats-server-pilot.jitsi.net/,
diff --git a/package-lock.json b/package-lock.json
index 76c2dfdbb8..bb44416868 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -22300,8 +22300,8 @@
}
},
"rtcstats": {
- "version": "github:jitsi/rtcstats#02a1a089d9a97d1414d216ff7d9c432253e50190",
- "from": "github:jitsi/rtcstats#v6.1.3",
+ "version": "github:jitsi/rtcstats#0597c6a928f321d3cdec947d877012b7e8c2f1dc",
+ "from": "github:jitsi/rtcstats#v6.2.0",
"requires": {
"@jitsi/js-utils": "1.0.0"
},
diff --git a/package.json b/package.json
index 9f98b24806..dca7f21c0b 100644
--- a/package.json
+++ b/package.json
@@ -90,7 +90,7 @@
"redux": "4.0.4",
"redux-thunk": "2.2.0",
"rnnoise-wasm": "github:jitsi/rnnoise-wasm.git#566a16885897704d6e6d67a1d5ac5d39781db2af",
- "rtcstats": "github:jitsi/rtcstats#v6.1.3",
+ "rtcstats": "github:jitsi/rtcstats#v6.2.0",
"styled-components": "3.4.9",
"util": "0.12.1",
"uuid": "3.1.0",
diff --git a/react/features/rtcstats/middleware.js b/react/features/rtcstats/middleware.js
index 4a0c5ddd4e..73c5f40abb 100644
--- a/react/features/rtcstats/middleware.js
+++ b/react/features/rtcstats/middleware.js
@@ -25,7 +25,7 @@ MiddlewareRegistry.register(store => next => action => {
switch (action.type) {
case LIB_WILL_INIT: {
- if (analytics.rtcstatsEndpoint) {
+ if (analytics.rtcstatsEnabled) {
// RTCStats "proxies" WebRTC functions such as GUM and RTCPeerConnection by rewriting the global
// window functions. Because lib-jitsi-meet uses references to those functions that are taken on
// init, we need to add these proxies before it initializes, otherwise lib-jitsi-meet will use the
@@ -47,7 +47,7 @@ MiddlewareRegistry.register(store => next => action => {
break;
}
case CONFERENCE_JOINED: {
- if (analytics.rtcstatsEndpoint && RTCStats.isInitialized()) {
+ if (analytics.rtcstatsEnabled && RTCStats.isInitialized()) {
// Once the conference started connect to the rtcstats server and send data.
try {
RTCStats.connect();