@webex/plugin-meetings 3.13.0-next.5 → 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.
package/babel.config.js CHANGED
@@ -1,3 +1,19 @@
1
1
  const babelConfigLegacy = require('@webex/babel-config-legacy');
2
2
 
3
- module.exports = babelConfigLegacy;
3
+ const [presetEnv, ...otherPresets] = babelConfigLegacy.presets;
4
+ const [presetEnvName, presetEnvOptions] = presetEnv;
5
+
6
+ module.exports = {
7
+ ...babelConfigLegacy,
8
+ overrides: [
9
+ {
10
+ // Keep the WASM loader's dynamic import() native instead of compiling it to require(), so
11
+ // the runtime-served emscripten loader is fetched by the browser rather than bundled.
12
+ test: /src[\\/]common[\\/]wasm-loader\.ts$/,
13
+ presets: [
14
+ [presetEnvName, {...presetEnvOptions, exclude: ['transform-dynamic-import']}],
15
+ ...otherPresets,
16
+ ],
17
+ },
18
+ ],
19
+ };
@@ -191,7 +191,7 @@ var AIEnableRequest = _webexCore.WebexPlugin.extend({
191
191
  method: _constants.HTTP_VERBS.PUT
192
192
  });
193
193
  },
194
- version: "3.13.0-next.5"
194
+ version: "3.13.0-next.6"
195
195
  });
196
196
  var _default = exports.default = AIEnableRequest;
197
197
  //# sourceMappingURL=index.js.map
@@ -214,7 +214,7 @@ var Breakout = _webexCore.WebexPlugin.extend({
214
214
  sessionId: this.sessionId
215
215
  });
216
216
  },
217
- version: "3.13.0-next.5"
217
+ version: "3.13.0-next.6"
218
218
  });
219
219
  var _default = exports.default = Breakout;
220
220
  //# sourceMappingURL=breakout.js.map
@@ -1230,7 +1230,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
1230
1230
  this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
1231
1231
  }
1232
1232
  },
1233
- version: "3.13.0-next.5"
1233
+ version: "3.13.0-next.6"
1234
1234
  });
1235
1235
  var _default = exports.default = Breakouts;
1236
1236
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,174 @@
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 _map = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/map"));
11
+ var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
12
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
13
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
14
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
15
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
16
+ var _loggerProxy = _interopRequireDefault(require("./logs/logger-proxy"));
17
+ /*!
18
+ * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.
19
+ */
20
+
21
+ /**
22
+ * An emscripten MODULARIZE factory — the default export of a generated `*.js` WASM loader. Calling
23
+ * it instantiates the module; `locateFile` lets us point the loader at the `.wasm` binary URL.
24
+ */
25
+
26
+ /**
27
+ * Natively imports an emscripten loader served at runtime.
28
+ *
29
+ * This must stay a real `import()`: babel.config.js excludes `transform-dynamic-import` for this
30
+ * file so Babel doesn't rewrite it to `require()`, and `webpackIgnore` stops consumers' webpack
31
+ * from trying to bundle it. The URL is resolved against the document because a native `import()`
32
+ * would otherwise resolve relative paths against the SDK bundle's URL.
33
+ * @param {string} jsUrl - URL of the emscripten loader module (e.g. '/assets/plugin-meetings/e2ee.js').
34
+ * @returns {Promise<{default: EmscriptenModuleFactory}>}
35
+ */
36
+ var nativeImport = function nativeImport(jsUrl) {
37
+ return import(/* webpackIgnore: true */new URL(jsUrl, document.baseURI).href);
38
+ };
39
+ /**
40
+ * Loads and caches emscripten WebAssembly modules, each uniquely identified by its `.wasm` URL
41
+ * (the `.js` loader URL is derived by replacing the `.wasm` suffix). A single instance can load
42
+ * multiple distinct modules; each URL is loaded at most once and cached. Instantiated once per
43
+ * session so slow loads can be warmed ahead of when they're needed.
44
+ */
45
+ var WasmLoader = exports.default = /*#__PURE__*/function () {
46
+ /**
47
+ * @param {Object} [options]
48
+ * @param {Function} [options.importModule] - Override the dynamic import (used by tests).
49
+ */
50
+ function WasmLoader() {
51
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
52
+ importModule = _ref.importModule;
53
+ (0, _classCallCheck2.default)(this, WasmLoader);
54
+ (0, _defineProperty2.default)(this, "importModule", void 0);
55
+ (0, _defineProperty2.default)(this, "modules", new _map.default());
56
+ this.importModule = importModule || nativeImport;
57
+ }
58
+
59
+ /**
60
+ * @param {string} wasmUrl
61
+ * @returns {boolean} whether the module for the given URL has finished loading and is cached.
62
+ */
63
+ return (0, _createClass2.default)(WasmLoader, [{
64
+ key: "isLoaded",
65
+ value: function isLoaded(wasmUrl) {
66
+ var cached = this.modules.get(wasmUrl);
67
+ return !!cached && cached.instance !== null;
68
+ }
69
+
70
+ /**
71
+ * Warms the cache for the given module URL. Safe to call repeatedly; concurrent calls share a
72
+ * single load.
73
+ * @param {string} wasmUrl
74
+ * @returns {Promise<void>}
75
+ */
76
+ }, {
77
+ key: "preload",
78
+ value: (function () {
79
+ var _preload = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(wasmUrl) {
80
+ return _regenerator.default.wrap(function (_context) {
81
+ while (1) switch (_context.prev = _context.next) {
82
+ case 0:
83
+ _context.next = 1;
84
+ return this.get(wasmUrl);
85
+ case 1:
86
+ case "end":
87
+ return _context.stop();
88
+ }
89
+ }, _callee, this);
90
+ }));
91
+ function preload(_x) {
92
+ return _preload.apply(this, arguments);
93
+ }
94
+ return preload;
95
+ }()
96
+ /**
97
+ * Returns the cached module for the given URL, loading it if necessary.
98
+ * @param {string} wasmUrl
99
+ * @returns {Promise<TModule>}
100
+ */
101
+ )
102
+ }, {
103
+ key: "get",
104
+ value: function get(wasmUrl) {
105
+ var cached = this.modules.get(wasmUrl);
106
+ if (!cached) {
107
+ cached = {
108
+ instance: null,
109
+ loadPromise: null
110
+ };
111
+ this.modules.set(wasmUrl, cached);
112
+ }
113
+ if (cached.instance !== null) {
114
+ return _promise.default.resolve(cached.instance);
115
+ }
116
+ if (!cached.loadPromise) {
117
+ cached.loadPromise = this.load(wasmUrl, cached);
118
+ }
119
+ return cached.loadPromise;
120
+ }
121
+
122
+ /**
123
+ * @param {string} wasmUrl
124
+ * @param {CachedModule} cached
125
+ * @returns {Promise<unknown>}
126
+ */
127
+ }, {
128
+ key: "load",
129
+ value: (function () {
130
+ var _load = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(wasmUrl, cached) {
131
+ var jsUrl, _yield$this$importMod, factory, instance, _t;
132
+ return _regenerator.default.wrap(function (_context2) {
133
+ while (1) switch (_context2.prev = _context2.next) {
134
+ case 0:
135
+ jsUrl = wasmUrl.replace(/\.wasm(?=[?#]|$)/, '.js');
136
+ _context2.prev = 1;
137
+ _context2.next = 2;
138
+ return this.importModule(jsUrl);
139
+ case 2:
140
+ _yield$this$importMod = _context2.sent;
141
+ factory = _yield$this$importMod.default;
142
+ _context2.next = 3;
143
+ return factory({
144
+ locateFile: function locateFile(path) {
145
+ return path.endsWith('.wasm') ? wasmUrl : path;
146
+ }
147
+ });
148
+ case 3:
149
+ instance = _context2.sent;
150
+ cached.instance = instance;
151
+ return _context2.abrupt("return", instance);
152
+ case 4:
153
+ _context2.prev = 4;
154
+ _t = _context2["catch"](1);
155
+ // Reset so a failed load can be retried on the next get().
156
+ cached.loadPromise = null;
157
+ _loggerProxy.default.logger.error("WasmLoader#load --> failed to load WASM module ".concat(wasmUrl, ": ").concat(_t));
158
+ throw new Error("Failed to load WASM module ".concat(wasmUrl, ": ").concat(_t), {
159
+ cause: _t
160
+ });
161
+ case 5:
162
+ case "end":
163
+ return _context2.stop();
164
+ }
165
+ }, _callee2, this, [[1, 4]]);
166
+ }));
167
+ function load(_x2, _x3) {
168
+ return _load.apply(this, arguments);
169
+ }
170
+ return load;
171
+ }())
172
+ }]);
173
+ }();
174
+ //# sourceMappingURL=wasm-loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_loggerProxy","_interopRequireDefault","require","nativeImport","jsUrl","URL","document","baseURI","href","WasmLoader","exports","default","_ref","arguments","length","undefined","importModule","_classCallCheck2","_defineProperty2","_map","_createClass2","key","value","isLoaded","wasmUrl","cached","modules","get","instance","_preload","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_context","prev","next","stop","preload","_x","apply","loadPromise","set","_promise","resolve","load","_load","_callee2","_yield$this$importMod","factory","_t","_context2","replace","sent","locateFile","path","endsWith","abrupt","LoggerProxy","logger","error","concat","Error","cause","_x2","_x3"],"sources":["wasm-loader.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport LoggerProxy from './logs/logger-proxy';\n\n/**\n * An emscripten MODULARIZE factory — the default export of a generated `*.js` WASM loader. Calling\n * it instantiates the module; `locateFile` lets us point the loader at the `.wasm` binary URL.\n */\nexport type EmscriptenModuleFactory<TModule = unknown> = (moduleOverrides?: {\n locateFile?: (path: string) => string;\n}) => Promise<TModule>;\n\ntype ModuleImporter = (jsUrl: string) => Promise<{default: EmscriptenModuleFactory}>;\n\n/**\n * Natively imports an emscripten loader served at runtime.\n *\n * This must stay a real `import()`: babel.config.js excludes `transform-dynamic-import` for this\n * file so Babel doesn't rewrite it to `require()`, and `webpackIgnore` stops consumers' webpack\n * from trying to bundle it. The URL is resolved against the document because a native `import()`\n * would otherwise resolve relative paths against the SDK bundle's URL.\n * @param {string} jsUrl - URL of the emscripten loader module (e.g. '/assets/plugin-meetings/e2ee.js').\n * @returns {Promise<{default: EmscriptenModuleFactory}>}\n */\nconst nativeImport: ModuleImporter = (jsUrl) =>\n import(/* webpackIgnore: true */ new URL(jsUrl, document.baseURI).href);\n\ninterface CachedModule {\n instance: unknown | null;\n loadPromise: Promise<unknown> | null;\n}\n\n/**\n * Loads and caches emscripten WebAssembly modules, each uniquely identified by its `.wasm` URL\n * (the `.js` loader URL is derived by replacing the `.wasm` suffix). A single instance can load\n * multiple distinct modules; each URL is loaded at most once and cached. Instantiated once per\n * session so slow loads can be warmed ahead of when they're needed.\n */\nexport default class WasmLoader {\n private readonly importModule: ModuleImporter;\n\n private readonly modules = new Map<string, CachedModule>();\n\n /**\n * @param {Object} [options]\n * @param {Function} [options.importModule] - Override the dynamic import (used by tests).\n */\n constructor({importModule}: {importModule?: ModuleImporter} = {}) {\n this.importModule = importModule || nativeImport;\n }\n\n /**\n * @param {string} wasmUrl\n * @returns {boolean} whether the module for the given URL has finished loading and is cached.\n */\n isLoaded(wasmUrl: string): boolean {\n const cached = this.modules.get(wasmUrl);\n\n return !!cached && cached.instance !== null;\n }\n\n /**\n * Warms the cache for the given module URL. Safe to call repeatedly; concurrent calls share a\n * single load.\n * @param {string} wasmUrl\n * @returns {Promise<void>}\n */\n async preload(wasmUrl: string): Promise<void> {\n await this.get(wasmUrl);\n }\n\n /**\n * Returns the cached module for the given URL, loading it if necessary.\n * @param {string} wasmUrl\n * @returns {Promise<TModule>}\n */\n get<TModule = unknown>(wasmUrl: string): Promise<TModule> {\n let cached = this.modules.get(wasmUrl);\n\n if (!cached) {\n cached = {instance: null, loadPromise: null};\n this.modules.set(wasmUrl, cached);\n }\n\n if (cached.instance !== null) {\n return Promise.resolve(cached.instance as TModule);\n }\n if (!cached.loadPromise) {\n cached.loadPromise = this.load(wasmUrl, cached);\n }\n\n return cached.loadPromise as Promise<TModule>;\n }\n\n /**\n * @param {string} wasmUrl\n * @param {CachedModule} cached\n * @returns {Promise<unknown>}\n */\n private async load(wasmUrl: string, cached: CachedModule): Promise<unknown> {\n const jsUrl = wasmUrl.replace(/\\.wasm(?=[?#]|$)/, '.js');\n\n try {\n const {default: factory} = await this.importModule(jsUrl);\n const instance = await factory({\n locateFile: (path: string) => (path.endsWith('.wasm') ? wasmUrl : path),\n });\n\n cached.instance = instance;\n\n return instance;\n } catch (error) {\n // Reset so a failed load can be retried on the next get().\n cached.loadPromise = null;\n LoggerProxy.logger.error(\n `WasmLoader#load --> failed to load WASM module ${wasmUrl}: ${error}`\n );\n\n throw new Error(`Failed to load WASM module ${wasmUrl}: ${error}`, {cause: error});\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAIA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AAJA;AACA;AACA;;AAIA;AACA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMC,YAA4B,GAAG,SAA/BA,YAA4BA,CAAIC,KAAK;EAAA,OACzC,MAAM,CAAC,yBAA0B,IAAIC,GAAG,CAACD,KAAK,EAAEE,QAAQ,CAACC,OAAO,CAAC,CAACC,IAAI,CAAC;AAAA;AAOzE;AACA;AACA;AACA;AACA;AACA;AALA,IAMqBC,UAAU,GAAAC,OAAA,CAAAC,OAAA;EAK7B;AACF;AACA;AACA;EACE,SAAAF,WAAA,EAAkE;IAAA,IAAAG,IAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAJ,CAAC,CAAC;MAAnDG,YAAY,GAAAJ,IAAA,CAAZI,YAAY;IAAA,IAAAC,gBAAA,CAAAN,OAAA,QAAAF,UAAA;IAAA,IAAAS,gBAAA,CAAAP,OAAA;IAAA,IAAAO,gBAAA,CAAAP,OAAA,mBANE,IAAAQ,IAAA,CAAAR,OAAA,CAA8B,CAAC;IAOxD,IAAI,CAACK,YAAY,GAAGA,YAAY,IAAIb,YAAY;EAClD;;EAEA;AACF;AACA;AACA;EAHE,WAAAiB,aAAA,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AQ;cAAC,OAAAwB,SAAA,CAAAM,MAAA,WAEpB9B,QAAQ;YAAA;cAAAwB,SAAA,CAAAhB,IAAA;cAAAe,EAAA,GAAAC,SAAA;cAEf;cACA3B,MAAM,CAACiB,WAAW,GAAG,IAAI;cACzBiB,oBAAW,CAACC,MAAM,CAACC,KAAK,mDAAAC,MAAA,CAC4BtC,OAAO,QAAAsC,MAAA,CAAAX,EAAA,CAC3D,CAAC;cAAC,MAEI,IAAIY,KAAK,+BAAAD,MAAA,CAA+BtC,OAAO,QAAAsC,MAAA,CAAAX,EAAA,GAAc;gBAACa,KAAK,EAAAb;cAAO,CAAC,CAAC;YAAA;YAAA;cAAA,OAAAC,SAAA,CAAAd,IAAA;UAAA;QAAA,GAAAU,QAAA;MAAA,CAErF;MAAA,SArBaF,IAAIA,CAAAmB,GAAA,EAAAC,GAAA;QAAA,OAAAnB,KAAA,CAAAN,KAAA,OAAA5B,SAAA;MAAA;MAAA,OAAJiC,IAAI;IAAA;EAAA;AAAA","ignoreList":[]}
package/dist/config.js CHANGED
@@ -89,7 +89,8 @@ var _default = exports.default = {
89
89
  receiveTranscription: false,
90
90
  enableExtmap: false,
91
91
  enableAutomaticLLM: false,
92
- assetsBaseUrl: (0, _common.getUmdAssetsBaseUrl)('plugin-meetings', "3.13.0-next.5", "3.13.0-next.5"),
92
+ enableE2ee: false,
93
+ assetsBaseUrl: (0, _common.getUmdAssetsBaseUrl)('plugin-meetings', "3.13.0-next.7", "3.13.0-next.6"),
93
94
  installedOrgID: undefined,
94
95
  multipartSitePrefixList: ['.my.', '.mydmz.', '.mybts.', '.mydev.', '.myats2.', '.myats.'],
95
96
  experimental: {
@@ -1 +1 @@
1
- {"version":3,"names":["_common","require","_default","exports","default","meetings","deviceType","WEB","mediaSettings","pstn","reconnection","enabled","autoRejoin","detection","iceReconnectionTimeout","maxRejoinAttempts","stats","enableStatsAnalyzer","autoDowngradeEnabled","interval","analyzerInterval","historyMax","videoPacketLossRatioThreshold","rttThreshold","jitterThreshold","metrics","clientName","clientType","subClientType","mqaMetricsInterval","autoSendMQA","logging","enable","verboseEvents","resolution","maxWidth","maxHeight","idealWidth","idealHeight","screenResolution","bandwidth","audio","video","startBitrate","screenFrameRate","videoShareFrameRate","aspectRatio","autoUploadLogs","enableRtx","receiveTranscription","enableExtmap","enableAutomaticLLM","assetsBaseUrl","getUmdAssetsBaseUrl","installedOrgID","undefined","multipartSitePrefixList","experimental","enableMediaNegotiatedEvent","enableUnifiedMeetings","enableAdhocMeetings","storeLocusHashTreeEventsForDebugging","degradationPreferences","maxMacroblocksLimit","enableAv1SlidesSupport","iceCandidatesGatheringTimeout","backendIpv6NativeSupport","enableReachabilityChecks","reachabilityGetClusterTimeout","logUploadIntervalMultiplicationFactor","stopIceGatheringAfterFirstRelayCandidate","enableAudioTwccForMultistream","enablePerUdpUrlReachability","locus","excludedDataSets"],"sources":["config.ts"],"sourcesContent":["// @ts-ignore\nimport {deviceType, getUmdAssetsBaseUrl} from '@webex/common';\n\ndeclare const SDK_VERSION: string;\ndeclare const PACKAGE_VERSION: string;\n\nexport default {\n // TODO: this needs to be defaulted\n // to JS_SDK and clients set it to WEB or others\n // see https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-73167\n meetings: {\n deviceType: deviceType.WEB,\n mediaSettings: {\n pstn: false,\n },\n reconnection: {\n enabled: false,\n autoRejoin: true,\n detection: true,\n // Timeout duration to wait for ICE to reconnect if a disconnect is received.\n iceReconnectionTimeout: 10000,\n // Amount of times attempting to rejoin a meeting during reconnect\n maxRejoinAttempts: 3,\n },\n stats: {\n // Enable the webrtc stats analyzer that emits quality degradation events\n enableStatsAnalyzer: true,\n // Enable the auto downgrade video quality feature\n autoDowngradeEnabled: false,\n // 1 second intervals to collect stats data\n interval: 1000,\n // we just want to analyze data every 5 sec interval\n analyzerInterval: 5000,\n // hold the last 2 minute of a calls data\n historyMax: 120,\n // Once packet loss hits this ratio, the video will downgrade\n videoPacketLossRatioThreshold: 9, // comparison of packets lost / packets received\n rttThreshold: 500, // 500 ms noticeable quality lag begins based on bandwidth of user\n jitterThreshold: 500, // 500 ms noticeable quality lag begins based on bandwidth of user\n },\n metrics: {\n // change to your client name else data will be muddled\n // you do not need a specific format, and you do not need to register it\n clientName: 'WEBEX_JS_SDK',\n // TODO: for now this line has to be whitelisted, which is problematic for third party\n clientType: 'WEBEX_SDK',\n // Stores the sub client type used when sending metrics\n subClientType: 'WEB_APP',\n // send average values MQA in 60 second intervals\n mqaMetricsInterval: 60000,\n // send to cisco internal MQA data automatically\n // we already send CA\n autoSendMQA: true,\n },\n logging: {\n enable: true,\n verboseEvents: true,\n },\n resolution: {\n maxWidth: 1280,\n maxHeight: 720,\n idealWidth: 1280,\n idealHeight: 720,\n },\n screenResolution: {\n maxWidth: 1920,\n maxHeight: 1080,\n idealWidth: 1920,\n idealHeight: 1080,\n },\n bandwidth: {\n // please note, these are the maximum bandwidth values\n // the server supports, minimums have to be tested\n audio: 64000,\n video: 4000000,\n startBitrate: 2000,\n },\n screenFrameRate: 10,\n videoShareFrameRate: 30,\n aspectRatio: 1.7695852534562213,\n // When enabled, as calls are ended, it will upload the SDK logs and correlate them\n autoUploadLogs: true,\n enableRtx: true,\n receiveTranscription: false,\n enableExtmap: false,\n enableAutomaticLLM: false,\n assetsBaseUrl: getUmdAssetsBaseUrl('plugin-meetings', SDK_VERSION, PACKAGE_VERSION),\n installedOrgID: undefined,\n multipartSitePrefixList: ['.my.', '.mydmz.', '.mybts.', '.mydev.', '.myats2.', '.myats.'],\n experimental: {\n enableMediaNegotiatedEvent: false,\n enableUnifiedMeetings: true,\n enableAdhocMeetings: true,\n storeLocusHashTreeEventsForDebugging: false,\n },\n degradationPreferences: {\n maxMacroblocksLimit: 8192,\n },\n enableAv1SlidesSupport: false,\n // This only applies to non-multistream meetings\n iceCandidatesGatheringTimeout: undefined,\n backendIpv6NativeSupport: false,\n enableReachabilityChecks: true,\n reachabilityGetClusterTimeout: 5000,\n logUploadIntervalMultiplicationFactor: 0, // if set to 0 or undefined, logs won't be uploaded periodically, if you want periodic logs, recommended value is 1\n stopIceGatheringAfterFirstRelayCandidate: false,\n enableAudioTwccForMultistream: false,\n enablePerUdpUrlReachability: false, // true: separate peer connection per each UDP URL; false: single peer connection for all URLs\n locus: {\n excludedDataSets: ['attendees'], // attendees data set only applies to webinar attendees and we never really need that\n },\n },\n};\n"],"mappings":";;;;;;;AACA,IAAAA,OAAA,GAAAC,OAAA;AADA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMe;EACb;EACA;EACA;EACAC,QAAQ,EAAE;IACRC,UAAU,EAAEA,kBAAU,CAACC,GAAG;IAC1BC,aAAa,EAAE;MACbC,IAAI,EAAE;IACR,CAAC;IACDC,YAAY,EAAE;MACZC,OAAO,EAAE,KAAK;MACdC,UAAU,EAAE,IAAI;MAChBC,SAAS,EAAE,IAAI;MACf;MACAC,sBAAsB,EAAE,KAAK;MAC7B;MACAC,iBAAiB,EAAE;IACrB,CAAC;IACDC,KAAK,EAAE;MACL;MACAC,mBAAmB,EAAE,IAAI;MACzB;MACAC,oBAAoB,EAAE,KAAK;MAC3B;MACAC,QAAQ,EAAE,IAAI;MACd;MACAC,gBAAgB,EAAE,IAAI;MACtB;MACAC,UAAU,EAAE,GAAG;MACf;MACAC,6BAA6B,EAAE,CAAC;MAAE;MAClCC,YAAY,EAAE,GAAG;MAAE;MACnBC,eAAe,EAAE,GAAG,CAAE;IACxB,CAAC;IACDC,OAAO,EAAE;MACP;MACA;MACAC,UAAU,EAAE,cAAc;MAC1B;MACAC,UAAU,EAAE,WAAW;MACvB;MACAC,aAAa,EAAE,SAAS;MACxB;MACAC,kBAAkB,EAAE,KAAK;MACzB;MACA;MACAC,WAAW,EAAE;IACf,CAAC;IACDC,OAAO,EAAE;MACPC,MAAM,EAAE,IAAI;MACZC,aAAa,EAAE;IACjB,CAAC;IACDC,UAAU,EAAE;MACVC,QAAQ,EAAE,IAAI;MACdC,SAAS,EAAE,GAAG;MACdC,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C","ignoreList":[]}
1
+ {"version":3,"names":["_common","require","_default","exports","default","meetings","deviceType","WEB","mediaSettings","pstn","reconnection","enabled","autoRejoin","detection","iceReconnectionTimeout","maxRejoinAttempts","stats","enableStatsAnalyzer","autoDowngradeEnabled","interval","analyzerInterval","historyMax","videoPacketLossRatioThreshold","rttThreshold","jitterThreshold","metrics","clientName","clientType","subClientType","mqaMetricsInterval","autoSendMQA","logging","enable","verboseEvents","resolution","maxWidth","maxHeight","idealWidth","idealHeight","screenResolution","bandwidth","audio","video","startBitrate","screenFrameRate","videoShareFrameRate","aspectRatio","autoUploadLogs","enableRtx","receiveTranscription","enableExtmap","enableAutomaticLLM","enableE2ee","assetsBaseUrl","getUmdAssetsBaseUrl","installedOrgID","undefined","multipartSitePrefixList","experimental","enableMediaNegotiatedEvent","enableUnifiedMeetings","enableAdhocMeetings","storeLocusHashTreeEventsForDebugging","degradationPreferences","maxMacroblocksLimit","enableAv1SlidesSupport","iceCandidatesGatheringTimeout","backendIpv6NativeSupport","enableReachabilityChecks","reachabilityGetClusterTimeout","logUploadIntervalMultiplicationFactor","stopIceGatheringAfterFirstRelayCandidate","enableAudioTwccForMultistream","enablePerUdpUrlReachability","locus","excludedDataSets"],"sources":["config.ts"],"sourcesContent":["// @ts-ignore\nimport {deviceType, getUmdAssetsBaseUrl} from '@webex/common';\n\ndeclare const SDK_VERSION: string;\ndeclare const PACKAGE_VERSION: string;\n\nexport default {\n // TODO: this needs to be defaulted\n // to JS_SDK and clients set it to WEB or others\n // see https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-73167\n meetings: {\n deviceType: deviceType.WEB,\n mediaSettings: {\n pstn: false,\n },\n reconnection: {\n enabled: false,\n autoRejoin: true,\n detection: true,\n // Timeout duration to wait for ICE to reconnect if a disconnect is received.\n iceReconnectionTimeout: 10000,\n // Amount of times attempting to rejoin a meeting during reconnect\n maxRejoinAttempts: 3,\n },\n stats: {\n // Enable the webrtc stats analyzer that emits quality degradation events\n enableStatsAnalyzer: true,\n // Enable the auto downgrade video quality feature\n autoDowngradeEnabled: false,\n // 1 second intervals to collect stats data\n interval: 1000,\n // we just want to analyze data every 5 sec interval\n analyzerInterval: 5000,\n // hold the last 2 minute of a calls data\n historyMax: 120,\n // Once packet loss hits this ratio, the video will downgrade\n videoPacketLossRatioThreshold: 9, // comparison of packets lost / packets received\n rttThreshold: 500, // 500 ms noticeable quality lag begins based on bandwidth of user\n jitterThreshold: 500, // 500 ms noticeable quality lag begins based on bandwidth of user\n },\n metrics: {\n // change to your client name else data will be muddled\n // you do not need a specific format, and you do not need to register it\n clientName: 'WEBEX_JS_SDK',\n // TODO: for now this line has to be whitelisted, which is problematic for third party\n clientType: 'WEBEX_SDK',\n // Stores the sub client type used when sending metrics\n subClientType: 'WEB_APP',\n // send average values MQA in 60 second intervals\n mqaMetricsInterval: 60000,\n // send to cisco internal MQA data automatically\n // we already send CA\n autoSendMQA: true,\n },\n logging: {\n enable: true,\n verboseEvents: true,\n },\n resolution: {\n maxWidth: 1280,\n maxHeight: 720,\n idealWidth: 1280,\n idealHeight: 720,\n },\n screenResolution: {\n maxWidth: 1920,\n maxHeight: 1080,\n idealWidth: 1920,\n idealHeight: 1080,\n },\n bandwidth: {\n // please note, these are the maximum bandwidth values\n // the server supports, minimums have to be tested\n audio: 64000,\n video: 4000000,\n startBitrate: 2000,\n },\n screenFrameRate: 10,\n videoShareFrameRate: 30,\n aspectRatio: 1.7695852534562213,\n // When enabled, as calls are ended, it will upload the SDK logs and correlate them\n autoUploadLogs: true,\n enableRtx: true,\n receiveTranscription: false,\n enableExtmap: false,\n enableAutomaticLLM: false,\n enableE2ee: false,\n assetsBaseUrl: getUmdAssetsBaseUrl('plugin-meetings', SDK_VERSION, PACKAGE_VERSION),\n installedOrgID: undefined,\n multipartSitePrefixList: ['.my.', '.mydmz.', '.mybts.', '.mydev.', '.myats2.', '.myats.'],\n experimental: {\n enableMediaNegotiatedEvent: false,\n enableUnifiedMeetings: true,\n enableAdhocMeetings: true,\n storeLocusHashTreeEventsForDebugging: false,\n },\n degradationPreferences: {\n maxMacroblocksLimit: 8192,\n },\n enableAv1SlidesSupport: false,\n // This only applies to non-multistream meetings\n iceCandidatesGatheringTimeout: undefined,\n backendIpv6NativeSupport: false,\n enableReachabilityChecks: true,\n reachabilityGetClusterTimeout: 5000,\n logUploadIntervalMultiplicationFactor: 0, // if set to 0 or undefined, logs won't be uploaded periodically, if you want periodic logs, recommended value is 1\n stopIceGatheringAfterFirstRelayCandidate: false,\n enableAudioTwccForMultistream: false,\n enablePerUdpUrlReachability: false, // true: separate peer connection per each UDP URL; false: single peer connection for all URLs\n locus: {\n excludedDataSets: ['attendees'], // attendees data set only applies to webinar attendees and we never really need that\n },\n },\n};\n"],"mappings":";;;;;;;AACA,IAAAA,OAAA,GAAAC,OAAA;AADA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMe;EACb;EACA;EACA;EACAC,QAAQ,EAAE;IACRC,UAAU,EAAEA,kBAAU,CAACC,GAAG;IAC1BC,aAAa,EAAE;MACbC,IAAI,EAAE;IACR,CAAC;IACDC,YAAY,EAAE;MACZC,OAAO,EAAE,KAAK;MACdC,UAAU,EAAE,IAAI;MAChBC,SAAS,EAAE,IAAI;MACf;MACAC,sBAAsB,EAAE,KAAK;MAC7B;MACAC,iBAAiB,EAAE;IACrB,CAAC;IACDC,KAAK,EAAE;MACL;MACAC,mBAAmB,EAAE,IAAI;MACzB;MACAC,oBAAoB,EAAE,KAAK;MAC3B;MACAC,QAAQ,EAAE,IAAI;MACd;MACAC,gBAAgB,EAAE,IAAI;MACtB;MACAC,UAAU,EAAE,GAAG;MACf;MACAC,6BAA6B,EAAE,CAAC;MAAE;MAClCC,YAAY,EAAE,GAAG;MAAE;MACnBC,eAAe,EAAE,GAAG,CAAE;IACxB,CAAC;IACDC,OAAO,EAAE;MACP;MACA;MACAC,UAAU,EAAE,cAAc;MAC1B;MACAC,UAAU,EAAE,WAAW;MACvB;MACAC,aAAa,EA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wB,EAAE,IAAI;IAC9BC,6BAA6B,EAAE,IAAI;IACnCC,qCAAqC,EAAE,CAAC;IAAE;IAC1CC,wCAAwC,EAAE,KAAK;IAC/CC,6BAA6B,EAAE,KAAK;IACpCC,2BAA2B,EAAE,KAAK;IAAE;IACpCC,KAAK,EAAE;MACLC,gBAAgB,EAAE,CAAC,WAAW,CAAC,CAAE;IACnC;EACF;AACF,CAAC","ignoreList":[]}
@@ -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,OAA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pB,WAAW,CAACkC,MAAM,CAAC3C,eAAe,CAAC;cAExDuC,oBAAW,CAACC,MAAM,CAACC,IAAI,CAAC,sDAAsD,CAAC;cAACV,QAAA,CAAAE,IAAA;cAAA,OAC1E,IAAI,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.5"
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.5"
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, {