@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/meeting/index.js
CHANGED
|
@@ -17,6 +17,9 @@ _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"));
|
|
22
|
+
var _now = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/date/now"));
|
|
20
23
|
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/json/stringify"));
|
|
21
24
|
var _values = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/values"));
|
|
22
25
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
@@ -24,7 +27,6 @@ var _map = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/map"))
|
|
|
24
27
|
var _isNan = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/number/is-nan"));
|
|
25
28
|
var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
|
|
26
29
|
var _weakMap = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/weak-map"));
|
|
27
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
|
|
28
30
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/typeof"));
|
|
29
31
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
|
|
30
32
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
@@ -572,6 +574,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
572
574
|
(0, _defineProperty3.default)(_this, "isMoveToInProgress", false);
|
|
573
575
|
(0, _defineProperty3.default)(_this, "registrationIdStatus", void 0);
|
|
574
576
|
(0, _defineProperty3.default)(_this, "brbState", void 0);
|
|
577
|
+
(0, _defineProperty3.default)(_this, "emittedBreakoutJoinResponseMoveIds", new _set.default());
|
|
575
578
|
(0, _defineProperty3.default)(_this, "promisesWaitingForPropUpdate", {});
|
|
576
579
|
(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
580
|
_this.transcription.languageOptions = payload;
|
|
@@ -634,7 +637,17 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
634
637
|
if (_this.config.experimental.storeLocusHashTreeEventsForDebugging) {
|
|
635
638
|
storeEventForDebugging('llm', event.data);
|
|
636
639
|
}
|
|
640
|
+
var trackingId = event.trackingId;
|
|
637
641
|
_this.locusInfo.parse(_this, event.data);
|
|
642
|
+
|
|
643
|
+
// Only the client whose /sync request tracking id matches the tracking id echoed back on this
|
|
644
|
+
// LLM message should emit client.locus.sync.complete. The tracking id lives at the top level
|
|
645
|
+
// of the received LLM event envelope. When it is absent there is nothing to correlate, so
|
|
646
|
+
// skip. onLocusSyncLlmMessage records the LLM arrival time and is a no-op unless a stored
|
|
647
|
+
// record for this meeting matches the tracking id.
|
|
648
|
+
if (trackingId) {
|
|
649
|
+
_this.onLocusSyncLlmMessage(_this.id, trackingId);
|
|
650
|
+
}
|
|
638
651
|
} else {
|
|
639
652
|
_loggerProxy.default.logger.warn("Meeting:index#processLocusLLMEvent --> Unknown event type: ".concat(event.data.eventType));
|
|
640
653
|
}
|
|
@@ -899,18 +912,29 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
899
912
|
// @ts-ignore
|
|
900
913
|
var cdl = _this.webex.internal.newMetrics.callDiagnosticLatencies;
|
|
901
914
|
|
|
915
|
+
// Compute the offer->answer latency from when the local SDP offer was generated up to now,
|
|
916
|
+
// rather than from the stored remote-sdp-received timestamp. That stored timestamp uses
|
|
917
|
+
// saveFirstTimestampOnly, so if waitForRemoteSDPAnswer() already timed out and submitted a
|
|
918
|
+
// remote-sdp-received event, the stored value would be pinned to the timeout time and would
|
|
919
|
+
// under-report an answer that arrives late. This handler fires exactly when the answer is
|
|
920
|
+
// processed, so Date.now() is the accurate "received" time.
|
|
921
|
+
// (submitClientEvent below still records the remote-sdp-received timestamp used by the CA
|
|
922
|
+
// join-time metric, so we don't need to save it here.)
|
|
923
|
+
var localSdpGeneratedTimestamp = cdl.latencyTimestamps.get('client.media-engine.local-sdp-generated');
|
|
924
|
+
var localSDPGenRemoteSDPRecv = localSdpGeneratedTimestamp !== undefined ? (0, _now.default)() - localSdpGeneratedTimestamp : undefined;
|
|
925
|
+
|
|
902
926
|
// @ts-ignore
|
|
903
927
|
_this.webex.internal.newMetrics.submitClientEvent({
|
|
904
928
|
name: 'client.media-engine.remote-sdp-received',
|
|
929
|
+
payload: {
|
|
930
|
+
eventData: {
|
|
931
|
+
localSDPGenRemoteSDPRecv: localSDPGenRemoteSDPRecv
|
|
932
|
+
}
|
|
933
|
+
},
|
|
905
934
|
options: {
|
|
906
935
|
meetingId: _this.id
|
|
907
936
|
}
|
|
908
937
|
});
|
|
909
|
-
_metrics.default.sendBehavioralMetric(_constants2.default.ROAP_OFFER_TO_ANSWER_LATENCY, {
|
|
910
|
-
correlation_id: _this.correlationId,
|
|
911
|
-
latency: cdl.getLocalSDPGenRemoteSDPRecv(),
|
|
912
|
-
meetingId: _this.id
|
|
913
|
-
});
|
|
914
938
|
if (_this.deferSDPAnswer) {
|
|
915
939
|
_this.deferSDPAnswer.resolve();
|
|
916
940
|
clearTimeout(_this.sdpResponseTimer);
|
|
@@ -2220,7 +2244,42 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2220
2244
|
* @memberof Meeting
|
|
2221
2245
|
*/
|
|
2222
2246
|
// @ts-ignore - Fix type
|
|
2223
|
-
_this.locusInfo = new _locusInfo.default(
|
|
2247
|
+
_this.locusInfo = new _locusInfo.default({
|
|
2248
|
+
updateMeeting: _this.updateMeetingObject.bind(_this),
|
|
2249
|
+
syncLatencyTracker: {
|
|
2250
|
+
// Compute/store latency timestamps live on CallDiagnosticLatencies, while
|
|
2251
|
+
// submitting the client.locus.sync.complete CA event is owned by the metrics
|
|
2252
|
+
// facade. Wire each method to the layer that owns that responsibility.
|
|
2253
|
+
saveLatency: function saveLatency() {
|
|
2254
|
+
var _this$webex$internal$5;
|
|
2255
|
+
return (
|
|
2256
|
+
// @ts-ignore
|
|
2257
|
+
(_this$webex$internal$5 = _this.webex.internal.newMetrics.callDiagnosticLatencies).saveLatency.apply(_this$webex$internal$5, arguments)
|
|
2258
|
+
);
|
|
2259
|
+
},
|
|
2260
|
+
saveTimestamp: function saveTimestamp(saveTimestampOptions) {
|
|
2261
|
+
var _saveTimestampOptions;
|
|
2262
|
+
// @ts-ignore
|
|
2263
|
+
_this.webex.internal.newMetrics.callDiagnosticLatencies.saveTimestamp(saveTimestampOptions);
|
|
2264
|
+
|
|
2265
|
+
// The /sync response is one of the two milestones (the other is the LLM message) that
|
|
2266
|
+
// complete client.locus.sync.complete. Try to complete now: the metric is emitted only
|
|
2267
|
+
// once both the LLM message and the /sync response have arrived (either can come first).
|
|
2268
|
+
if (saveTimestampOptions.key === 'internal.client.locus.sync.response' && (_saveTimestampOptions = saveTimestampOptions.options) !== null && _saveTimestampOptions !== void 0 && _saveTimestampOptions.trackingId) {
|
|
2269
|
+
_this.tryCompleteLocusSyncLatency(saveTimestampOptions.options.meetingId, saveTimestampOptions.options.trackingId);
|
|
2270
|
+
}
|
|
2271
|
+
},
|
|
2272
|
+
clearLocusSyncLatency: function clearLocusSyncLatency() {
|
|
2273
|
+
var _this$webex$internal$6;
|
|
2274
|
+
return (
|
|
2275
|
+
// @ts-ignore
|
|
2276
|
+
(_this$webex$internal$6 = _this.webex.internal.newMetrics.callDiagnosticLatencies).clearLocusSyncLatency.apply(_this$webex$internal$6, arguments)
|
|
2277
|
+
);
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
},
|
|
2281
|
+
// @ts-ignore
|
|
2282
|
+
_this.webex, _this.id);
|
|
2224
2283
|
|
|
2225
2284
|
// We had to add listeners first before setting up the locus instance
|
|
2226
2285
|
/**
|
|
@@ -3249,6 +3308,85 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3249
3308
|
});
|
|
3250
3309
|
}
|
|
3251
3310
|
|
|
3311
|
+
/**
|
|
3312
|
+
* Handles the LLM state-update message that resulted from a Locus /sync. Records the LLM arrival
|
|
3313
|
+
* time (the milestone that gates client.locus.sync.complete - the metric is emitted only for LLM
|
|
3314
|
+
* flows) and then tries to complete the metric.
|
|
3315
|
+
* @param {string} meetingId meeting id
|
|
3316
|
+
* @param {string} trackingId sync tracking id echoed back on the LLM message
|
|
3317
|
+
* @returns {void}
|
|
3318
|
+
* @private
|
|
3319
|
+
* @memberof Meeting
|
|
3320
|
+
*/
|
|
3321
|
+
}, {
|
|
3322
|
+
key: "onLocusSyncLlmMessage",
|
|
3323
|
+
value: function onLocusSyncLlmMessage(meetingId, trackingId) {
|
|
3324
|
+
// @ts-ignore
|
|
3325
|
+
this.webex.internal.newMetrics.callDiagnosticLatencies.recordLocusSyncMessageReceived(meetingId, trackingId);
|
|
3326
|
+
this.tryCompleteLocusSyncLatency(meetingId, trackingId);
|
|
3327
|
+
}
|
|
3328
|
+
|
|
3329
|
+
/**
|
|
3330
|
+
* Attempts to complete the Locus sync latency metric and emit client.locus.sync.complete. The
|
|
3331
|
+
* metric is emitted only once BOTH the /sync response and the resulting LLM message have arrived
|
|
3332
|
+
* (in either order); until then the record is kept so the missing milestone can still land. Both
|
|
3333
|
+
* trigger points (the LLM message handler and the /sync response timestamp) call this, so the
|
|
3334
|
+
* metric fires as soon as the second milestone is in.
|
|
3335
|
+
* @param {string} meetingId meeting id
|
|
3336
|
+
* @param {string} trackingId sync tracking id used to match the pending record
|
|
3337
|
+
* @returns {void}
|
|
3338
|
+
* @private
|
|
3339
|
+
* @memberof Meeting
|
|
3340
|
+
*/
|
|
3341
|
+
}, {
|
|
3342
|
+
key: "tryCompleteLocusSyncLatency",
|
|
3343
|
+
value: function tryCompleteLocusSyncLatency(meetingId, trackingId) {
|
|
3344
|
+
var completed =
|
|
3345
|
+
// @ts-ignore
|
|
3346
|
+
this.webex.internal.newMetrics.callDiagnosticLatencies.completeLocusSyncLatency(meetingId, trackingId);
|
|
3347
|
+
if (completed) {
|
|
3348
|
+
this.emitLocusSyncCompleteMetric(meetingId, completed);
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
/**
|
|
3353
|
+
* Submits the client.locus.sync.complete Call Analyzer event for a completed Locus sync latency
|
|
3354
|
+
* measurement.
|
|
3355
|
+
* @param {string} meetingId meeting id
|
|
3356
|
+
* @param {object} completed completed sync latency payload from the metrics plugin
|
|
3357
|
+
* @returns {void}
|
|
3358
|
+
* @private
|
|
3359
|
+
* @memberof Meeting
|
|
3360
|
+
*/
|
|
3361
|
+
}, {
|
|
3362
|
+
key: "emitLocusSyncCompleteMetric",
|
|
3363
|
+
value: function emitLocusSyncCompleteMetric(meetingId, completed) {
|
|
3364
|
+
var _this$webex$internal$7, _this$webex$internal$8;
|
|
3365
|
+
// @ts-ignore
|
|
3366
|
+
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;
|
|
3367
|
+
|
|
3368
|
+
// Per the LLM sync-latency spec, the event carries the LLM websocket url identifier,
|
|
3369
|
+
// the llmInfo.dataSet (main, atd-active or atd-unmuted) and the syncLatency block.
|
|
3370
|
+
var clientEvent = {
|
|
3371
|
+
name: 'client.locus.sync.complete',
|
|
3372
|
+
payload: {
|
|
3373
|
+
identifiers: {
|
|
3374
|
+
llmWebsocketUrl: llmWebsocketUrl
|
|
3375
|
+
},
|
|
3376
|
+
llmInfo: {
|
|
3377
|
+
dataSet: completed.dataSet
|
|
3378
|
+
},
|
|
3379
|
+
syncLatency: completed.syncLatency
|
|
3380
|
+
},
|
|
3381
|
+
options: {
|
|
3382
|
+
meetingId: meetingId
|
|
3383
|
+
}
|
|
3384
|
+
};
|
|
3385
|
+
|
|
3386
|
+
// @ts-ignore
|
|
3387
|
+
this.webex.internal.newMetrics.submitClientEvent(clientEvent);
|
|
3388
|
+
}
|
|
3389
|
+
|
|
3252
3390
|
/**
|
|
3253
3391
|
* Proxy function for all the listener set ups
|
|
3254
3392
|
* @returns {undefined}
|
|
@@ -3996,7 +4134,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3996
4134
|
else if ((previousContentShare && contentShare.disposition === _constants.FLOOR_ACTION.RELEASED || contentShare.disposition === null) && (previousWhiteboardShare && whiteboardShare.disposition === _constants.FLOOR_ACTION.RELEASED || whiteboardShare.disposition === null)) {
|
|
3997
4135
|
newShareStatus = _constants.SHARE_STATUS.NO_SHARE;
|
|
3998
4136
|
}
|
|
3999
|
-
_loggerProxy.default.logger.info("Meeting:index#
|
|
4137
|
+
_loggerProxy.default.logger.info("Meeting:index#setUpLocusMediaSharesListener --> this.shareStatus=".concat(_this13.shareStatus, " newShareStatus=").concat(newShareStatus));
|
|
4000
4138
|
if (!(newShareStatus !== _this13.shareStatus)) {
|
|
4001
4139
|
_context0.next = 17;
|
|
4002
4140
|
break;
|
|
@@ -6258,8 +6396,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6258
6396
|
case 1:
|
|
6259
6397
|
this.allowMediaInLobby = true;
|
|
6260
6398
|
_loggerProxy.default.logger.info('Meeting:index#joinWithMedia called');
|
|
6261
|
-
|
|
6262
|
-
joinResponse = prevJoinResponse;
|
|
6399
|
+
|
|
6263
6400
|
/* Before we do anything, check if RTCPeerConnection is available. Normally this is checked
|
|
6264
6401
|
by addMediaInternal() itself when creating the media connection, but since joinWithMedia()
|
|
6265
6402
|
is a convenience method that does both join() and addMedia(), we want to fail fast here
|
|
@@ -6271,11 +6408,19 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6271
6408
|
}
|
|
6272
6409
|
throw new _internalMediaCore.Errors.WebrtcApiNotAvailableError('RTCPeerConnection API is not available in this environment');
|
|
6273
6410
|
case 2:
|
|
6411
|
+
/* While we're trying to join, we may fail and be doing a retry. In that case,
|
|
6412
|
+
we sometimes get dropped by Locus as a result of the 1st failed attempt.
|
|
6413
|
+
That notification from Locus needs to be ignored, otherwise it causes the meeting to be
|
|
6414
|
+
cleaned up and prevents the retry from running correctly.
|
|
6415
|
+
*/
|
|
6416
|
+
this.locusInfo.suspendDestroyMeeting(true);
|
|
6417
|
+
joined = false;
|
|
6418
|
+
joinResponse = prevJoinResponse;
|
|
6274
6419
|
shouldJoin = !joinResponse ||
|
|
6275
6420
|
// first try, when the join response is empty
|
|
6276
6421
|
prevError && prevError instanceof _webexErrors.UserNotJoinedError ||
|
|
6277
6422
|
// last try failed with UserNotJoinedError
|
|
6278
|
-
_util2.default.isUserInLeftState(this.locusInfo); // locus dropped the connection before we can re-try addMedia
|
|
6423
|
+
this.isErrorMeaningLocusDroppedUs(prevError) || _util2.default.isUserInLeftState(this.locusInfo); // locus dropped the connection before we can re-try addMedia
|
|
6279
6424
|
_context17.prev = 3;
|
|
6280
6425
|
forceTurnDiscovery = false;
|
|
6281
6426
|
if (!shouldJoin) {
|
|
@@ -6335,6 +6480,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6335
6480
|
retryCount: 0,
|
|
6336
6481
|
prevJoinResponse: undefined
|
|
6337
6482
|
};
|
|
6483
|
+
this.locusInfo.suspendDestroyMeeting(false);
|
|
6338
6484
|
return _context17.abrupt("return", {
|
|
6339
6485
|
join: joinResponse,
|
|
6340
6486
|
media: mediaResponse,
|
|
@@ -6346,8 +6492,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6346
6492
|
_loggerProxy.default.logger.error('Meeting:index#joinWithMedia --> ', _t10);
|
|
6347
6493
|
this.roap.abortTurnDiscovery();
|
|
6348
6494
|
|
|
6349
|
-
// let's do a retry
|
|
6350
|
-
shouldRetry = retryCount < 1 || _t10 instanceof _webexErrors.UserNotJoinedError && retryCount < JOIN_WITH_MEDIA_RETRY_MAX_COUNT;
|
|
6495
|
+
// let's do a retry (but not on 1-1 calls, because the flow would get too complicated)
|
|
6496
|
+
shouldRetry = !_util3.default.isOneOnOneCall(this.locusInfo.parsedLocus) && (retryCount < 1 || (_t10 instanceof _webexErrors.UserNotJoinedError || this.isErrorMeaningLocusDroppedUs(_t10)) && retryCount < JOIN_WITH_MEDIA_RETRY_MAX_COUNT);
|
|
6351
6497
|
if (_internalPluginMetrics.CallDiagnosticUtils.isSdpOfferCreationError(_t10) || _internalPluginMetrics.CallDiagnosticUtils.isWebrtcApiNotAvailableError(_t10)) {
|
|
6352
6498
|
// errors related to offer creation (for example missing H264 codec) will happen again no matter how many times we try,
|
|
6353
6499
|
// so there is no point doing a retry
|
|
@@ -6418,6 +6564,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6418
6564
|
firstError: undefined,
|
|
6419
6565
|
prevError: undefined
|
|
6420
6566
|
};
|
|
6567
|
+
this.locusInfo.suspendDestroyMeeting(false);
|
|
6421
6568
|
throw firstError !== null && firstError !== void 0 ? firstError : _t10;
|
|
6422
6569
|
case 18:
|
|
6423
6570
|
case "end":
|
|
@@ -6726,10 +6873,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6726
6873
|
key: "restoreLLMSubscriptionsIfNeeded",
|
|
6727
6874
|
value: function restoreLLMSubscriptionsIfNeeded() {
|
|
6728
6875
|
try {
|
|
6729
|
-
var _this$webex$internal$
|
|
6730
|
-
// @ts-ignore
|
|
6731
|
-
|
|
6732
|
-
if (!
|
|
6876
|
+
var _this$webex$internal$9, _this$webex$internal$0;
|
|
6877
|
+
var keepTranscriptionSubscribed = // @ts-ignore
|
|
6878
|
+
(_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.getKeepTranscriptionSubscribed) === null || _this$webex$internal$0 === void 0 ? void 0 : _this$webex$internal$0.call(_this$webex$internal$9);
|
|
6879
|
+
if (!keepTranscriptionSubscribed) {
|
|
6733
6880
|
return;
|
|
6734
6881
|
}
|
|
6735
6882
|
|
|
@@ -6949,7 +7096,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6949
7096
|
_this34.webex.internal.llm.off('online', _this34.handleLLMOnline);
|
|
6950
7097
|
// @ts-ignore
|
|
6951
7098
|
_this34.webex.internal.llm.on('online', _this34.handleLLMOnline);
|
|
6952
|
-
_this34.updateLLMConnection(
|
|
7099
|
+
_this34.updateLLMConnection({
|
|
7100
|
+
isInitialJoinPhase: true
|
|
7101
|
+
}).catch(function (error) {
|
|
6953
7102
|
_loggerProxy.default.logger.error('Meeting:index#join --> Transcription Socket Connection Failed', error);
|
|
6954
7103
|
_metrics.default.sendBehavioralMetric(_constants2.default.LLM_CONNECTION_AFTER_JOIN_FAILURE, {
|
|
6955
7104
|
correlation_id: _this34.correlationId,
|
|
@@ -7165,6 +7314,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7165
7314
|
/**
|
|
7166
7315
|
* Connects to low latency mercury and reconnects if the address has changed
|
|
7167
7316
|
* It will also disconnect if called when the meeting has ended
|
|
7317
|
+
* @param {Object} [options]
|
|
7318
|
+
* @param {boolean} [options.isInitialJoinPhase] true when called from initial join flow
|
|
7168
7319
|
* @returns {Promise}
|
|
7169
7320
|
*/
|
|
7170
7321
|
)
|
|
@@ -7173,12 +7324,31 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7173
7324
|
value: (function () {
|
|
7174
7325
|
var _updateLLMConnection = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee22() {
|
|
7175
7326
|
var _this36 = this;
|
|
7176
|
-
var _ref40,
|
|
7327
|
+
var _ref40,
|
|
7328
|
+
_ref40$isInitialJoinP,
|
|
7329
|
+
isInitialJoinPhase,
|
|
7330
|
+
_ref41,
|
|
7331
|
+
_ref41$url,
|
|
7332
|
+
url,
|
|
7333
|
+
_ref41$info,
|
|
7334
|
+
_ref41$info2,
|
|
7335
|
+
_ref41$info2$datachan,
|
|
7336
|
+
datachannelUrl,
|
|
7337
|
+
isJoined,
|
|
7338
|
+
dataChannelUrl,
|
|
7339
|
+
_this$webex$internal$1,
|
|
7340
|
+
currentOwner,
|
|
7341
|
+
wasConnected,
|
|
7342
|
+
datachannelToken,
|
|
7343
|
+
refreshHandlerOwnerMeetingId,
|
|
7344
|
+
shouldAlignRefreshHandlerAfterOwnershipClaim,
|
|
7345
|
+
_args22 = arguments;
|
|
7177
7346
|
return _regenerator.default.wrap(function (_context22) {
|
|
7178
7347
|
while (1) switch (_context22.prev = _context22.next) {
|
|
7179
7348
|
case 0:
|
|
7349
|
+
_ref40 = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {}, _ref40$isInitialJoinP = _ref40.isInitialJoinPhase, isInitialJoinPhase = _ref40$isInitialJoinP === void 0 ? false : _ref40$isInitialJoinP;
|
|
7180
7350
|
// @ts-ignore - Fix type
|
|
7181
|
-
|
|
7351
|
+
_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;
|
|
7182
7352
|
isJoined = this.isJoined();
|
|
7183
7353
|
dataChannelUrl = datachannelUrl; // Ownership guard: when the default LLM session is already connected and
|
|
7184
7354
|
// owned by a *different* Meeting instance, do not disconnect or reconfigure
|
|
@@ -7187,7 +7357,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7187
7357
|
// connection when this meeting is the current owner, or when no owner is
|
|
7188
7358
|
// set yet (first claim).
|
|
7189
7359
|
// @ts-ignore - Fix type
|
|
7190
|
-
_this$webex$internal$
|
|
7360
|
+
_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
|
|
7191
7361
|
// connected, we must respect current ownership. If it was disconnected,
|
|
7192
7362
|
// this flow may reclaim stale owner tags after a fresh connect.
|
|
7193
7363
|
// @ts-ignore - Fix type
|
|
@@ -7295,7 +7465,34 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7295
7465
|
_this36.webex.internal.llm.on(_constants.LOCUS_LLM_EVENT, _this36.processLocusLLMEvent);
|
|
7296
7466
|
_loggerProxy.default.logger.info('Meeting:index#updateLLMConnection --> enabled to receive relay events!');
|
|
7297
7467
|
_this36.startLLMHealthCheckTimer();
|
|
7468
|
+
if (registerAndConnectResult) {
|
|
7469
|
+
var _this36$breakouts;
|
|
7470
|
+
if (isInitialJoinPhase) {
|
|
7471
|
+
_this36.sendLLMConnectMetric(registerAndConnectResult);
|
|
7472
|
+
}
|
|
7473
|
+
(_this36$breakouts = _this36.breakouts) === null || _this36$breakouts === void 0 ? void 0 : _this36$breakouts.trigger(_constants.BREAKOUTS.EVENTS.LLM_CONNECT_RESPONSE, {
|
|
7474
|
+
meeting: _this36,
|
|
7475
|
+
llmLatency: registerAndConnectResult
|
|
7476
|
+
});
|
|
7477
|
+
}
|
|
7298
7478
|
return _promise.default.resolve(registerAndConnectResult);
|
|
7479
|
+
}).catch(function (error) {
|
|
7480
|
+
var _error$timing$clientL, _error$timing, _this36$breakouts2;
|
|
7481
|
+
// Prefer the partial timing registerAndConnect attaches when register succeeded but the
|
|
7482
|
+
// websocket connect() failed, so a ws failure isn't misreported as register never completing.
|
|
7483
|
+
var llmLatency = {
|
|
7484
|
+
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,
|
|
7485
|
+
clientLLMWebSocketConnectTime: 0
|
|
7486
|
+
};
|
|
7487
|
+
if (isInitialJoinPhase) {
|
|
7488
|
+
_this36.sendLLMConnectMetric(llmLatency, error);
|
|
7489
|
+
}
|
|
7490
|
+
(_this36$breakouts2 = _this36.breakouts) === null || _this36$breakouts2 === void 0 ? void 0 : _this36$breakouts2.trigger(_constants.BREAKOUTS.EVENTS.LLM_CONNECT_RESPONSE, {
|
|
7491
|
+
meeting: _this36,
|
|
7492
|
+
llmLatency: llmLatency,
|
|
7493
|
+
error: error
|
|
7494
|
+
});
|
|
7495
|
+
return _promise.default.reject(error);
|
|
7299
7496
|
}));
|
|
7300
7497
|
case 5:
|
|
7301
7498
|
case "end":
|
|
@@ -7308,6 +7505,78 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7308
7505
|
}
|
|
7309
7506
|
return updateLLMConnection;
|
|
7310
7507
|
}()
|
|
7508
|
+
/**
|
|
7509
|
+
* Ensures breakout join response metric with LLM latency is emitted only once per breakout move id.
|
|
7510
|
+
* @param {string | undefined} breakoutMoveId
|
|
7511
|
+
* @param {boolean} [hasLLMLatency=false]
|
|
7512
|
+
* @returns {boolean}
|
|
7513
|
+
*/
|
|
7514
|
+
)
|
|
7515
|
+
}, {
|
|
7516
|
+
key: "shouldEmitBreakoutJoinResponseMetric",
|
|
7517
|
+
value: function shouldEmitBreakoutJoinResponseMetric(breakoutMoveId) {
|
|
7518
|
+
var hasLLMLatency = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
7519
|
+
if (!breakoutMoveId) {
|
|
7520
|
+
return false;
|
|
7521
|
+
}
|
|
7522
|
+
if (!hasLLMLatency) {
|
|
7523
|
+
// When automatic LLM is enabled, updateLLMConnection will emit this same breakout join
|
|
7524
|
+
// response after the LLM connection finishes, including llmLatency and llmWebsocketUrl.
|
|
7525
|
+
// Suppress the earlier non-LLM event to avoid sending two events for the same move id,
|
|
7526
|
+
// where the first one would be missing the LLM-specific fields we want to validate.
|
|
7527
|
+
// @ts-ignore - config coming from registerPlugin
|
|
7528
|
+
return !this.config.enableAutomaticLLM;
|
|
7529
|
+
}
|
|
7530
|
+
if (this.emittedBreakoutJoinResponseMoveIds.has(breakoutMoveId)) {
|
|
7531
|
+
return false;
|
|
7532
|
+
}
|
|
7533
|
+
this.emittedBreakoutJoinResponseMoveIds.add(breakoutMoveId);
|
|
7534
|
+
return true;
|
|
7535
|
+
}
|
|
7536
|
+
|
|
7537
|
+
/**
|
|
7538
|
+
* Sends LLM connect latencies for initial join flow.
|
|
7539
|
+
* @param {RegisterAndConnectTiming} timings
|
|
7540
|
+
* @param {any} [error]
|
|
7541
|
+
* @returns {void}
|
|
7542
|
+
*/
|
|
7543
|
+
}, {
|
|
7544
|
+
key: "sendLLMConnectMetric",
|
|
7545
|
+
value: function sendLLMConnectMetric(timings, error) {
|
|
7546
|
+
var _this$webex$internal$10, _this$webex$internal$11;
|
|
7547
|
+
// @ts-ignore
|
|
7548
|
+
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;
|
|
7549
|
+
var _ref42 = timings || {},
|
|
7550
|
+
_ref42$clientLLMDatac = _ref42.clientLLMDatachannelResponseTime,
|
|
7551
|
+
clientLLMDatachannelResponseTime = _ref42$clientLLMDatac === void 0 ? 0 : _ref42$clientLLMDatac,
|
|
7552
|
+
clientLLMWebSocketConnectTime = _ref42.clientLLMWebSocketConnectTime;
|
|
7553
|
+
var llmLatency = {
|
|
7554
|
+
clientLLMDatachannelResponseTime: clientLLMDatachannelResponseTime
|
|
7555
|
+
};
|
|
7556
|
+
if (clientLLMWebSocketConnectTime !== undefined) {
|
|
7557
|
+
llmLatency.clientLLMWebSocketConnectTime = clientLLMWebSocketConnectTime;
|
|
7558
|
+
}
|
|
7559
|
+
var payload = {
|
|
7560
|
+
identifiers: {
|
|
7561
|
+
llmWebsocketUrl: llmWebsocketUrl
|
|
7562
|
+
},
|
|
7563
|
+
llmLatency: llmLatency
|
|
7564
|
+
};
|
|
7565
|
+
var options = _objectSpread({
|
|
7566
|
+
meetingId: this.id
|
|
7567
|
+
}, error && {
|
|
7568
|
+
rawError: error
|
|
7569
|
+
});
|
|
7570
|
+
var metricEvent = {
|
|
7571
|
+
name: 'client.llm.connect.response',
|
|
7572
|
+
payload: payload,
|
|
7573
|
+
options: options
|
|
7574
|
+
};
|
|
7575
|
+
|
|
7576
|
+
// @ts-ignore
|
|
7577
|
+
this.webex.internal.newMetrics.submitClientEvent(metricEvent);
|
|
7578
|
+
}
|
|
7579
|
+
|
|
7311
7580
|
/**
|
|
7312
7581
|
* Use phone for meeting audio
|
|
7313
7582
|
* @param {String} phoneNumber If provided, it will dial-out using this number. If not provided, dial-in will be used
|
|
@@ -7315,7 +7584,6 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7315
7584
|
* @public
|
|
7316
7585
|
* @memberof Meeting
|
|
7317
7586
|
*/
|
|
7318
|
-
)
|
|
7319
7587
|
}, {
|
|
7320
7588
|
key: "usePhoneAudio",
|
|
7321
7589
|
value: function usePhoneAudio(phoneNumber) {
|
|
@@ -7635,6 +7903,23 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7635
7903
|
return "MC-".concat(this.id.substring(0, 4));
|
|
7636
7904
|
}
|
|
7637
7905
|
|
|
7906
|
+
/**
|
|
7907
|
+
* Checks if the error indicates that Locus dropped us from the meeting,
|
|
7908
|
+
* either directly on the error or wrapped inside an AddMediaFailed cause.
|
|
7909
|
+
* This method is meant to be called only with errors thrown by Meeting.addMediaInternal()
|
|
7910
|
+
*
|
|
7911
|
+
* @param {Error} error
|
|
7912
|
+
* @returns {boolean}
|
|
7913
|
+
*/
|
|
7914
|
+
}, {
|
|
7915
|
+
key: "isErrorMeaningLocusDroppedUs",
|
|
7916
|
+
value: function isErrorMeaningLocusDroppedUs(error) {
|
|
7917
|
+
var _cause;
|
|
7918
|
+
var statusCode = error === null || error === void 0 ? void 0 : error.statusCode;
|
|
7919
|
+
var causeStatusCode = error === null || error === void 0 ? void 0 : (_cause = error.cause) === null || _cause === void 0 ? void 0 : _cause.statusCode;
|
|
7920
|
+
return statusCode === 409 || statusCode === 403 || causeStatusCode === 409 || causeStatusCode === 403;
|
|
7921
|
+
}
|
|
7922
|
+
|
|
7638
7923
|
/**
|
|
7639
7924
|
* Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
|
|
7640
7925
|
* We do this in the hope that it will minimize the chance of Homer sending DTLS packets on a wrong
|
|
@@ -7735,6 +8020,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7735
8020
|
this.setupMediaConnectionListeners();
|
|
7736
8021
|
if (this.isMultistream) {
|
|
7737
8022
|
audioEnabled = this.mediaProperties.mediaDirection.sendAudio || this.mediaProperties.mediaDirection.receiveAudio, videoEnabled = this.mediaProperties.mediaDirection.sendVideo || this.mediaProperties.mediaDirection.receiveVideo, shareEnabled = this.mediaProperties.mediaDirection.sendShare || this.mediaProperties.mediaDirection.receiveShare;
|
|
8023
|
+
this.sendSlotManager.reset();
|
|
7738
8024
|
this.sendSlotManager.createSlot(mc, _internalMediaCore.MediaType.VideoMain, videoEnabled);
|
|
7739
8025
|
this.sendSlotManager.createSlot(mc, _internalMediaCore.MediaType.AudioMain, audioEnabled);
|
|
7740
8026
|
this.sendSlotManager.createSlot(mc, _internalMediaCore.MediaType.VideoSlides, shareEnabled);
|
|
@@ -7868,7 +8154,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7868
8154
|
key: "waitForMediaConnectionConnected",
|
|
7869
8155
|
value: (function () {
|
|
7870
8156
|
var _waitForMediaConnectionConnected = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee27() {
|
|
7871
|
-
var
|
|
8157
|
+
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;
|
|
7872
8158
|
return _regenerator.default.wrap(function (_context27) {
|
|
7873
8159
|
while (1) switch (_context27.prev = _context27.next) {
|
|
7874
8160
|
case 0:
|
|
@@ -7881,7 +8167,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7881
8167
|
case 2:
|
|
7882
8168
|
_context27.prev = 2;
|
|
7883
8169
|
_t17 = _context27["catch"](0);
|
|
7884
|
-
|
|
8170
|
+
_ref44 = _t17, iceConnected = _ref44.iceConnected;
|
|
7885
8171
|
if (this.hasMediaConnectionConnectedAtLeastOnce) {
|
|
7886
8172
|
_context27.next = 4;
|
|
7887
8173
|
break;
|
|
@@ -7977,8 +8263,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7977
8263
|
var atLeastOneUnmutedOtherMember = (0, _values.default)(_this43.members.membersCollection.getAll()).find(function (member) {
|
|
7978
8264
|
return !member.isSelf && !member.isPairedWithSelf && !member.isAudioMuted;
|
|
7979
8265
|
});
|
|
7980
|
-
|
|
7981
|
-
|
|
8266
|
+
|
|
8267
|
+
// we also ignore any issues while we're waiting in the lobby, as we're not receiving any audio yet
|
|
8268
|
+
if (atLeastOneUnmutedOtherMember && !_this43.isUserUnadmitted) {
|
|
8269
|
+
_this43.mediaProperties.sendMediaIssueMetric('inbound_audio', data.issueSubType, {
|
|
8270
|
+
correlationId: _this43.correlationId,
|
|
8271
|
+
isMultistream: _this43.isMultistream
|
|
8272
|
+
});
|
|
7982
8273
|
_triggerProxy.default.trigger(_this43, {
|
|
7983
8274
|
file: 'meeting/index',
|
|
7984
8275
|
function: 'createStatsAnalyzer'
|
|
@@ -8575,6 +8866,14 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8575
8866
|
key: "waitForSelfUrlChange",
|
|
8576
8867
|
value: function waitForSelfUrlChange() {
|
|
8577
8868
|
var _this46 = this;
|
|
8869
|
+
if (this.joinWithMediaRetryInfo.retryCount > 0) {
|
|
8870
|
+
/* During joinWithMedia() retries we can get 403/409 from Locus and it doesn't mean
|
|
8871
|
+
* that the selfUrl will change, it is usually caused by Locus dropping us as a result of
|
|
8872
|
+
* media connection failure during joinWithMedia's earlier media connection attempt,
|
|
8873
|
+
* so we don't want to wait for selfUrl change as this would only slow down the join process. */
|
|
8874
|
+
_loggerProxy.default.logger.info('Meeting:index#waitForSelfUrlChange --> joinWithMedia retry in progress, will not wait for selfUrl change');
|
|
8875
|
+
return _promise.default.resolve();
|
|
8876
|
+
}
|
|
8578
8877
|
if (!this.promisesWaitingForPropUpdate.selfUrl) {
|
|
8579
8878
|
var pendingSelfUrlUpdate = new _common.Defer();
|
|
8580
8879
|
this.promisesWaitingForPropUpdate.selfUrl = pendingSelfUrlUpdate;
|
|
@@ -8679,7 +8978,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8679
8978
|
_this$mediaProperties33,
|
|
8680
8979
|
_this$mediaProperties34,
|
|
8681
8980
|
_reachabilityMetrics,
|
|
8682
|
-
|
|
8981
|
+
_ref45,
|
|
8683
8982
|
_connectionType,
|
|
8684
8983
|
_selectedCandidatePairChanges,
|
|
8685
8984
|
_numTransports,
|
|
@@ -8877,10 +9176,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8877
9176
|
case 19:
|
|
8878
9177
|
_t38 = _context38.sent;
|
|
8879
9178
|
case 20:
|
|
8880
|
-
|
|
8881
|
-
_connectionType =
|
|
8882
|
-
_selectedCandidatePairChanges =
|
|
8883
|
-
_numTransports =
|
|
9179
|
+
_ref45 = _t38;
|
|
9180
|
+
_connectionType = _ref45.connectionType;
|
|
9181
|
+
_selectedCandidatePairChanges = _ref45.selectedCandidatePairChanges;
|
|
9182
|
+
_numTransports = _ref45.numTransports;
|
|
8884
9183
|
_iceCandidateErrors = Object.fromEntries(this.iceCandidateErrors);
|
|
8885
9184
|
_metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_FAILURE, _objectSpread(_objectSpread(_objectSpread({
|
|
8886
9185
|
correlation_id: this.correlationId,
|
|
@@ -9202,7 +9501,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9202
9501
|
_loggerProxy.default.logger.log('Meeting:index#leave --> Leaving a meeting');
|
|
9203
9502
|
this.stopListeningForMeetingEvents();
|
|
9204
9503
|
return _util2.default.leaveMeeting(this, options).then(/*#__PURE__*/function () {
|
|
9205
|
-
var
|
|
9504
|
+
var _ref46 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee40(leave) {
|
|
9206
9505
|
return _regenerator.default.wrap(function (_context40) {
|
|
9207
9506
|
while (1) switch (_context40.prev = _context40.next) {
|
|
9208
9507
|
case 0:
|
|
@@ -9238,7 +9537,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9238
9537
|
}, _callee40);
|
|
9239
9538
|
}));
|
|
9240
9539
|
return function (_x39) {
|
|
9241
|
-
return
|
|
9540
|
+
return _ref46.apply(this, arguments);
|
|
9242
9541
|
};
|
|
9243
9542
|
}()).catch(function (error) {
|
|
9244
9543
|
// CA team recommends submitting this *after* locus /leave
|
|
@@ -9904,7 +10203,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9904
10203
|
});
|
|
9905
10204
|
this.stopListeningForMeetingEvents();
|
|
9906
10205
|
return _util2.default.endMeetingForAll(this).then(/*#__PURE__*/function () {
|
|
9907
|
-
var
|
|
10206
|
+
var _ref47 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee41(end) {
|
|
9908
10207
|
return _regenerator.default.wrap(function (_context41) {
|
|
9909
10208
|
while (1) switch (_context41.prev = _context41.next) {
|
|
9910
10209
|
case 0:
|
|
@@ -9925,7 +10224,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9925
10224
|
}, _callee41);
|
|
9926
10225
|
}));
|
|
9927
10226
|
return function (_x40) {
|
|
9928
|
-
return
|
|
10227
|
+
return _ref47.apply(this, arguments);
|
|
9929
10228
|
};
|
|
9930
10229
|
}()).catch(function (error) {
|
|
9931
10230
|
_this58.meetingFiniteStateMachine.fail(error);
|
|
@@ -9988,12 +10287,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9988
10287
|
*/
|
|
9989
10288
|
}, {
|
|
9990
10289
|
key: "extendMeeting",
|
|
9991
|
-
value: function extendMeeting(
|
|
9992
|
-
var meetingPolicyUrl =
|
|
9993
|
-
meetingInstanceId =
|
|
9994
|
-
participantId =
|
|
9995
|
-
|
|
9996
|
-
extensionMinutes =
|
|
10290
|
+
value: function extendMeeting(_ref48) {
|
|
10291
|
+
var meetingPolicyUrl = _ref48.meetingPolicyUrl,
|
|
10292
|
+
meetingInstanceId = _ref48.meetingInstanceId,
|
|
10293
|
+
participantId = _ref48.participantId,
|
|
10294
|
+
_ref48$extensionMinut = _ref48.extensionMinutes,
|
|
10295
|
+
extensionMinutes = _ref48$extensionMinut === void 0 ? 30 : _ref48$extensionMinut;
|
|
9997
10296
|
if (!meetingInstanceId || !participantId) {
|
|
9998
10297
|
return _promise.default.reject(new Error('Missing meetingInstanceId or participantId'));
|
|
9999
10298
|
}
|
|
@@ -10607,17 +10906,17 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
10607
10906
|
}, {
|
|
10608
10907
|
key: "setStage",
|
|
10609
10908
|
value: function setStage() {
|
|
10610
|
-
var
|
|
10611
|
-
|
|
10612
|
-
activeSpeakerProportion =
|
|
10613
|
-
customBackground =
|
|
10614
|
-
customLogo =
|
|
10615
|
-
customNameLabel =
|
|
10616
|
-
importantParticipants =
|
|
10617
|
-
|
|
10618
|
-
lockAttendeeViewOnStage =
|
|
10619
|
-
|
|
10620
|
-
showActiveSpeaker =
|
|
10909
|
+
var _ref49 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
10910
|
+
_ref49$activeSpeakerP = _ref49.activeSpeakerProportion,
|
|
10911
|
+
activeSpeakerProportion = _ref49$activeSpeakerP === void 0 ? 0.5 : _ref49$activeSpeakerP,
|
|
10912
|
+
customBackground = _ref49.customBackground,
|
|
10913
|
+
customLogo = _ref49.customLogo,
|
|
10914
|
+
customNameLabel = _ref49.customNameLabel,
|
|
10915
|
+
importantParticipants = _ref49.importantParticipants,
|
|
10916
|
+
_ref49$lockAttendeeVi = _ref49.lockAttendeeViewOnStage,
|
|
10917
|
+
lockAttendeeViewOnStage = _ref49$lockAttendeeVi === void 0 ? false : _ref49$lockAttendeeVi,
|
|
10918
|
+
_ref49$showActiveSpea = _ref49.showActiveSpeaker,
|
|
10919
|
+
showActiveSpeaker = _ref49$showActiveSpea === void 0 ? false : _ref49$showActiveSpea;
|
|
10621
10920
|
var videoLayout = {
|
|
10622
10921
|
overrideDefault: true,
|
|
10623
10922
|
lockAttendeeViewOnStageOnly: lockAttendeeViewOnStage,
|