@webex/plugin-meetings 3.12.0-webex-services-ready.2 → 3.12.0-webex-services-ready.4
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/dist/aiEnableRequest/index.js +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/events.js +29 -14
- package/dist/breakouts/events.js.map +1 -1
- package/dist/breakouts/index.js +65 -2
- package/dist/breakouts/index.js.map +1 -1
- package/dist/constants.js +2 -1
- package/dist/constants.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +193 -23
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/index.js +141 -56
- package/dist/locus-info/index.js.map +1 -1
- package/dist/media/properties.js +3 -5
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/index.js +351 -52
- package/dist/meeting/index.js.map +1 -1
- package/dist/meetings/index.js +25 -0
- package/dist/meetings/index.js.map +1 -1
- package/dist/metrics/constants.js +3 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/roap/turnDiscovery.js +8 -1
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +51 -3
- package/dist/types/locus-info/index.d.ts +19 -4
- package/dist/types/media/properties.d.ts +5 -2
- package/dist/types/meeting/index.d.ts +63 -1
- package/dist/types/meetings/index.d.ts +8 -0
- package/dist/types/metrics/constants.d.ts +2 -0
- package/dist/webinar/index.js +4 -4
- package/dist/webinar/index.js.map +1 -1
- package/package.json +23 -23
- package/src/breakouts/events.ts +33 -11
- package/src/breakouts/index.ts +79 -1
- package/src/constants.ts +1 -0
- package/src/hashTree/hashTreeParser.ts +254 -18
- package/src/locus-info/index.ts +143 -51
- package/src/media/properties.ts +7 -3
- package/src/meeting/index.ts +329 -25
- package/src/meetings/index.ts +35 -1
- package/src/metrics/constants.ts +2 -0
- package/src/roap/turnDiscovery.ts +9 -1
- package/src/webinar/index.ts +2 -2
- package/test/unit/spec/breakouts/events.ts +120 -2
- package/test/unit/spec/breakouts/index.ts +142 -2
- package/test/unit/spec/hashTree/hashTreeParser.ts +556 -3
- package/test/unit/spec/locus-info/index.js +148 -5
- package/test/unit/spec/media/properties.ts +23 -23
- package/test/unit/spec/meeting/index.js +832 -126
- package/test/unit/spec/meetings/index.js +116 -12
- package/test/unit/spec/roap/turnDiscovery.ts +20 -0
- package/test/unit/spec/webinar/index.ts +3 -3
package/dist/meetings/index.js
CHANGED
|
@@ -29,6 +29,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/he
|
|
|
29
29
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
30
30
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
|
31
31
|
var _lodash = require("lodash");
|
|
32
|
+
var _webCapabilities = require("@webex/web-capabilities");
|
|
32
33
|
require("@webex/internal-plugin-mercury");
|
|
33
34
|
require("@webex/internal-plugin-conversation");
|
|
34
35
|
require("@webex/internal-plugin-metrics");
|
|
@@ -204,6 +205,29 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
204
205
|
(0, _defineProperty2.default)(_this, "breakoutLocusForHandleLater", void 0);
|
|
205
206
|
(0, _defineProperty2.default)(_this, "namespace", _constants.MEETINGS);
|
|
206
207
|
(0, _defineProperty2.default)(_this, "registrationStatus", void 0);
|
|
208
|
+
/**
|
|
209
|
+
* Emits a metric describing how well this browser runs WebAssembly, used to spot browsers
|
|
210
|
+
* where real-time WASM effects (e.g. background noise removal) run poorly.
|
|
211
|
+
*
|
|
212
|
+
* @param {string} correlationId - correlation id to report the result against
|
|
213
|
+
* @returns {void}
|
|
214
|
+
*/
|
|
215
|
+
(0, _defineProperty2.default)(_this, "emitWasmRuntimePerformance", (0, _lodash.once)(function (correlationId) {
|
|
216
|
+
// This check is designed to swallow any probe/metrics failure so it can never break meeting
|
|
217
|
+
// creation, while still reporting the status so we can track browsers with WASM issues.
|
|
218
|
+
_webCapabilities.WasmRuntimeProbe.check().then(function (result) {
|
|
219
|
+
_loggerProxy.default.logger.log("Meetings:index#emitWasmRuntimePerformance --> WASM runtime performance status: ".concat(result.status, ", ratio: ").concat(result.ratio, ", wasmMs: ").concat(result.wasmMs, ", jsMs: ").concat(result.jsMs));
|
|
220
|
+
return _metrics.default.sendBehavioralMetric(_constants2.default.WASM_RUNTIME_PERFORMANCE, {
|
|
221
|
+
status: result.status,
|
|
222
|
+
ratio: result.ratio,
|
|
223
|
+
wasmMs: result.wasmMs,
|
|
224
|
+
jsMs: result.jsMs,
|
|
225
|
+
correlation_id: correlationId
|
|
226
|
+
});
|
|
227
|
+
}).catch(function (error) {
|
|
228
|
+
_loggerProxy.default.logger.error("Meetings:index#emitWasmRuntimePerformance --> ERROR, failed to probe or report WASM runtime performance: ".concat(error.message));
|
|
229
|
+
});
|
|
230
|
+
}));
|
|
207
231
|
/**
|
|
208
232
|
* Creates a noise reduction effect
|
|
209
233
|
*
|
|
@@ -1477,6 +1501,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1477
1501
|
});
|
|
1478
1502
|
}
|
|
1479
1503
|
});
|
|
1504
|
+
_this1.emitWasmRuntimePerformance(createdMeeting.correlationId);
|
|
1480
1505
|
} else {
|
|
1481
1506
|
_loggerProxy.default.logger.error("Meetings:index#create --> ERROR, meeting does not have on method, will not be destroyed, meeting cleanup impossible for meeting: ".concat(meeting));
|
|
1482
1507
|
}
|