ソースを参照

Merge pull request #5838 from jitsi/project-hps

Project HiPS, first pass
j8
Emil Ivov 5年前
コミット
87a058eaa4
コミッターのメールアドレスに関連付けられたアカウントが存在しません
3個のファイルの変更52行の追加14行の削除
  1. 32
    0
      conference.js
  2. 19
    13
      package-lock.json
  3. 1
    1
      package.json

+ 32
- 0
conference.js ファイルの表示

470
      */
470
      */
471
     localVideo: null,
471
     localVideo: null,
472
 
472
 
473
+    /**
474
+     * The key used for End-To-End Encryption.
475
+     */
476
+    e2eeKey: undefined,
477
+
473
     /**
478
     /**
474
      * Creates local media tracks and connects to a room. Will show error
479
      * Creates local media tracks and connects to a room. Will show error
475
      * dialogs in case accessing the local microphone and/or camera failed. Will
480
      * dialogs in case accessing the local microphone and/or camera failed. Will
645
     init(options) {
650
     init(options) {
646
         this.roomName = options.roomName;
651
         this.roomName = options.roomName;
647
 
652
 
653
+        window.addEventListener('hashchange', this.onHashChange.bind(this), false);
654
+
648
         return (
655
         return (
649
 
656
 
650
             // Initialize the device list first. This way, when creating tracks
657
             // Initialize the device list first. This way, when creating tracks
1177
         }));
1184
         }));
1178
     },
1185
     },
1179
 
1186
 
1187
+    /**
1188
+     * Handled location hash change events.
1189
+     */
1190
+    onHashChange() {
1191
+        const items = {};
1192
+        const parts = window.location.hash.substr(1).split('&');
1193
+
1194
+        for (const part of parts) {
1195
+            const param = part.split('=');
1196
+            const key = param[0];
1197
+
1198
+            if (!key) {
1199
+                continue; // eslint-disable-line no-continue
1200
+            }
1201
+
1202
+            items[key] = param[1];
1203
+        }
1204
+
1205
+        this.e2eeKey = items.e2eekey;
1206
+
1207
+        logger.debug(`New E2EE key: ${this.e2eeKey}`);
1208
+
1209
+        this._room.setE2EEKey(this.e2eeKey);
1210
+    },
1211
+
1180
     /**
1212
     /**
1181
      * Exposes a Command(s) API on this instance. It is necessitated by (1) the
1213
      * Exposes a Command(s) API on this instance. It is necessitated by (1) the
1182
      * desire to keep room private to this instance and (2) the need of other
1214
      * desire to keep room private to this instance and (2) the need of other

+ 19
- 13
package-lock.json ファイルの表示

2833
       }
2833
       }
2834
     },
2834
     },
2835
     "@jitsi/sdp-interop": {
2835
     "@jitsi/sdp-interop": {
2836
-      "version": "0.1.14",
2837
-      "resolved": "https://registry.npmjs.org/@jitsi/sdp-interop/-/sdp-interop-0.1.14.tgz",
2838
-      "integrity": "sha512-v60VAtBx9LO46c9In9oMNY+Ho5993UMOLHBg6VcrcyoVTIWIeqs/9YjjmrQ3Sf4I5aMRABNl7HTby/1lHcqFJw==",
2836
+      "version": "1.0.1",
2837
+      "resolved": "https://registry.npmjs.org/@jitsi/sdp-interop/-/sdp-interop-1.0.1.tgz",
2838
+      "integrity": "sha512-OJm8IYsJKCYJBlC0geRHm2VHi8ow2k/3wOZ7n0lEOBfV6RWghZQzQWHdT/qrkbXB2EHcm40Oy91a5Bfz2m6ydA==",
2839
       "requires": {
2839
       "requires": {
2840
+        "lodash.clonedeep": "4.5.0",
2840
         "sdp-transform": "2.3.0"
2841
         "sdp-transform": "2.3.0"
2841
       }
2842
       }
2842
     },
2843
     },
2843
     "@jitsi/sdp-simulcast": {
2844
     "@jitsi/sdp-simulcast": {
2844
-      "version": "0.2.2",
2845
-      "resolved": "https://registry.npmjs.org/@jitsi/sdp-simulcast/-/sdp-simulcast-0.2.2.tgz",
2846
-      "integrity": "sha512-zQt9DRnG/wn7bQg3nat0+G2yptBtuZuQN0iG5LHy4/wedyzV7HjEE73Zod69i7boZlRgvdjyexoaiwisrj9knw==",
2845
+      "version": "0.3.0",
2846
+      "resolved": "https://registry.npmjs.org/@jitsi/sdp-simulcast/-/sdp-simulcast-0.3.0.tgz",
2847
+      "integrity": "sha512-lxHfIWgTvdVY7F7BOcC3OaFvyvLsQJVRBCQvfmz4/Pk21/FdCyeBW4gv9ogfxxisjarU8gPX7/up4Z3C17wuXw==",
2847
       "requires": {
2848
       "requires": {
2848
         "sdp-transform": "2.3.0"
2849
         "sdp-transform": "2.3.0"
2849
       }
2850
       }
10883
       }
10884
       }
10884
     },
10885
     },
10885
     "lib-jitsi-meet": {
10886
     "lib-jitsi-meet": {
10886
-      "version": "github:jitsi/lib-jitsi-meet#960eea3c5087ce07e9135fad70268c7d338e0de5",
10887
-      "from": "github:jitsi/lib-jitsi-meet#960eea3c5087ce07e9135fad70268c7d338e0de5",
10887
+      "version": "github:jitsi/lib-jitsi-meet#edfad5f51186d70c645c1c05ece88822c2486dc7",
10888
+      "from": "github:jitsi/lib-jitsi-meet#edfad5f51186d70c645c1c05ece88822c2486dc7",
10888
       "requires": {
10889
       "requires": {
10889
-        "@jitsi/sdp-interop": "0.1.14",
10890
-        "@jitsi/sdp-simulcast": "0.2.2",
10890
+        "@jitsi/sdp-interop": "1.0.1",
10891
+        "@jitsi/sdp-simulcast": "0.3.0",
10891
         "async": "0.9.0",
10892
         "async": "0.9.0",
10892
         "current-executing-script": "0.1.3",
10893
         "current-executing-script": "0.1.3",
10893
         "jitsi-meet-logger": "github:jitsi/jitsi-meet-logger#5ec92357570dc8f0b7ffc1528820721c84c6af8b",
10894
         "jitsi-meet-logger": "github:jitsi/jitsi-meet-logger#5ec92357570dc8f0b7ffc1528820721c84c6af8b",
10896
         "sdp-transform": "2.3.0",
10897
         "sdp-transform": "2.3.0",
10897
         "strophe.js": "1.3.4",
10898
         "strophe.js": "1.3.4",
10898
         "strophejs-plugin-disco": "0.0.2",
10899
         "strophejs-plugin-disco": "0.0.2",
10899
-        "strophejs-plugin-stream-management": "github:jitsi/strophejs-plugin-stream-management#cec7608601c1bc098543823fc658e3ddf758c009",
10900
+        "strophejs-plugin-stream-management": "github:jitsi/strophejs-plugin-stream-management#e719a02b4f83856c1530882084a4b048ee622d45",
10900
         "webrtc-adapter": "7.5.0"
10901
         "webrtc-adapter": "7.5.0"
10901
       },
10902
       },
10902
       "dependencies": {
10903
       "dependencies": {
10976
       "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=",
10977
       "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=",
10977
       "dev": true
10978
       "dev": true
10978
     },
10979
     },
10980
+    "lodash.clonedeep": {
10981
+      "version": "4.5.0",
10982
+      "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz",
10983
+      "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8="
10984
+    },
10979
     "lodash.flatten": {
10985
     "lodash.flatten": {
10980
       "version": "4.4.0",
10986
       "version": "4.4.0",
10981
       "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz",
10987
       "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz",
16879
       "integrity": "sha512-T9pJFzn1ZUqZ/we9+OvI5pFdrjeb4IBMbEjK+ZWEZV036wEl8l8GOtF8AJ3sIqOMtdIiFLdFu99JiGWd7yapAQ=="
16885
       "integrity": "sha512-T9pJFzn1ZUqZ/we9+OvI5pFdrjeb4IBMbEjK+ZWEZV036wEl8l8GOtF8AJ3sIqOMtdIiFLdFu99JiGWd7yapAQ=="
16880
     },
16886
     },
16881
     "strophejs-plugin-stream-management": {
16887
     "strophejs-plugin-stream-management": {
16882
-      "version": "github:jitsi/strophejs-plugin-stream-management#cec7608601c1bc098543823fc658e3ddf758c009",
16883
-      "from": "github:jitsi/strophejs-plugin-stream-management#cec7608601c1bc098543823fc658e3ddf758c009"
16888
+      "version": "github:jitsi/strophejs-plugin-stream-management#e719a02b4f83856c1530882084a4b048ee622d45",
16889
+      "from": "github:jitsi/strophejs-plugin-stream-management#e719a02b4f83856c1530882084a4b048ee622d45"
16884
     },
16890
     },
16885
     "style-loader": {
16891
     "style-loader": {
16886
       "version": "0.19.0",
16892
       "version": "0.19.0",

+ 1
- 1
package.json ファイルの表示

56
     "js-utils": "github:jitsi/js-utils#0b2cef90613a74777fefd98d4ee3eda3879809ab",
56
     "js-utils": "github:jitsi/js-utils#0b2cef90613a74777fefd98d4ee3eda3879809ab",
57
     "jsrsasign": "8.0.12",
57
     "jsrsasign": "8.0.12",
58
     "jwt-decode": "2.2.0",
58
     "jwt-decode": "2.2.0",
59
-    "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#960eea3c5087ce07e9135fad70268c7d338e0de5",
59
+    "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#edfad5f51186d70c645c1c05ece88822c2486dc7",
60
     "libflacjs": "github:mmig/libflac.js#93d37e7f811f01cf7d8b6a603e38bd3c3810907d",
60
     "libflacjs": "github:mmig/libflac.js#93d37e7f811f01cf7d8b6a603e38bd3c3810907d",
61
     "lodash": "4.17.13",
61
     "lodash": "4.17.13",
62
     "moment": "2.19.4",
62
     "moment": "2.19.4",

読み込み中…
キャンセル
保存