@webex/plugin-meetings 3.12.0-next.102 → 3.12.0-next.104
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 +147 -19
- 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 +56 -33
- package/dist/locus-info/index.js.map +1 -1
- package/dist/meeting/index.js +284 -37
- 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 +2 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +40 -3
- package/dist/types/locus-info/index.d.ts +10 -4
- package/dist/types/meeting/index.d.ts +54 -1
- package/dist/types/meetings/index.d.ts +8 -0
- package/dist/types/metrics/constants.d.ts +1 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +14 -14
- 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 +209 -17
- package/src/locus-info/index.ts +45 -18
- package/src/meeting/index.ts +246 -4
- package/src/meetings/index.ts +35 -1
- package/src/metrics/constants.ts +1 -0
- 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 +440 -3
- package/test/unit/spec/locus-info/index.js +45 -5
- package/test/unit/spec/meeting/index.js +389 -0
- package/test/unit/spec/meetings/index.js +104 -0
package/dist/meeting/index.js
CHANGED
|
@@ -17,6 +17,8 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
17
17
|
});
|
|
18
18
|
exports.default = exports.ScreenShareFloorStatus = exports.MEDIA_UPDATE_TYPE = void 0;
|
|
19
19
|
exports.storeEventForDebugging = storeEventForDebugging;
|
|
20
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
|
|
21
|
+
var _set = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/set"));
|
|
20
22
|
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/json/stringify"));
|
|
21
23
|
var _values = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/values"));
|
|
22
24
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
@@ -24,7 +26,6 @@ var _map = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/map"))
|
|
|
24
26
|
var _isNan = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/number/is-nan"));
|
|
25
27
|
var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
|
|
26
28
|
var _weakMap = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/weak-map"));
|
|
27
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
|
|
28
29
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/typeof"));
|
|
29
30
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
|
|
30
31
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
@@ -572,6 +573,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
572
573
|
(0, _defineProperty3.default)(_this, "isMoveToInProgress", false);
|
|
573
574
|
(0, _defineProperty3.default)(_this, "registrationIdStatus", void 0);
|
|
574
575
|
(0, _defineProperty3.default)(_this, "brbState", void 0);
|
|
576
|
+
(0, _defineProperty3.default)(_this, "emittedBreakoutJoinResponseMoveIds", new _set.default());
|
|
575
577
|
(0, _defineProperty3.default)(_this, "promisesWaitingForPropUpdate", {});
|
|
576
578
|
(0, _defineProperty3.default)(_this, "voiceaListenerCallbacks", (0, _defineProperty3.default)((0, _defineProperty3.default)((0, _defineProperty3.default)((0, _defineProperty3.default)({}, _internalPluginVoicea.EVENT_TRIGGERS.VOICEA_ANNOUNCEMENT, function (payload) {
|
|
577
579
|
_this.transcription.languageOptions = payload;
|
|
@@ -634,7 +636,17 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
634
636
|
if (_this.config.experimental.storeLocusHashTreeEventsForDebugging) {
|
|
635
637
|
storeEventForDebugging('llm', event.data);
|
|
636
638
|
}
|
|
639
|
+
var trackingId = event.trackingId;
|
|
637
640
|
_this.locusInfo.parse(_this, event.data);
|
|
641
|
+
|
|
642
|
+
// Only the client whose /sync request tracking id matches the tracking id echoed back on this
|
|
643
|
+
// LLM message should emit client.locus.sync.complete. The tracking id lives at the top level
|
|
644
|
+
// of the received LLM event envelope. When it is absent there is nothing to correlate, so
|
|
645
|
+
// skip. onLocusSyncLlmMessage records the LLM arrival time and is a no-op unless a stored
|
|
646
|
+
// record for this meeting matches the tracking id.
|
|
647
|
+
if (trackingId) {
|
|
648
|
+
_this.onLocusSyncLlmMessage(_this.id, trackingId);
|
|
649
|
+
}
|
|
638
650
|
} else {
|
|
639
651
|
_loggerProxy.default.logger.warn("Meeting:index#processLocusLLMEvent --> Unknown event type: ".concat(event.data.eventType));
|
|
640
652
|
}
|
|
@@ -2220,7 +2232,42 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2220
2232
|
* @memberof Meeting
|
|
2221
2233
|
*/
|
|
2222
2234
|
// @ts-ignore - Fix type
|
|
2223
|
-
_this.locusInfo = new _locusInfo.default(
|
|
2235
|
+
_this.locusInfo = new _locusInfo.default({
|
|
2236
|
+
updateMeeting: _this.updateMeetingObject.bind(_this),
|
|
2237
|
+
syncLatencyTracker: {
|
|
2238
|
+
// Compute/store latency timestamps live on CallDiagnosticLatencies, while
|
|
2239
|
+
// submitting the client.locus.sync.complete CA event is owned by the metrics
|
|
2240
|
+
// facade. Wire each method to the layer that owns that responsibility.
|
|
2241
|
+
saveLatency: function saveLatency() {
|
|
2242
|
+
var _this$webex$internal$5;
|
|
2243
|
+
return (
|
|
2244
|
+
// @ts-ignore
|
|
2245
|
+
(_this$webex$internal$5 = _this.webex.internal.newMetrics.callDiagnosticLatencies).saveLatency.apply(_this$webex$internal$5, arguments)
|
|
2246
|
+
);
|
|
2247
|
+
},
|
|
2248
|
+
saveTimestamp: function saveTimestamp(saveTimestampOptions) {
|
|
2249
|
+
var _saveTimestampOptions;
|
|
2250
|
+
// @ts-ignore
|
|
2251
|
+
_this.webex.internal.newMetrics.callDiagnosticLatencies.saveTimestamp(saveTimestampOptions);
|
|
2252
|
+
|
|
2253
|
+
// The /sync response is one of the two milestones (the other is the LLM message) that
|
|
2254
|
+
// complete client.locus.sync.complete. Try to complete now: the metric is emitted only
|
|
2255
|
+
// once both the LLM message and the /sync response have arrived (either can come first).
|
|
2256
|
+
if (saveTimestampOptions.key === 'internal.client.locus.sync.response' && (_saveTimestampOptions = saveTimestampOptions.options) !== null && _saveTimestampOptions !== void 0 && _saveTimestampOptions.trackingId) {
|
|
2257
|
+
_this.tryCompleteLocusSyncLatency(saveTimestampOptions.options.meetingId, saveTimestampOptions.options.trackingId);
|
|
2258
|
+
}
|
|
2259
|
+
},
|
|
2260
|
+
clearLocusSyncLatency: function clearLocusSyncLatency() {
|
|
2261
|
+
var _this$webex$internal$6;
|
|
2262
|
+
return (
|
|
2263
|
+
// @ts-ignore
|
|
2264
|
+
(_this$webex$internal$6 = _this.webex.internal.newMetrics.callDiagnosticLatencies).clearLocusSyncLatency.apply(_this$webex$internal$6, arguments)
|
|
2265
|
+
);
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
},
|
|
2269
|
+
// @ts-ignore
|
|
2270
|
+
_this.webex, _this.id);
|
|
2224
2271
|
|
|
2225
2272
|
// We had to add listeners first before setting up the locus instance
|
|
2226
2273
|
/**
|
|
@@ -3249,6 +3296,85 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3249
3296
|
});
|
|
3250
3297
|
}
|
|
3251
3298
|
|
|
3299
|
+
/**
|
|
3300
|
+
* Handles the LLM state-update message that resulted from a Locus /sync. Records the LLM arrival
|
|
3301
|
+
* time (the milestone that gates client.locus.sync.complete - the metric is emitted only for LLM
|
|
3302
|
+
* flows) and then tries to complete the metric.
|
|
3303
|
+
* @param {string} meetingId meeting id
|
|
3304
|
+
* @param {string} trackingId sync tracking id echoed back on the LLM message
|
|
3305
|
+
* @returns {void}
|
|
3306
|
+
* @private
|
|
3307
|
+
* @memberof Meeting
|
|
3308
|
+
*/
|
|
3309
|
+
}, {
|
|
3310
|
+
key: "onLocusSyncLlmMessage",
|
|
3311
|
+
value: function onLocusSyncLlmMessage(meetingId, trackingId) {
|
|
3312
|
+
// @ts-ignore
|
|
3313
|
+
this.webex.internal.newMetrics.callDiagnosticLatencies.recordLocusSyncMessageReceived(meetingId, trackingId);
|
|
3314
|
+
this.tryCompleteLocusSyncLatency(meetingId, trackingId);
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
/**
|
|
3318
|
+
* Attempts to complete the Locus sync latency metric and emit client.locus.sync.complete. The
|
|
3319
|
+
* metric is emitted only once BOTH the /sync response and the resulting LLM message have arrived
|
|
3320
|
+
* (in either order); until then the record is kept so the missing milestone can still land. Both
|
|
3321
|
+
* trigger points (the LLM message handler and the /sync response timestamp) call this, so the
|
|
3322
|
+
* metric fires as soon as the second milestone is in.
|
|
3323
|
+
* @param {string} meetingId meeting id
|
|
3324
|
+
* @param {string} trackingId sync tracking id used to match the pending record
|
|
3325
|
+
* @returns {void}
|
|
3326
|
+
* @private
|
|
3327
|
+
* @memberof Meeting
|
|
3328
|
+
*/
|
|
3329
|
+
}, {
|
|
3330
|
+
key: "tryCompleteLocusSyncLatency",
|
|
3331
|
+
value: function tryCompleteLocusSyncLatency(meetingId, trackingId) {
|
|
3332
|
+
var completed =
|
|
3333
|
+
// @ts-ignore
|
|
3334
|
+
this.webex.internal.newMetrics.callDiagnosticLatencies.completeLocusSyncLatency(meetingId, trackingId);
|
|
3335
|
+
if (completed) {
|
|
3336
|
+
this.emitLocusSyncCompleteMetric(meetingId, completed);
|
|
3337
|
+
}
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
/**
|
|
3341
|
+
* Submits the client.locus.sync.complete Call Analyzer event for a completed Locus sync latency
|
|
3342
|
+
* measurement.
|
|
3343
|
+
* @param {string} meetingId meeting id
|
|
3344
|
+
* @param {object} completed completed sync latency payload from the metrics plugin
|
|
3345
|
+
* @returns {void}
|
|
3346
|
+
* @private
|
|
3347
|
+
* @memberof Meeting
|
|
3348
|
+
*/
|
|
3349
|
+
}, {
|
|
3350
|
+
key: "emitLocusSyncCompleteMetric",
|
|
3351
|
+
value: function emitLocusSyncCompleteMetric(meetingId, completed) {
|
|
3352
|
+
var _this$webex$internal$7, _this$webex$internal$8;
|
|
3353
|
+
// @ts-ignore
|
|
3354
|
+
var llmWebsocketUrl = ((_this$webex$internal$7 = this.webex.internal.llm) === null || _this$webex$internal$7 === void 0 ? void 0 : (_this$webex$internal$8 = _this$webex$internal$7.getWebSocketUrl) === null || _this$webex$internal$8 === void 0 ? void 0 : _this$webex$internal$8.call(_this$webex$internal$7)) || undefined;
|
|
3355
|
+
|
|
3356
|
+
// Per the LLM sync-latency spec, the event carries the LLM websocket url identifier,
|
|
3357
|
+
// the llmInfo.dataSet (main, atd-active or atd-unmuted) and the syncLatency block.
|
|
3358
|
+
var clientEvent = {
|
|
3359
|
+
name: 'client.locus.sync.complete',
|
|
3360
|
+
payload: {
|
|
3361
|
+
identifiers: {
|
|
3362
|
+
llmWebsocketUrl: llmWebsocketUrl
|
|
3363
|
+
},
|
|
3364
|
+
llmInfo: {
|
|
3365
|
+
dataSet: completed.dataSet
|
|
3366
|
+
},
|
|
3367
|
+
syncLatency: completed.syncLatency
|
|
3368
|
+
},
|
|
3369
|
+
options: {
|
|
3370
|
+
meetingId: meetingId
|
|
3371
|
+
}
|
|
3372
|
+
};
|
|
3373
|
+
|
|
3374
|
+
// @ts-ignore
|
|
3375
|
+
this.webex.internal.newMetrics.submitClientEvent(clientEvent);
|
|
3376
|
+
}
|
|
3377
|
+
|
|
3252
3378
|
/**
|
|
3253
3379
|
* Proxy function for all the listener set ups
|
|
3254
3380
|
* @returns {undefined}
|
|
@@ -6735,9 +6861,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6735
6861
|
key: "restoreLLMSubscriptionsIfNeeded",
|
|
6736
6862
|
value: function restoreLLMSubscriptionsIfNeeded() {
|
|
6737
6863
|
try {
|
|
6738
|
-
var _this$webex$internal$
|
|
6864
|
+
var _this$webex$internal$9, _this$webex$internal$0;
|
|
6739
6865
|
// @ts-ignore
|
|
6740
|
-
var isCaptionBoxOn = (_this$webex$internal$
|
|
6866
|
+
var isCaptionBoxOn = (_this$webex$internal$9 = this.webex.internal.voicea) === null || _this$webex$internal$9 === void 0 ? void 0 : (_this$webex$internal$0 = _this$webex$internal$9.getIsCaptionBoxOn) === null || _this$webex$internal$0 === void 0 ? void 0 : _this$webex$internal$0.call(_this$webex$internal$9);
|
|
6741
6867
|
if (!isCaptionBoxOn) {
|
|
6742
6868
|
return;
|
|
6743
6869
|
}
|
|
@@ -6958,7 +7084,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6958
7084
|
_this34.webex.internal.llm.off('online', _this34.handleLLMOnline);
|
|
6959
7085
|
// @ts-ignore
|
|
6960
7086
|
_this34.webex.internal.llm.on('online', _this34.handleLLMOnline);
|
|
6961
|
-
_this34.updateLLMConnection(
|
|
7087
|
+
_this34.updateLLMConnection({
|
|
7088
|
+
isInitialJoinPhase: true
|
|
7089
|
+
}).catch(function (error) {
|
|
6962
7090
|
_loggerProxy.default.logger.error('Meeting:index#join --> Transcription Socket Connection Failed', error);
|
|
6963
7091
|
_metrics.default.sendBehavioralMetric(_constants2.default.LLM_CONNECTION_AFTER_JOIN_FAILURE, {
|
|
6964
7092
|
correlation_id: _this34.correlationId,
|
|
@@ -7174,6 +7302,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7174
7302
|
/**
|
|
7175
7303
|
* Connects to low latency mercury and reconnects if the address has changed
|
|
7176
7304
|
* It will also disconnect if called when the meeting has ended
|
|
7305
|
+
* @param {Object} [options]
|
|
7306
|
+
* @param {boolean} [options.isInitialJoinPhase] true when called from initial join flow
|
|
7177
7307
|
* @returns {Promise}
|
|
7178
7308
|
*/
|
|
7179
7309
|
)
|
|
@@ -7182,12 +7312,31 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7182
7312
|
value: (function () {
|
|
7183
7313
|
var _updateLLMConnection = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee22() {
|
|
7184
7314
|
var _this36 = this;
|
|
7185
|
-
var _ref40,
|
|
7315
|
+
var _ref40,
|
|
7316
|
+
_ref40$isInitialJoinP,
|
|
7317
|
+
isInitialJoinPhase,
|
|
7318
|
+
_ref41,
|
|
7319
|
+
_ref41$url,
|
|
7320
|
+
url,
|
|
7321
|
+
_ref41$info,
|
|
7322
|
+
_ref41$info2,
|
|
7323
|
+
_ref41$info2$datachan,
|
|
7324
|
+
datachannelUrl,
|
|
7325
|
+
isJoined,
|
|
7326
|
+
dataChannelUrl,
|
|
7327
|
+
_this$webex$internal$1,
|
|
7328
|
+
currentOwner,
|
|
7329
|
+
wasConnected,
|
|
7330
|
+
datachannelToken,
|
|
7331
|
+
refreshHandlerOwnerMeetingId,
|
|
7332
|
+
shouldAlignRefreshHandlerAfterOwnershipClaim,
|
|
7333
|
+
_args22 = arguments;
|
|
7186
7334
|
return _regenerator.default.wrap(function (_context22) {
|
|
7187
7335
|
while (1) switch (_context22.prev = _context22.next) {
|
|
7188
7336
|
case 0:
|
|
7337
|
+
_ref40 = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {}, _ref40$isInitialJoinP = _ref40.isInitialJoinPhase, isInitialJoinPhase = _ref40$isInitialJoinP === void 0 ? false : _ref40$isInitialJoinP;
|
|
7189
7338
|
// @ts-ignore - Fix type
|
|
7190
|
-
|
|
7339
|
+
_ref41 = this.locusInfo || {}, _ref41$url = _ref41.url, url = _ref41$url === void 0 ? undefined : _ref41$url, _ref41$info = _ref41.info, _ref41$info2 = _ref41$info === void 0 ? {} : _ref41$info, _ref41$info2$datachan = _ref41$info2.datachannelUrl, datachannelUrl = _ref41$info2$datachan === void 0 ? undefined : _ref41$info2$datachan;
|
|
7191
7340
|
isJoined = this.isJoined();
|
|
7192
7341
|
dataChannelUrl = datachannelUrl; // Ownership guard: when the default LLM session is already connected and
|
|
7193
7342
|
// owned by a *different* Meeting instance, do not disconnect or reconfigure
|
|
@@ -7196,7 +7345,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7196
7345
|
// connection when this meeting is the current owner, or when no owner is
|
|
7197
7346
|
// set yet (first claim).
|
|
7198
7347
|
// @ts-ignore - Fix type
|
|
7199
|
-
_this$webex$internal$
|
|
7348
|
+
_this$webex$internal$1 = this.webex.internal.llm.resolveSessionOwnership(this.id, _constants.LLM_DEFAULT_SESSION), currentOwner = _this$webex$internal$1.currentOwner; // Capture connectivity before any reconnect attempt. If LLM was already
|
|
7200
7349
|
// connected, we must respect current ownership. If it was disconnected,
|
|
7201
7350
|
// this flow may reclaim stale owner tags after a fresh connect.
|
|
7202
7351
|
// @ts-ignore - Fix type
|
|
@@ -7304,7 +7453,34 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7304
7453
|
_this36.webex.internal.llm.on(_constants.LOCUS_LLM_EVENT, _this36.processLocusLLMEvent);
|
|
7305
7454
|
_loggerProxy.default.logger.info('Meeting:index#updateLLMConnection --> enabled to receive relay events!');
|
|
7306
7455
|
_this36.startLLMHealthCheckTimer();
|
|
7456
|
+
if (registerAndConnectResult) {
|
|
7457
|
+
var _this36$breakouts;
|
|
7458
|
+
if (isInitialJoinPhase) {
|
|
7459
|
+
_this36.sendLLMConnectMetric(registerAndConnectResult);
|
|
7460
|
+
}
|
|
7461
|
+
(_this36$breakouts = _this36.breakouts) === null || _this36$breakouts === void 0 ? void 0 : _this36$breakouts.trigger(_constants.BREAKOUTS.EVENTS.LLM_CONNECT_RESPONSE, {
|
|
7462
|
+
meeting: _this36,
|
|
7463
|
+
llmLatency: registerAndConnectResult
|
|
7464
|
+
});
|
|
7465
|
+
}
|
|
7307
7466
|
return _promise.default.resolve(registerAndConnectResult);
|
|
7467
|
+
}).catch(function (error) {
|
|
7468
|
+
var _error$timing$clientL, _error$timing, _this36$breakouts2;
|
|
7469
|
+
// Prefer the partial timing registerAndConnect attaches when register succeeded but the
|
|
7470
|
+
// websocket connect() failed, so a ws failure isn't misreported as register never completing.
|
|
7471
|
+
var llmLatency = {
|
|
7472
|
+
clientLLMDatachannelResponseTime: (_error$timing$clientL = error === null || error === void 0 ? void 0 : (_error$timing = error.timing) === null || _error$timing === void 0 ? void 0 : _error$timing.clientLLMDatachannelResponseTime) !== null && _error$timing$clientL !== void 0 ? _error$timing$clientL : 0,
|
|
7473
|
+
clientLLMWebSocketConnectTime: 0
|
|
7474
|
+
};
|
|
7475
|
+
if (isInitialJoinPhase) {
|
|
7476
|
+
_this36.sendLLMConnectMetric(llmLatency, error);
|
|
7477
|
+
}
|
|
7478
|
+
(_this36$breakouts2 = _this36.breakouts) === null || _this36$breakouts2 === void 0 ? void 0 : _this36$breakouts2.trigger(_constants.BREAKOUTS.EVENTS.LLM_CONNECT_RESPONSE, {
|
|
7479
|
+
meeting: _this36,
|
|
7480
|
+
llmLatency: llmLatency,
|
|
7481
|
+
error: error
|
|
7482
|
+
});
|
|
7483
|
+
return _promise.default.reject(error);
|
|
7308
7484
|
}));
|
|
7309
7485
|
case 5:
|
|
7310
7486
|
case "end":
|
|
@@ -7317,6 +7493,78 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7317
7493
|
}
|
|
7318
7494
|
return updateLLMConnection;
|
|
7319
7495
|
}()
|
|
7496
|
+
/**
|
|
7497
|
+
* Ensures breakout join response metric with LLM latency is emitted only once per breakout move id.
|
|
7498
|
+
* @param {string | undefined} breakoutMoveId
|
|
7499
|
+
* @param {boolean} [hasLLMLatency=false]
|
|
7500
|
+
* @returns {boolean}
|
|
7501
|
+
*/
|
|
7502
|
+
)
|
|
7503
|
+
}, {
|
|
7504
|
+
key: "shouldEmitBreakoutJoinResponseMetric",
|
|
7505
|
+
value: function shouldEmitBreakoutJoinResponseMetric(breakoutMoveId) {
|
|
7506
|
+
var hasLLMLatency = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
7507
|
+
if (!breakoutMoveId) {
|
|
7508
|
+
return false;
|
|
7509
|
+
}
|
|
7510
|
+
if (!hasLLMLatency) {
|
|
7511
|
+
// When automatic LLM is enabled, updateLLMConnection will emit this same breakout join
|
|
7512
|
+
// response after the LLM connection finishes, including llmLatency and llmWebsocketUrl.
|
|
7513
|
+
// Suppress the earlier non-LLM event to avoid sending two events for the same move id,
|
|
7514
|
+
// where the first one would be missing the LLM-specific fields we want to validate.
|
|
7515
|
+
// @ts-ignore - config coming from registerPlugin
|
|
7516
|
+
return !this.config.enableAutomaticLLM;
|
|
7517
|
+
}
|
|
7518
|
+
if (this.emittedBreakoutJoinResponseMoveIds.has(breakoutMoveId)) {
|
|
7519
|
+
return false;
|
|
7520
|
+
}
|
|
7521
|
+
this.emittedBreakoutJoinResponseMoveIds.add(breakoutMoveId);
|
|
7522
|
+
return true;
|
|
7523
|
+
}
|
|
7524
|
+
|
|
7525
|
+
/**
|
|
7526
|
+
* Sends LLM connect latencies for initial join flow.
|
|
7527
|
+
* @param {RegisterAndConnectTiming} timings
|
|
7528
|
+
* @param {any} [error]
|
|
7529
|
+
* @returns {void}
|
|
7530
|
+
*/
|
|
7531
|
+
}, {
|
|
7532
|
+
key: "sendLLMConnectMetric",
|
|
7533
|
+
value: function sendLLMConnectMetric(timings, error) {
|
|
7534
|
+
var _this$webex$internal$10, _this$webex$internal$11;
|
|
7535
|
+
// @ts-ignore
|
|
7536
|
+
var llmWebsocketUrl = ((_this$webex$internal$10 = (_this$webex$internal$11 = this.webex.internal.llm).getWebSocketUrl) === null || _this$webex$internal$10 === void 0 ? void 0 : _this$webex$internal$10.call(_this$webex$internal$11)) || undefined;
|
|
7537
|
+
var _ref42 = timings || {},
|
|
7538
|
+
_ref42$clientLLMDatac = _ref42.clientLLMDatachannelResponseTime,
|
|
7539
|
+
clientLLMDatachannelResponseTime = _ref42$clientLLMDatac === void 0 ? 0 : _ref42$clientLLMDatac,
|
|
7540
|
+
clientLLMWebSocketConnectTime = _ref42.clientLLMWebSocketConnectTime;
|
|
7541
|
+
var llmLatency = {
|
|
7542
|
+
clientLLMDatachannelResponseTime: clientLLMDatachannelResponseTime
|
|
7543
|
+
};
|
|
7544
|
+
if (clientLLMWebSocketConnectTime !== undefined) {
|
|
7545
|
+
llmLatency.clientLLMWebSocketConnectTime = clientLLMWebSocketConnectTime;
|
|
7546
|
+
}
|
|
7547
|
+
var payload = {
|
|
7548
|
+
identifiers: {
|
|
7549
|
+
llmWebsocketUrl: llmWebsocketUrl
|
|
7550
|
+
},
|
|
7551
|
+
llmLatency: llmLatency
|
|
7552
|
+
};
|
|
7553
|
+
var options = _objectSpread({
|
|
7554
|
+
meetingId: this.id
|
|
7555
|
+
}, error && {
|
|
7556
|
+
rawError: error
|
|
7557
|
+
});
|
|
7558
|
+
var metricEvent = {
|
|
7559
|
+
name: 'client.llm.connect.response',
|
|
7560
|
+
payload: payload,
|
|
7561
|
+
options: options
|
|
7562
|
+
};
|
|
7563
|
+
|
|
7564
|
+
// @ts-ignore
|
|
7565
|
+
this.webex.internal.newMetrics.submitClientEvent(metricEvent);
|
|
7566
|
+
}
|
|
7567
|
+
|
|
7320
7568
|
/**
|
|
7321
7569
|
* Use phone for meeting audio
|
|
7322
7570
|
* @param {String} phoneNumber If provided, it will dial-out using this number. If not provided, dial-in will be used
|
|
@@ -7324,7 +7572,6 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7324
7572
|
* @public
|
|
7325
7573
|
* @memberof Meeting
|
|
7326
7574
|
*/
|
|
7327
|
-
)
|
|
7328
7575
|
}, {
|
|
7329
7576
|
key: "usePhoneAudio",
|
|
7330
7577
|
value: function usePhoneAudio(phoneNumber) {
|
|
@@ -7894,7 +8141,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7894
8141
|
key: "waitForMediaConnectionConnected",
|
|
7895
8142
|
value: (function () {
|
|
7896
8143
|
var _waitForMediaConnectionConnected = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee27() {
|
|
7897
|
-
var
|
|
8144
|
+
var _ref44, iceConnected, _this$mediaProperties9, _this$mediaProperties0, _this$mediaProperties1, _this$mediaProperties10, _this$mediaProperties11, _this$mediaProperties12, _this$mediaProperties13, _t17, _t18, _t19, _t20, _t21, _t22, _t23, _t24, _t25, _t26, _t27, _t28, _t29, _t30, _t31;
|
|
7898
8145
|
return _regenerator.default.wrap(function (_context27) {
|
|
7899
8146
|
while (1) switch (_context27.prev = _context27.next) {
|
|
7900
8147
|
case 0:
|
|
@@ -7907,7 +8154,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7907
8154
|
case 2:
|
|
7908
8155
|
_context27.prev = 2;
|
|
7909
8156
|
_t17 = _context27["catch"](0);
|
|
7910
|
-
|
|
8157
|
+
_ref44 = _t17, iceConnected = _ref44.iceConnected;
|
|
7911
8158
|
if (this.hasMediaConnectionConnectedAtLeastOnce) {
|
|
7912
8159
|
_context27.next = 4;
|
|
7913
8160
|
break;
|
|
@@ -8713,7 +8960,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8713
8960
|
_this$mediaProperties33,
|
|
8714
8961
|
_this$mediaProperties34,
|
|
8715
8962
|
_reachabilityMetrics,
|
|
8716
|
-
|
|
8963
|
+
_ref45,
|
|
8717
8964
|
_connectionType,
|
|
8718
8965
|
_selectedCandidatePairChanges,
|
|
8719
8966
|
_numTransports,
|
|
@@ -8911,10 +9158,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8911
9158
|
case 19:
|
|
8912
9159
|
_t38 = _context38.sent;
|
|
8913
9160
|
case 20:
|
|
8914
|
-
|
|
8915
|
-
_connectionType =
|
|
8916
|
-
_selectedCandidatePairChanges =
|
|
8917
|
-
_numTransports =
|
|
9161
|
+
_ref45 = _t38;
|
|
9162
|
+
_connectionType = _ref45.connectionType;
|
|
9163
|
+
_selectedCandidatePairChanges = _ref45.selectedCandidatePairChanges;
|
|
9164
|
+
_numTransports = _ref45.numTransports;
|
|
8918
9165
|
_iceCandidateErrors = Object.fromEntries(this.iceCandidateErrors);
|
|
8919
9166
|
_metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_FAILURE, _objectSpread(_objectSpread(_objectSpread({
|
|
8920
9167
|
correlation_id: this.correlationId,
|
|
@@ -9236,7 +9483,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9236
9483
|
_loggerProxy.default.logger.log('Meeting:index#leave --> Leaving a meeting');
|
|
9237
9484
|
this.stopListeningForMeetingEvents();
|
|
9238
9485
|
return _util2.default.leaveMeeting(this, options).then(/*#__PURE__*/function () {
|
|
9239
|
-
var
|
|
9486
|
+
var _ref46 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee40(leave) {
|
|
9240
9487
|
return _regenerator.default.wrap(function (_context40) {
|
|
9241
9488
|
while (1) switch (_context40.prev = _context40.next) {
|
|
9242
9489
|
case 0:
|
|
@@ -9272,7 +9519,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9272
9519
|
}, _callee40);
|
|
9273
9520
|
}));
|
|
9274
9521
|
return function (_x39) {
|
|
9275
|
-
return
|
|
9522
|
+
return _ref46.apply(this, arguments);
|
|
9276
9523
|
};
|
|
9277
9524
|
}()).catch(function (error) {
|
|
9278
9525
|
// CA team recommends submitting this *after* locus /leave
|
|
@@ -9938,7 +10185,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9938
10185
|
});
|
|
9939
10186
|
this.stopListeningForMeetingEvents();
|
|
9940
10187
|
return _util2.default.endMeetingForAll(this).then(/*#__PURE__*/function () {
|
|
9941
|
-
var
|
|
10188
|
+
var _ref47 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee41(end) {
|
|
9942
10189
|
return _regenerator.default.wrap(function (_context41) {
|
|
9943
10190
|
while (1) switch (_context41.prev = _context41.next) {
|
|
9944
10191
|
case 0:
|
|
@@ -9959,7 +10206,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9959
10206
|
}, _callee41);
|
|
9960
10207
|
}));
|
|
9961
10208
|
return function (_x40) {
|
|
9962
|
-
return
|
|
10209
|
+
return _ref47.apply(this, arguments);
|
|
9963
10210
|
};
|
|
9964
10211
|
}()).catch(function (error) {
|
|
9965
10212
|
_this58.meetingFiniteStateMachine.fail(error);
|
|
@@ -10022,12 +10269,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
10022
10269
|
*/
|
|
10023
10270
|
}, {
|
|
10024
10271
|
key: "extendMeeting",
|
|
10025
|
-
value: function extendMeeting(
|
|
10026
|
-
var meetingPolicyUrl =
|
|
10027
|
-
meetingInstanceId =
|
|
10028
|
-
participantId =
|
|
10029
|
-
|
|
10030
|
-
extensionMinutes =
|
|
10272
|
+
value: function extendMeeting(_ref48) {
|
|
10273
|
+
var meetingPolicyUrl = _ref48.meetingPolicyUrl,
|
|
10274
|
+
meetingInstanceId = _ref48.meetingInstanceId,
|
|
10275
|
+
participantId = _ref48.participantId,
|
|
10276
|
+
_ref48$extensionMinut = _ref48.extensionMinutes,
|
|
10277
|
+
extensionMinutes = _ref48$extensionMinut === void 0 ? 30 : _ref48$extensionMinut;
|
|
10031
10278
|
if (!meetingInstanceId || !participantId) {
|
|
10032
10279
|
return _promise.default.reject(new Error('Missing meetingInstanceId or participantId'));
|
|
10033
10280
|
}
|
|
@@ -10641,17 +10888,17 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
10641
10888
|
}, {
|
|
10642
10889
|
key: "setStage",
|
|
10643
10890
|
value: function setStage() {
|
|
10644
|
-
var
|
|
10645
|
-
|
|
10646
|
-
activeSpeakerProportion =
|
|
10647
|
-
customBackground =
|
|
10648
|
-
customLogo =
|
|
10649
|
-
customNameLabel =
|
|
10650
|
-
importantParticipants =
|
|
10651
|
-
|
|
10652
|
-
lockAttendeeViewOnStage =
|
|
10653
|
-
|
|
10654
|
-
showActiveSpeaker =
|
|
10891
|
+
var _ref49 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
10892
|
+
_ref49$activeSpeakerP = _ref49.activeSpeakerProportion,
|
|
10893
|
+
activeSpeakerProportion = _ref49$activeSpeakerP === void 0 ? 0.5 : _ref49$activeSpeakerP,
|
|
10894
|
+
customBackground = _ref49.customBackground,
|
|
10895
|
+
customLogo = _ref49.customLogo,
|
|
10896
|
+
customNameLabel = _ref49.customNameLabel,
|
|
10897
|
+
importantParticipants = _ref49.importantParticipants,
|
|
10898
|
+
_ref49$lockAttendeeVi = _ref49.lockAttendeeViewOnStage,
|
|
10899
|
+
lockAttendeeViewOnStage = _ref49$lockAttendeeVi === void 0 ? false : _ref49$lockAttendeeVi,
|
|
10900
|
+
_ref49$showActiveSpea = _ref49.showActiveSpeaker,
|
|
10901
|
+
showActiveSpeaker = _ref49$showActiveSpea === void 0 ? false : _ref49$showActiveSpea;
|
|
10655
10902
|
var videoLayout = {
|
|
10656
10903
|
overrideDefault: true,
|
|
10657
10904
|
lockAttendeeViewOnStageOnly: lockAttendeeViewOnStage,
|