@webex/plugin-meetings 3.13.0-next.4 → 3.13.0-next.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
+ var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
5
+ _Object$defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+ var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
10
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
11
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
12
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
13
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
14
+ var _webCapabilities = require("@webex/web-capabilities");
15
+ var _webexCore = require("@webex/webex-core");
16
+ var _loggerProxy = _interopRequireDefault(require("../common/logs/logger-proxy"));
17
+ /*!
18
+ * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.
19
+ */
20
+
21
+ // @ts-ignore - StaticAssetLoader is exported from webex-core's JavaScript entry point.
22
+
23
+ /* The WASM module that contains the libe2ee + mlspp libraries with a WebE2EE wrapper around them, required for joining MLS group for E2EE meetings.
24
+ * The version is in the filename as it is important that JS-SDK implementation of MLS class matches the WASM module version.
25
+ */
26
+ var E2EE_WASM_ASSET = 'e2ee-0.0.1.wasm';
27
+
28
+ /**
29
+ * Owns E2EE resource preloading for a Meetings plugin session. The per-meeting controller is added
30
+ * in the follow-up integration change; this first step keeps the slow WASM load off the join path.
31
+ */
32
+ var E2eeManager = exports.default = /*#__PURE__*/function () {
33
+ function E2eeManager(_ref) {
34
+ var webex = _ref.webex,
35
+ wasmLoader = _ref.wasmLoader;
36
+ (0, _classCallCheck2.default)(this, E2eeManager);
37
+ (0, _defineProperty2.default)(this, "webex", void 0);
38
+ (0, _defineProperty2.default)(this, "wasmLoader", void 0);
39
+ (0, _defineProperty2.default)(this, "assetLoader", void 0);
40
+ this.webex = webex;
41
+ this.wasmLoader = wasmLoader;
42
+ this.assetLoader = new _webexCore.StaticAssetLoader({
43
+ baseUrl: webex.config.meetings.assetsBaseUrl
44
+ }, {
45
+ parent: webex
46
+ });
47
+ }
48
+
49
+ /**
50
+ * Warms the E2EE WASM module when configured and supported. Callers should not await this from
51
+ * registration; a loading failure must not prevent the client from registering for meetings.
52
+ * @returns {Promise<void>}
53
+ */
54
+ return (0, _createClass2.default)(E2eeManager, [{
55
+ key: "preload",
56
+ value: (function () {
57
+ var _preload = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
58
+ var _this$webex, _this$webex$config, _this$webex$config$me;
59
+ var enabled, supported, wasmUrl;
60
+ return _regenerator.default.wrap(function (_context) {
61
+ while (1) switch (_context.prev = _context.next) {
62
+ case 0:
63
+ enabled = !!((_this$webex = this.webex) !== null && _this$webex !== void 0 && (_this$webex$config = _this$webex.config) !== null && _this$webex$config !== void 0 && (_this$webex$config$me = _this$webex$config.meetings) !== null && _this$webex$config$me !== void 0 && _this$webex$config$me.enableE2ee);
64
+ supported = _webCapabilities.WebCapabilities.supportsWasm() === _webCapabilities.CapabilityState.CAPABLE;
65
+ if (!(!enabled || !supported)) {
66
+ _context.next = 1;
67
+ break;
68
+ }
69
+ _loggerProxy.default.logger.info('e2ee: E2eeManager#preload --> E2EE disabled or unsupported');
70
+ return _context.abrupt("return");
71
+ case 1:
72
+ wasmUrl = this.assetLoader.getUrl(E2EE_WASM_ASSET);
73
+ _loggerProxy.default.logger.info('e2ee: E2eeManager#preload --> preloading WASM module');
74
+ _context.next = 2;
75
+ return this.wasmLoader.preload(wasmUrl);
76
+ case 2:
77
+ _loggerProxy.default.logger.info('e2ee: E2eeManager#preload --> WASM module preloaded');
78
+ case 3:
79
+ case "end":
80
+ return _context.stop();
81
+ }
82
+ }, _callee, this);
83
+ }));
84
+ function preload() {
85
+ return _preload.apply(this, arguments);
86
+ }
87
+ return preload;
88
+ }())
89
+ }]);
90
+ }();
91
+ //# sourceMappingURL=E2eeManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_webCapabilities","require","_webexCore","_loggerProxy","_interopRequireDefault","E2EE_WASM_ASSET","E2eeManager","exports","default","_ref","webex","wasmLoader","_classCallCheck2","_defineProperty2","assetLoader","StaticAssetLoader","baseUrl","config","meetings","assetsBaseUrl","parent","_createClass2","key","value","_preload","_asyncToGenerator2","_regenerator","mark","_callee","_this$webex","_this$webex$config","_this$webex$config$me","enabled","supported","wasmUrl","wrap","_context","prev","next","enableE2ee","WebCapabilities","supportsWasm","CapabilityState","CAPABLE","LoggerProxy","logger","info","abrupt","getUrl","preload","stop","apply","arguments"],"sources":["E2eeManager.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {CapabilityState, WebCapabilities} from '@webex/web-capabilities';\n// @ts-ignore - StaticAssetLoader is exported from webex-core's JavaScript entry point.\nimport {StaticAssetLoader} from '@webex/webex-core';\n\nimport LoggerProxy from '../common/logs/logger-proxy';\nimport WasmLoader from '../common/wasm-loader';\n\n/* The WASM module that contains the libe2ee + mlspp libraries with a WebE2EE wrapper around them, required for joining MLS group for E2EE meetings.\n * The version is in the filename as it is important that JS-SDK implementation of MLS class matches the WASM module version.\n */\nconst E2EE_WASM_ASSET = 'e2ee-0.0.1.wasm';\n\n/**\n * Owns E2EE resource preloading for a Meetings plugin session. The per-meeting controller is added\n * in the follow-up integration change; this first step keeps the slow WASM load off the join path.\n */\nexport default class E2eeManager {\n private readonly webex: any;\n\n private readonly wasmLoader: WasmLoader;\n\n private readonly assetLoader: StaticAssetLoader;\n\n constructor({webex, wasmLoader}: {webex: any; wasmLoader: WasmLoader}) {\n this.webex = webex;\n this.wasmLoader = wasmLoader;\n this.assetLoader = new StaticAssetLoader(\n {baseUrl: webex.config.meetings.assetsBaseUrl},\n {parent: webex}\n );\n }\n\n /**\n * Warms the E2EE WASM module when configured and supported. Callers should not await this from\n * registration; a loading failure must not prevent the client from registering for meetings.\n * @returns {Promise<void>}\n */\n async preload(): Promise<void> {\n const enabled = !!this.webex?.config?.meetings?.enableE2ee;\n const supported = WebCapabilities.supportsWasm() === CapabilityState.CAPABLE;\n\n if (!enabled || !supported) {\n LoggerProxy.logger.info('e2ee: E2eeManager#preload --> E2EE disabled or unsupported');\n\n return;\n }\n\n const wasmUrl = this.assetLoader.getUrl(E2EE_WASM_ASSET);\n\n LoggerProxy.logger.info('e2ee: E2eeManager#preload --> preloading WASM module');\n await this.wasmLoader.preload(wasmUrl);\n LoggerProxy.logger.info('e2ee: E2eeManager#preload --> WASM module preloaded');\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAIA,IAAAA,gBAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAC,sBAAA,CAAAH,OAAA;AARA;AACA;AACA;;AAGA;;AAMA;AACA;AACA;AACA,IAAMI,eAAe,GAAG,iBAAiB;;AAEzC;AACA;AACA;AACA;AAHA,IAIqBC,WAAW,GAAAC,OAAA,CAAAC,OAAA;EAO9B,SAAAF,YAAAG,IAAA,EAAuE;IAAA,IAA1DC,KAAK,GAAAD,IAAA,CAALC,KAAK;MAAEC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IAAA,IAAAC,gBAAA,CAAAJ,OAAA,QAAAF,WAAA;IAAA,IAAAO,gBAAA,CAAAL,OAAA;IAAA,IAAAK,gBAAA,CAAAL,OAAA;IAAA,IAAAK,gBAAA,CAAAL,OAAA;IAC5B,IAAI,CAACE,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACG,WAAW,GAAG,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AAI,CAAC3B,UAAU,CAACsC,OAAO,CAACf,OAAO,CAAC;YAAA;cACtCU,oBAAW,CAACC,MAAM,CAACC,IAAI,CAAC,qDAAqD,CAAC;YAAC;YAAA;cAAA,OAAAV,QAAA,CAAAc,IAAA;UAAA;QAAA,GAAAtB,OAAA;MAAA,CAChF;MAAA,SAfKqB,OAAOA,CAAA;QAAA,OAAAzB,QAAA,CAAA2B,KAAA,OAAAC,SAAA;MAAA;MAAA,OAAPH,OAAO;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -415,7 +415,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
415
415
  throw error;
416
416
  });
417
417
  },
418
- version: "3.13.0-next.4"
418
+ version: "3.13.0-next.6"
419
419
  });
420
420
  var _default = exports.default = SimultaneousInterpretation;
421
421
  //# sourceMappingURL=index.js.map
@@ -18,7 +18,7 @@ var SILanguage = _webexCore.WebexPlugin.extend({
18
18
  languageCode: 'number',
19
19
  languageName: 'string'
20
20
  },
21
- version: "3.13.0-next.4"
21
+ version: "3.13.0-next.6"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -46,6 +46,8 @@ var _request = _interopRequireDefault(require("../common/logs/request"));
46
46
  var _triggerProxy = _interopRequireDefault(require("../common/events/trigger-proxy"));
47
47
  var _media = _interopRequireDefault(require("../media"));
48
48
  var _util = _interopRequireDefault(require("../meeting/util"));
49
+ var _wasmLoader = _interopRequireDefault(require("../common/wasm-loader"));
50
+ var _E2eeManager = _interopRequireDefault(require("../e2ee/E2eeManager"));
49
51
  var _constants = require("../constants");
50
52
  var _constants2 = _interopRequireDefault(require("../metrics/constants"));
51
53
  var _meetingInfo = _interopRequireDefault(require("../meeting-info"));
@@ -206,6 +208,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
206
208
  (0, _defineProperty2.default)(_this, "breakoutLocusForHandleLater", void 0);
207
209
  (0, _defineProperty2.default)(_this, "namespace", _constants.MEETINGS);
208
210
  (0, _defineProperty2.default)(_this, "registrationStatus", void 0);
211
+ (0, _defineProperty2.default)(_this, "wasmLoader", void 0);
212
+ (0, _defineProperty2.default)(_this, "e2eeManager", void 0);
209
213
  /**
210
214
  * Emits a metric describing how well this browser runs WebAssembly, used to spot browsers
211
215
  * where real-time WASM effects (e.g. background noise removal) run poorly.
@@ -385,6 +389,9 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
385
389
  _this.media = {
386
390
  getUserMedia: _media.default.getUserMedia
387
391
  };
392
+
393
+ // Shared runtime cache for WASM modules used by meetings.
394
+ _this.wasmLoader = new _wasmLoader.default();
388
395
  _this.onReady();
389
396
  return _this;
390
397
  }
@@ -783,6 +790,13 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
783
790
  mediaLogger = new MediaLogger();
784
791
  (0, _internalMediaCore.setLogger)(mediaLogger);
785
792
 
793
+ // Construct after READY because the manager uses the initialized webex client and config.
794
+ // @ts-ignore
795
+ _this4.e2eeManager = new _E2eeManager.default({
796
+ webex: _this4.webex,
797
+ wasmLoader: _this4.wasmLoader
798
+ });
799
+
786
800
  /**
787
801
  * The MeetingInfo object to interact with server
788
802
  * @instance
@@ -1072,6 +1086,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1072
1086
  }), this.executeRegistrationStep(function () {
1073
1087
  return _promise.default.resolve(_util2.default.checkH264Support.call(_this6));
1074
1088
  }, 'checkH264Support')]).then(function () {
1089
+ var _this6$e2eeManager;
1075
1090
  _this6.listenForEvents();
1076
1091
  _triggerProxy.default.trigger(_this6, {
1077
1092
  file: 'meetings',
@@ -1079,6 +1094,11 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1079
1094
  }, _constants.EVENT_TRIGGERS.MEETINGS_REGISTERED);
1080
1095
  _this6.registered = true;
1081
1096
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETINGS_REGISTRATION_SUCCESS);
1097
+
1098
+ // Preload is best-effort and must not delay or fail Meetings registration.
1099
+ (_this6$e2eeManager = _this6.e2eeManager) === null || _this6$e2eeManager === void 0 ? void 0 : _this6$e2eeManager.preload().catch(function (error) {
1100
+ _loggerProxy.default.logger.warn("Meetings:index#register --> E2EE preload failed: ".concat((error === null || error === void 0 ? void 0 : error.message) || error));
1101
+ });
1082
1102
  }).catch(function (error) {
1083
1103
  _loggerProxy.default.logger.error("Meetings:index#register --> ERROR, Unable to register, ".concat(error.message));
1084
1104
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETINGS_REGISTRATION_FAILED, {