浏览代码

Use rtcstats with keep-alive / add rtcstats enabled config

j8
Andrei Gavrilescu 4 年前
父节点
当前提交
d725c0ab8a
共有 4 个文件被更改,包括 11 次插入5 次删除
  1. 6
    0
      config.js
  2. 2
    2
      package-lock.json
  3. 1
    1
      package.json
  4. 2
    2
      react/features/rtcstats/middleware.js

+ 6
- 0
config.js 查看文件

@@ -459,6 +459,12 @@ var config = {
459 459
         // amplitudeAPPKey: '<APP_KEY>'
460 460
 
461 461
         // Configuration for the rtcstats server:
462
++       // By enabling rtcstats server every time a conference is joined the rtcstats
463
+        // module connects to the provided rtcstatsEndpoint and sends statistics regarding
464
+        // PeerConnection states along with getStats metrics polled at the specified
465
+        // interval.
466
+        // rtcstatsEnabled: true,
467
+
462 468
         // In order to enable rtcstats one needs to provide a endpoint url.
463 469
         // rtcstatsEndpoint: wss://rtcstats-server-pilot.jitsi.net/,
464 470
 

+ 2
- 2
package-lock.json 查看文件

@@ -22300,8 +22300,8 @@
22300 22300
       }
22301 22301
     },
22302 22302
     "rtcstats": {
22303
-      "version": "github:jitsi/rtcstats#02a1a089d9a97d1414d216ff7d9c432253e50190",
22304
-      "from": "github:jitsi/rtcstats#v6.1.3",
22303
+      "version": "github:jitsi/rtcstats#0597c6a928f321d3cdec947d877012b7e8c2f1dc",
22304
+      "from": "github:jitsi/rtcstats#v6.2.0",
22305 22305
       "requires": {
22306 22306
         "@jitsi/js-utils": "1.0.0"
22307 22307
       },

+ 1
- 1
package.json 查看文件

@@ -90,7 +90,7 @@
90 90
     "redux": "4.0.4",
91 91
     "redux-thunk": "2.2.0",
92 92
     "rnnoise-wasm": "github:jitsi/rnnoise-wasm.git#566a16885897704d6e6d67a1d5ac5d39781db2af",
93
-    "rtcstats": "github:jitsi/rtcstats#v6.1.3",
93
+    "rtcstats": "github:jitsi/rtcstats#v6.2.0",
94 94
     "styled-components": "3.4.9",
95 95
     "util": "0.12.1",
96 96
     "uuid": "3.1.0",

+ 2
- 2
react/features/rtcstats/middleware.js 查看文件

@@ -25,7 +25,7 @@ MiddlewareRegistry.register(store => next => action => {
25 25
 
26 26
     switch (action.type) {
27 27
     case LIB_WILL_INIT: {
28
-        if (analytics.rtcstatsEndpoint) {
28
+        if (analytics.rtcstatsEnabled) {
29 29
             // RTCStats "proxies" WebRTC functions such as GUM and RTCPeerConnection by rewriting the global
30 30
             // window functions. Because lib-jitsi-meet uses references to those functions that are taken on
31 31
             // 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 => {
47 47
         break;
48 48
     }
49 49
     case CONFERENCE_JOINED: {
50
-        if (analytics.rtcstatsEndpoint && RTCStats.isInitialized()) {
50
+        if (analytics.rtcstatsEnabled && RTCStats.isInitialized()) {
51 51
             // Once the conference started connect to the rtcstats server and send data.
52 52
             try {
53 53
                 RTCStats.connect();

正在加载...
取消
保存