浏览代码

feat: Adds option to set ws keepalive url through config. (#8487)

* feat: Adds option to set ws keepalive url through config.

* chore(deps) lib-jitsi-meet@latest

* feat: Adds option to set ws keepalive url through config.
* fix VADAudioAnalyser: catch error

be18ff34be/...9fdde46694d1c4bc8b7f051cc8d50e0df29ffd07
j8
Дамян Минков 4 年前
父节点
当前提交
79f3756d33
没有帐户链接到提交者的电子邮件
共有 4 个文件被更改,包括 10 次插入4 次删除
  1. 2
    0
      config.js
  2. 4
    0
      connection.js
  3. 2
    2
      package-lock.json
  4. 2
    2
      package.json

+ 2
- 0
config.js 查看文件

699
      forceTurnRelay
699
      forceTurnRelay
700
      hiddenDomain
700
      hiddenDomain
701
      ignoreStartMuted
701
      ignoreStartMuted
702
+     websocketKeepAlive
703
+     websocketKeepAliveUrl
702
      */
704
      */
703
 
705
 
704
     /**
706
     /**

+ 4
- 0
connection.js 查看文件

94
     //  in future). It's included for the time being for Jitsi Meet and lib-jitsi-meet versions interoperability.
94
     //  in future). It's included for the time being for Jitsi Meet and lib-jitsi-meet versions interoperability.
95
     connectionConfig.serviceUrl = connectionConfig.bosh = serviceUrl;
95
     connectionConfig.serviceUrl = connectionConfig.bosh = serviceUrl;
96
 
96
 
97
+    if (connectionConfig.websocketKeepAliveUrl) {
98
+        connectionConfig.websocketKeepAliveUrl += `?room=${roomName}`;
99
+    }
100
+
97
     const connection = new JitsiMeetJS.JitsiConnection(null, jwt, connectionConfig);
101
     const connection = new JitsiMeetJS.JitsiConnection(null, jwt, connectionConfig);
98
 
102
 
99
     if (config.iAmRecorder) {
103
     if (config.iAmRecorder) {

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

10343
       }
10343
       }
10344
     },
10344
     },
10345
     "lib-jitsi-meet": {
10345
     "lib-jitsi-meet": {
10346
-      "version": "github:jitsi/lib-jitsi-meet#be18ff34bedf38c7475fe4953074c7959000e15f",
10347
-      "from": "github:jitsi/lib-jitsi-meet#be18ff34bedf38c7475fe4953074c7959000e15f",
10346
+      "version": "github:jitsi/lib-jitsi-meet#9fdde46694d1c4bc8b7f051cc8d50e0df29ffd07",
10347
+      "from": "github:jitsi/lib-jitsi-meet#9fdde46694d1c4bc8b7f051cc8d50e0df29ffd07",
10348
       "requires": {
10348
       "requires": {
10349
         "@jitsi/js-utils": "1.0.2",
10349
         "@jitsi/js-utils": "1.0.2",
10350
         "@jitsi/sdp-interop": "1.0.3",
10350
         "@jitsi/sdp-interop": "1.0.3",

+ 2
- 2
package.json 查看文件

49
     "i18next": "17.0.6",
49
     "i18next": "17.0.6",
50
     "i18next-browser-languagedetector": "3.0.1",
50
     "i18next-browser-languagedetector": "3.0.1",
51
     "i18next-xhr-backend": "3.0.0",
51
     "i18next-xhr-backend": "3.0.0",
52
+    "jQuery-Impromptu": "github:trentrichardson/jQuery-Impromptu#v6.0.0",
52
     "jitsi-meet-logger": "github:jitsi/jitsi-meet-logger#v1.0.0",
53
     "jitsi-meet-logger": "github:jitsi/jitsi-meet-logger#v1.0.0",
53
     "jquery": "3.5.1",
54
     "jquery": "3.5.1",
54
     "jquery-contextmenu": "2.4.5",
55
     "jquery-contextmenu": "2.4.5",
55
     "jquery-i18next": "1.2.1",
56
     "jquery-i18next": "1.2.1",
56
-    "jQuery-Impromptu": "github:trentrichardson/jQuery-Impromptu#v6.0.0",
57
     "js-md5": "0.6.1",
57
     "js-md5": "0.6.1",
58
     "jwt-decode": "2.2.0",
58
     "jwt-decode": "2.2.0",
59
-    "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#be18ff34bedf38c7475fe4953074c7959000e15f",
59
+    "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#9fdde46694d1c4bc8b7f051cc8d50e0df29ffd07",
60
     "libflacjs": "github:mmig/libflac.js#93d37e7f811f01cf7d8b6a603e38bd3c3810907d",
60
     "libflacjs": "github:mmig/libflac.js#93d37e7f811f01cf7d8b6a603e38bd3c3810907d",
61
     "lodash": "4.17.19",
61
     "lodash": "4.17.19",
62
     "moment": "2.19.4",
62
     "moment": "2.19.4",

正在加载...
取消
保存