@webex/plugin-meetings 3.12.0-webex-services-ready.4 → 3.13.0
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/.sdd/manifest.json +1312 -0
- package/.sdd/templates/.source.json +30 -0
- package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +111 -0
- package/.sdd/templates/component-repo/module-docs/module-spec.template.md +321 -0
- package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +59 -0
- package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +49 -0
- package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +42 -0
- package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +120 -0
- package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +206 -0
- package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +90 -0
- package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +68 -0
- package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +111 -0
- package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +57 -0
- package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +69 -0
- package/.sdd/templates/component-repo/standing-docs/RULES.template.md +96 -0
- package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +84 -0
- package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +82 -0
- package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +94 -0
- package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +64 -0
- package/.sdd/templates/component-repo/template-map.json +112 -0
- package/AGENTS.md +130 -4
- package/ai-docs/ARCHITECTURE.md +208 -0
- package/ai-docs/CONTRACTS.md +267 -0
- package/ai-docs/DATA_MODEL.md +64 -0
- package/ai-docs/GETTING_STARTED.md +73 -0
- package/ai-docs/GLOSSARY.md +56 -0
- package/ai-docs/REVIEW_CHECKLIST.md +45 -0
- package/ai-docs/RULES.md +79 -0
- package/ai-docs/SECURITY.md +74 -0
- package/ai-docs/SERVICE_STATE.md +59 -0
- package/ai-docs/SPEC_INDEX.md +85 -0
- package/ai-docs/TEST_INDEX.md +45 -0
- package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +61 -0
- package/ai-docs/patterns/defensive-error-propagation.md +55 -0
- package/ai-docs/patterns/event-scope-emission.md +46 -0
- package/ai-docs/patterns/source-to-test-path-mirroring.md +45 -0
- package/ai-docs/patterns/stateless-plugin-request-classes.md +53 -0
- package/ai-docs/patterns/typed-constants-and-enum-values.md +47 -0
- package/assets/README.md +28 -0
- package/assets/e2ee-0.0.1.js +2 -0
- package/assets/e2ee-0.0.1.wasm +0 -0
- package/dist/aiEnableRequest/index.js +1 -1
- package/dist/annotation/index.js +55 -19
- package/dist/annotation/index.js.map +1 -1
- package/dist/assets/e2ee-0.0.1.js +2 -0
- package/dist/assets/e2ee-0.0.1.wasm +0 -0
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +39 -5
- package/dist/breakouts/index.js.map +1 -1
- package/dist/common/errors/webex-errors.js +7 -2
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/constants.js +6 -5
- package/dist/constants.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +101 -48
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/interceptors/dataChannelAuthToken.js +41 -59
- package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
- package/dist/interceptors/locusRetry.js +1 -1
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interpretation/index.js +46 -12
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/index.js +236 -80
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/types.js +2 -1
- package/dist/locus-info/types.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +225 -175
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/meeting/index.js +355 -299
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/util.js +8 -2
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting/voicea-meeting.js +2 -1
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +10 -3
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +72 -31
- package/dist/meetings/index.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +32 -4
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +11 -1
- package/dist/multistream/sendSlotManager.js.map +1 -1
- package/dist/types/annotation/index.d.ts +19 -0
- package/dist/types/common/errors/webex-errors.d.ts +6 -2
- package/dist/types/config.d.ts +1 -0
- package/dist/types/constants.d.ts +2 -1
- package/dist/types/hashTree/hashTreeParser.d.ts +12 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/locus-info/index.d.ts +45 -1
- package/dist/types/locus-info/types.d.ts +1 -0
- package/dist/types/media/MediaConnectionAwaiter.d.ts +61 -53
- package/dist/types/meeting/index.d.ts +49 -12
- package/dist/types/meeting/util.d.ts +3 -1
- package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
- package/dist/types/meetings/index.d.ts +2 -1
- package/dist/types/multistream/remoteMediaManager.d.ts +18 -0
- package/dist/types/multistream/sendSlotManager.d.ts +5 -1
- package/dist/webinar/index.js +298 -255
- package/dist/webinar/index.js.map +1 -1
- package/package.json +25 -23
- package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
- package/src/annotation/ai-docs/annotation-spec.md +236 -0
- package/src/annotation/index.ts +61 -29
- package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
- package/src/breakouts/index.ts +35 -2
- package/src/common/errors/webex-errors.ts +8 -2
- package/src/config.ts +5 -1
- package/src/constants.ts +2 -1
- package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
- package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
- package/src/hashTree/hashTreeParser.ts +67 -3
- package/src/index.ts +1 -0
- package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
- package/src/interceptors/dataChannelAuthToken.ts +48 -77
- package/src/interceptors/locusRetry.ts +1 -1
- package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
- package/src/interpretation/index.ts +38 -1
- package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
- package/src/locus-info/index.ts +156 -35
- package/src/locus-info/types.ts +1 -0
- package/src/media/MediaConnectionAwaiter.ts +223 -207
- package/src/media/ai-docs/media-spec.md +267 -0
- package/src/meeting/ai-docs/meeting-spec.md +404 -0
- package/src/meeting/index.ts +332 -296
- package/src/meeting/util.ts +7 -4
- package/src/meeting/voicea-meeting.ts +1 -1
- package/src/meeting-info/ai-docs/meeting-info-spec.md +261 -0
- package/src/meeting-info/meeting-info-v2.ts +7 -2
- package/src/meetings/ai-docs/meetings-spec.md +296 -0
- package/src/meetings/index.ts +59 -23
- package/src/member/ai-docs/member-spec.md +196 -0
- package/src/members/ai-docs/members-spec.md +256 -0
- package/src/metrics/ai-docs/metrics-spec.md +185 -0
- package/src/multistream/ai-docs/multistream-spec.md +295 -0
- package/src/multistream/remoteMediaManager.ts +23 -1
- package/src/multistream/sendSlotManager.ts +15 -1
- package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +234 -0
- package/src/reachability/ai-docs/reachability-spec.md +261 -0
- package/src/reactions/ai-docs/reactions-spec.md +198 -0
- package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +272 -0
- package/src/recording-controller/ai-docs/recording-controller-spec.md +223 -0
- package/src/roap/ai-docs/roap-spec.md +241 -0
- package/src/webinar/ai-docs/webinar-spec.md +243 -0
- package/src/webinar/index.ts +168 -188
- package/test/unit/spec/annotation/index.ts +214 -182
- package/test/unit/spec/breakouts/index.ts +145 -13
- package/test/unit/spec/hashTree/hashTreeParser.ts +212 -1
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +81 -99
- package/test/unit/spec/interceptors/locusRetry.ts +29 -1
- package/test/unit/spec/interpretation/index.ts +93 -0
- package/test/unit/spec/locus-info/index.js +397 -0
- package/test/unit/spec/media/MediaConnectionAwaiter.ts +426 -19
- package/test/unit/spec/media/properties.ts +3 -3
- package/test/unit/spec/meeting/index.js +1219 -723
- package/test/unit/spec/meeting/utils.js +52 -18
- package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
- package/test/unit/spec/meeting-info/meetinginfov2.js +69 -1
- package/test/unit/spec/meetings/index.js +145 -43
- package/test/unit/spec/multistream/remoteMediaManager.ts +46 -0
- package/test/unit/spec/multistream/sendSlotManager.ts +30 -2
- package/test/unit/spec/webinar/index.ts +886 -718
package/dist/meeting/index.js
CHANGED
|
@@ -94,6 +94,7 @@ var _joinWebinarError = _interopRequireDefault(require("../common/errors/join-we
|
|
|
94
94
|
var _brbState = require("./brbState");
|
|
95
95
|
var _multistreamNotSupportedError = _interopRequireDefault(require("../common/errors/multistream-not-supported-error"));
|
|
96
96
|
var _joinForbiddenError = _interopRequireDefault(require("../common/errors/join-forbidden-error"));
|
|
97
|
+
var _types = require("../locus-info/types");
|
|
97
98
|
var _aiEnableRequest = _interopRequireDefault(require("../aiEnableRequest"));
|
|
98
99
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof _Symbol && r[_Symbol$iterator] || r["@@iterator"]; if (!t) { if (_Array$isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
99
100
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? _Array$from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -578,16 +579,17 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
578
579
|
(0, _defineProperty3.default)(_this, "promisesWaitingForPropUpdate", {});
|
|
579
580
|
(0, _defineProperty3.default)(_this, "voiceaListenerCallbacks", (0, _defineProperty3.default)((0, _defineProperty3.default)((0, _defineProperty3.default)((0, _defineProperty3.default)({}, _internalPluginVoicea.EVENT_TRIGGERS.VOICEA_ANNOUNCEMENT, function (payload) {
|
|
580
581
|
_this.transcription.languageOptions = payload;
|
|
582
|
+
var eventPayload = _objectSpread({}, payload);
|
|
581
583
|
_loggerProxy.default.logger.debug("".concat(_util.default.getScopeLog({
|
|
582
584
|
file: 'meeting/index',
|
|
583
585
|
function: 'setUpVoiceaListeners'
|
|
584
586
|
}), "event#").concat(_constants.EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION));
|
|
585
587
|
if (_this.getCurUserType() !== 'host') {
|
|
586
|
-
delete
|
|
588
|
+
delete eventPayload.spokenLanguages;
|
|
587
589
|
}
|
|
588
590
|
|
|
589
591
|
// @ts-ignore
|
|
590
|
-
_this.trigger(_constants.EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION,
|
|
592
|
+
_this.trigger(_constants.EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION, eventPayload);
|
|
591
593
|
}), _internalPluginVoicea.EVENT_TRIGGERS.CAPTIONS_TURNED_ON, function () {
|
|
592
594
|
_this.transcription.status = _internalPluginVoicea.TURN_ON_CAPTION_STATUS.ENABLED;
|
|
593
595
|
}), _internalPluginVoicea.EVENT_TRIGGERS.EVA_COMMAND, function (payload) {
|
|
@@ -626,6 +628,19 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
626
628
|
(0, _defineProperty3.default)(_this, "logUploadIntervalIndex", void 0);
|
|
627
629
|
(0, _defineProperty3.default)(_this, "mediaServerIp", void 0);
|
|
628
630
|
(0, _defineProperty3.default)(_this, "llmHealthCheckTimer", void 0);
|
|
631
|
+
/**
|
|
632
|
+
* The LLM channel owned by this meeting for datachannel communication.
|
|
633
|
+
* Created in updateLLMConnection, cleaned up in cleanupLLMConneciton.
|
|
634
|
+
*/
|
|
635
|
+
(0, _defineProperty3.default)(_this, "llmChannel", void 0);
|
|
636
|
+
/**
|
|
637
|
+
* The Voicea channel for transcription/captions, bound to this meeting's LLM channel.
|
|
638
|
+
*/
|
|
639
|
+
(0, _defineProperty3.default)(_this, "voiceaChannel", void 0);
|
|
640
|
+
/**
|
|
641
|
+
* Pending datachannel token saved from join response, used when creating the LLM channel.
|
|
642
|
+
*/
|
|
643
|
+
(0, _defineProperty3.default)(_this, "_pendingDatachannelToken", void 0);
|
|
629
644
|
/** Handles Locus LLM events
|
|
630
645
|
*
|
|
631
646
|
* @param {LocusLLMEvent} event - The Locus LLM event to process
|
|
@@ -664,9 +679,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
664
679
|
}
|
|
665
680
|
switch (e.data.relayType) {
|
|
666
681
|
case _constants3.REACTION_RELAY_TYPES.REACTION:
|
|
682
|
+
// @ts-ignore - config coming from registerPlugin
|
|
667
683
|
if (
|
|
668
684
|
// @ts-ignore - config coming from registerPlugin
|
|
669
|
-
|
|
685
|
+
_this.config.receiveReactions && _this.isReactionsSupported()) {
|
|
670
686
|
var _this$locusInfo, _this$locusInfo$info;
|
|
671
687
|
var member = _this.members.membersCollection.get(e.data.sender.participantId);
|
|
672
688
|
if (!member && !((_this$locusInfo = _this.locusInfo) !== null && _this$locusInfo !== void 0 && (_this$locusInfo$info = _this$locusInfo.info) !== null && _this$locusInfo$info !== void 0 && _this$locusInfo$info.isWebinar)) {
|
|
@@ -710,92 +726,70 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
710
726
|
}, _constants.EVENT_TRIGGERS.MEETING_TRANSCRIPTION_CONNECTED, undefined);
|
|
711
727
|
});
|
|
712
728
|
/**
|
|
713
|
-
* Disconnects and cleans up the
|
|
714
|
-
*
|
|
715
|
-
* Ownership-aware: only calls `disconnectLLM` when this meeting is the
|
|
716
|
-
* current owner of the default LLM session (or when no owner is recorded).
|
|
717
|
-
* Event listeners belonging to this meeting instance are always detached
|
|
718
|
-
* so they do not receive another meeting's relay events.
|
|
729
|
+
* Disconnects and cleans up the LLM channel owned by this meeting.
|
|
719
730
|
*
|
|
720
731
|
* @param {Object} options
|
|
721
|
-
* @param {boolean} [options.removeOnlineListener=true] removes the one-time online listener
|
|
722
732
|
* @param {boolean} [options.throwOnError=true] rethrows disconnect errors when true
|
|
733
|
+
* @param {boolean} [options.preserveVoiceaChannel=false] when true, keeps voiceaChannel for switchLLMChannel() during reconnects
|
|
723
734
|
* @returns {Promise<void>}
|
|
724
735
|
*/
|
|
725
736
|
(0, _defineProperty3.default)(_this, "cleanupLLMConneciton", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
726
737
|
var _ref3,
|
|
727
|
-
_ref3$removeOnlineLis,
|
|
728
|
-
removeOnlineListener,
|
|
729
738
|
_ref3$throwOnError,
|
|
730
739
|
throwOnError,
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
_this$webex$internal$2,
|
|
735
|
-
currentOwnerAfterCleanup,
|
|
736
|
-
_this$webex$internal$3,
|
|
737
|
-
_this$webex$internal$4,
|
|
740
|
+
_ref3$preserveVoiceaC,
|
|
741
|
+
preserveVoiceaChannel,
|
|
742
|
+
_this$voiceaChannel,
|
|
738
743
|
_args = arguments,
|
|
739
744
|
_t;
|
|
740
745
|
return _regenerator.default.wrap(function (_context) {
|
|
741
746
|
while (1) switch (_context.prev = _context.next) {
|
|
742
747
|
case 0:
|
|
743
|
-
_ref3 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, _ref3$
|
|
744
|
-
//
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
748
|
+
_ref3 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, _ref3$throwOnError = _ref3.throwOnError, throwOnError = _ref3$throwOnError === void 0 ? true : _ref3$throwOnError, _ref3$preserveVoiceaC = _ref3.preserveVoiceaChannel, preserveVoiceaChannel = _ref3$preserveVoiceaC === void 0 ? false : _ref3$preserveVoiceaC;
|
|
749
|
+
// Always clear the timer, even if there's no channel
|
|
750
|
+
_this.clearLLMHealthCheckTimer();
|
|
751
|
+
|
|
752
|
+
// Permanent cleanup must deregister voiceaChannel regardless of LLM presence.
|
|
753
|
+
// When a transient reconnect fails (LLM registration error), llmChannel is undefined
|
|
754
|
+
// but voiceaChannel may still exist with listeners attached to the old emitter.
|
|
755
|
+
if (!preserveVoiceaChannel) {
|
|
756
|
+
(_this$voiceaChannel = _this.voiceaChannel) === null || _this$voiceaChannel === void 0 ? void 0 : _this$voiceaChannel.deregisterEvents();
|
|
757
|
+
_this.voiceaChannel = undefined;
|
|
758
|
+
}
|
|
759
|
+
if (_this.llmChannel) {
|
|
760
|
+
_context.next = 1;
|
|
750
761
|
break;
|
|
751
762
|
}
|
|
763
|
+
return _context.abrupt("return");
|
|
764
|
+
case 1:
|
|
765
|
+
_context.prev = 1;
|
|
752
766
|
_context.next = 2;
|
|
753
|
-
return _this.
|
|
767
|
+
return _this.llmChannel.disconnect({
|
|
754
768
|
code: 3050,
|
|
755
769
|
reason: 'done (permanent)'
|
|
756
|
-
}
|
|
770
|
+
});
|
|
757
771
|
case 2:
|
|
758
772
|
_context.next = 4;
|
|
759
773
|
break;
|
|
760
774
|
case 3:
|
|
761
|
-
|
|
762
|
-
case 4:
|
|
763
|
-
_context.next = 6;
|
|
764
|
-
break;
|
|
765
|
-
case 5:
|
|
766
|
-
_context.prev = 5;
|
|
775
|
+
_context.prev = 3;
|
|
767
776
|
_t = _context["catch"](1);
|
|
768
|
-
_loggerProxy.default.logger.error('Meeting:index#cleanupLLMConneciton --> Failed to disconnect
|
|
777
|
+
_loggerProxy.default.logger.error('Meeting:index#cleanupLLMConneciton --> Failed to disconnect LLM channel', _t);
|
|
769
778
|
if (!throwOnError) {
|
|
770
|
-
_context.next =
|
|
779
|
+
_context.next = 4;
|
|
771
780
|
break;
|
|
772
781
|
}
|
|
773
782
|
throw _t;
|
|
774
|
-
case
|
|
775
|
-
_context.prev =
|
|
776
|
-
if (removeOnlineListener) {
|
|
777
|
-
// @ts-ignore - Fix type
|
|
778
|
-
_this.webex.internal.llm.off('online', _this.handleLLMOnline);
|
|
779
|
-
}
|
|
783
|
+
case 4:
|
|
784
|
+
_context.prev = 4;
|
|
780
785
|
_this.stopListeningForLLMEvents();
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
if (isOwner) {
|
|
785
|
-
_this$webex$internal$2 =
|
|
786
|
-
// @ts-ignore - Fix type
|
|
787
|
-
_this.webex.internal.llm.resolveSessionOwnership(_this.id, _constants.LLM_DEFAULT_SESSION), currentOwnerAfterCleanup = _this$webex$internal$2.currentOwner;
|
|
788
|
-
if (currentOwnerAfterCleanup === _this.id) {
|
|
789
|
-
// @ts-ignore - Fix type
|
|
790
|
-
(_this$webex$internal$3 = (_this$webex$internal$4 = _this.webex.internal.llm).setOwnerMeetingId) === null || _this$webex$internal$3 === void 0 ? void 0 : _this$webex$internal$3.call(_this$webex$internal$4, undefined);
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
return _context.finish(6);
|
|
794
|
-
case 7:
|
|
786
|
+
_this.llmChannel = undefined;
|
|
787
|
+
return _context.finish(4);
|
|
788
|
+
case 5:
|
|
795
789
|
case "end":
|
|
796
790
|
return _context.stop();
|
|
797
791
|
}
|
|
798
|
-
}, _callee, null, [[1,
|
|
792
|
+
}, _callee, null, [[1, 3, 4, 5]]);
|
|
799
793
|
})));
|
|
800
794
|
/**
|
|
801
795
|
* Handles ROAP_FAILURE event from the webrtc media connection
|
|
@@ -1485,7 +1479,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1485
1479
|
pendingPromiseResolve = _this$queuedMediaUpda.pendingPromiseResolve,
|
|
1486
1480
|
pendingPromiseReject = _this$queuedMediaUpda.pendingPromiseReject,
|
|
1487
1481
|
mediaUpdateType = _this$queuedMediaUpda.mediaUpdateType,
|
|
1488
|
-
|
|
1482
|
+
options = _this$queuedMediaUpda.options;
|
|
1489
1483
|
_loggerProxy.default.logger.log("Meeting:index#processNextQueuedMediaUpdate --> performing delayed media update type=".concat(mediaUpdateType));
|
|
1490
1484
|
var mediaUpdate = _promise.default.resolve();
|
|
1491
1485
|
switch (mediaUpdateType) {
|
|
@@ -1496,7 +1490,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1496
1490
|
mediaUpdate = _this.requestScreenShareFloor();
|
|
1497
1491
|
break;
|
|
1498
1492
|
case MEDIA_UPDATE_TYPE.UPDATE_MEDIA:
|
|
1499
|
-
mediaUpdate = _this.updateMedia(
|
|
1493
|
+
mediaUpdate = _this.updateMedia(options);
|
|
1500
1494
|
break;
|
|
1501
1495
|
default:
|
|
1502
1496
|
_loggerProxy.default.logger.error("Peer-connection-manager:index#processNextQueuedMediaUpdate --> unsupported media update type ".concat(mediaUpdateType, " found in the queue"));
|
|
@@ -1651,15 +1645,14 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1651
1645
|
|
|
1652
1646
|
// Listener teardown (transcription, annotation, llm/mercury) runs in
|
|
1653
1647
|
// stopListeningForMeetingEvents() before /leave and /end so events
|
|
1654
|
-
// received mid-teardown do not trigger Locus syncs.
|
|
1655
|
-
//
|
|
1656
|
-
//
|
|
1657
|
-
//
|
|
1658
|
-
// Ownership-aware token clear is encapsulated inside clearDataChannelToken().
|
|
1659
|
-
_this.clearDataChannelToken();
|
|
1648
|
+
// received mid-teardown do not trigger Locus syncs.
|
|
1649
|
+
// Token cleanup happens automatically when cleanupLLMConneciton destroys the channel.
|
|
1650
|
+
// A new voiceaChannel is created on the next join. In-session LLM reconnects and
|
|
1651
|
+
// practice-session transitions use their own cleanup paths and preserve the channel.
|
|
1660
1652
|
_context5.next = 1;
|
|
1661
1653
|
return _this.cleanupLLMConneciton({
|
|
1662
|
-
throwOnError: false
|
|
1654
|
+
throwOnError: false,
|
|
1655
|
+
preserveVoiceaChannel: false
|
|
1663
1656
|
});
|
|
1664
1657
|
case 1:
|
|
1665
1658
|
case "end":
|
|
@@ -1859,6 +1852,16 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1859
1852
|
}, {
|
|
1860
1853
|
parent: _this.webex
|
|
1861
1854
|
});
|
|
1855
|
+
/**
|
|
1856
|
+
* VoiceaChannel for transcription/captions. Created without llmChannel;
|
|
1857
|
+
* switchLLMChannel() is called in updateLLMConnection() when LLM connects.
|
|
1858
|
+
* @instance
|
|
1859
|
+
* @type {VoiceaChannel}
|
|
1860
|
+
* @public
|
|
1861
|
+
* @memberof Meeting
|
|
1862
|
+
*/
|
|
1863
|
+
// @ts-ignore - Fix type
|
|
1864
|
+
_this.voiceaChannel = _this.webex.internal.voicea.createChannel();
|
|
1862
1865
|
/**
|
|
1863
1866
|
* helper class for managing receive slots (for multistream media connections)
|
|
1864
1867
|
*/
|
|
@@ -2251,10 +2254,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2251
2254
|
// submitting the client.locus.sync.complete CA event is owned by the metrics
|
|
2252
2255
|
// facade. Wire each method to the layer that owns that responsibility.
|
|
2253
2256
|
saveLatency: function saveLatency() {
|
|
2254
|
-
var _this$webex$internal
|
|
2257
|
+
var _this$webex$internal$;
|
|
2255
2258
|
return (
|
|
2256
2259
|
// @ts-ignore
|
|
2257
|
-
(_this$webex$internal$
|
|
2260
|
+
(_this$webex$internal$ = _this.webex.internal.newMetrics.callDiagnosticLatencies).saveLatency.apply(_this$webex$internal$, arguments)
|
|
2258
2261
|
);
|
|
2259
2262
|
},
|
|
2260
2263
|
saveTimestamp: function saveTimestamp(saveTimestampOptions) {
|
|
@@ -2270,10 +2273,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2270
2273
|
}
|
|
2271
2274
|
},
|
|
2272
2275
|
clearLocusSyncLatency: function clearLocusSyncLatency() {
|
|
2273
|
-
var _this$webex$internal$
|
|
2276
|
+
var _this$webex$internal$2;
|
|
2274
2277
|
return (
|
|
2275
2278
|
// @ts-ignore
|
|
2276
|
-
(_this$webex$internal$
|
|
2279
|
+
(_this$webex$internal$2 = _this.webex.internal.newMetrics.callDiagnosticLatencies).clearLocusSyncLatency.apply(_this$webex$internal$2, arguments)
|
|
2277
2280
|
);
|
|
2278
2281
|
}
|
|
2279
2282
|
}
|
|
@@ -2339,19 +2342,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2339
2342
|
* @private
|
|
2340
2343
|
* @memberof Meeting
|
|
2341
2344
|
*/
|
|
2342
|
-
_this.transcription =
|
|
2343
|
-
captions: [],
|
|
2344
|
-
isListening: false,
|
|
2345
|
-
commandText: '',
|
|
2346
|
-
languageOptions: {
|
|
2347
|
-
currentSpokenLanguage: 'en'
|
|
2348
|
-
},
|
|
2349
|
-
showCaptionBox: false,
|
|
2350
|
-
transcribingRequestStatus: 'INACTIVE',
|
|
2351
|
-
isCaptioning: false,
|
|
2352
|
-
interimCaptions: {},
|
|
2353
|
-
speakerProxy: {}
|
|
2354
|
-
};
|
|
2345
|
+
_this.transcription = _this.getInitialTranscription();
|
|
2355
2346
|
|
|
2356
2347
|
/**
|
|
2357
2348
|
* Password status. If it's PASSWORD_STATUS.REQUIRED then verifyPassword() needs to be called
|
|
@@ -2647,6 +2638,30 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2647
2638
|
*/
|
|
2648
2639
|
(0, _inherits2.default)(Meeting, _StatelessWebexPlugin);
|
|
2649
2640
|
return (0, _createClass2.default)(Meeting, [{
|
|
2641
|
+
key: "getInitialTranscription",
|
|
2642
|
+
value:
|
|
2643
|
+
/**
|
|
2644
|
+
* Returns the initial transcription object shape.
|
|
2645
|
+
* Used by constructor and reset paths to ensure consistent initialization.
|
|
2646
|
+
* @private
|
|
2647
|
+
* @returns {Transcription}
|
|
2648
|
+
*/
|
|
2649
|
+
function getInitialTranscription() {
|
|
2650
|
+
return {
|
|
2651
|
+
captions: [],
|
|
2652
|
+
isListening: false,
|
|
2653
|
+
commandText: '',
|
|
2654
|
+
languageOptions: {
|
|
2655
|
+
currentSpokenLanguage: 'en'
|
|
2656
|
+
},
|
|
2657
|
+
showCaptionBox: false,
|
|
2658
|
+
transcribingRequestStatus: 'INACTIVE',
|
|
2659
|
+
isCaptioning: false,
|
|
2660
|
+
interimCaptions: {},
|
|
2661
|
+
speakerProxy: {}
|
|
2662
|
+
};
|
|
2663
|
+
}
|
|
2664
|
+
}, {
|
|
2650
2665
|
key: "getIngressPayloadTypeCallback",
|
|
2651
2666
|
value: function getIngressPayloadTypeCallback(mediaType, codecMimeType) {
|
|
2652
2667
|
if (this.isMultistream) {
|
|
@@ -2949,7 +2964,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2949
2964
|
// @ts-ignore - config coming from registerPlugin
|
|
2950
2965
|
this.config.installedOrgID, this.locusId, extraParams, {
|
|
2951
2966
|
meetingId: this.id,
|
|
2952
|
-
sendCAevents: sendCAevents
|
|
2967
|
+
sendCAevents: sendCAevents,
|
|
2968
|
+
correlationId: this.correlationId
|
|
2953
2969
|
}, registrationId, null, classificationId);
|
|
2954
2970
|
case 2:
|
|
2955
2971
|
info = _context7.sent;
|
|
@@ -3361,9 +3377,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3361
3377
|
}, {
|
|
3362
3378
|
key: "emitLocusSyncCompleteMetric",
|
|
3363
3379
|
value: function emitLocusSyncCompleteMetric(meetingId, completed) {
|
|
3364
|
-
var _this$webex$internal$
|
|
3380
|
+
var _this$webex$internal$3, _this$webex$internal$4;
|
|
3365
3381
|
// @ts-ignore
|
|
3366
|
-
var llmWebsocketUrl = ((_this$webex$internal$
|
|
3382
|
+
var llmWebsocketUrl = ((_this$webex$internal$3 = this.webex.internal.llm) === null || _this$webex$internal$3 === void 0 ? void 0 : (_this$webex$internal$4 = _this$webex$internal$3.getWebSocketUrl) === null || _this$webex$internal$4 === void 0 ? void 0 : _this$webex$internal$4.call(_this$webex$internal$3)) || undefined;
|
|
3367
3383
|
|
|
3368
3384
|
// Per the LLM sync-latency spec, the event carries the LLM websocket url identifier,
|
|
3369
3385
|
// the llmInfo.dataSet (main, atd-active or atd-unmuted) and the syncLatency block.
|
|
@@ -3508,20 +3524,14 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3508
3524
|
}, {
|
|
3509
3525
|
key: "setUpVoiceaListeners",
|
|
3510
3526
|
value: function setUpVoiceaListeners() {
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
this.
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
this.
|
|
3519
|
-
|
|
3520
|
-
// @ts-ignore
|
|
3521
|
-
this.webex.internal.voicea.on(_internalPluginVoicea.EVENT_TRIGGERS.EVA_COMMAND, this.voiceaListenerCallbacks[_internalPluginVoicea.EVENT_TRIGGERS.EVA_COMMAND]);
|
|
3522
|
-
|
|
3523
|
-
// @ts-ignore
|
|
3524
|
-
this.webex.internal.voicea.on(_internalPluginVoicea.EVENT_TRIGGERS.NEW_CAPTION, this.voiceaListenerCallbacks[_internalPluginVoicea.EVENT_TRIGGERS.NEW_CAPTION]);
|
|
3527
|
+
if (!this.voiceaChannel) {
|
|
3528
|
+
_loggerProxy.default.logger.warn('Meeting:index#setUpVoiceaListeners --> voiceaChannel not available');
|
|
3529
|
+
return;
|
|
3530
|
+
}
|
|
3531
|
+
this.voiceaChannel.on(_internalPluginVoicea.EVENT_TRIGGERS.VOICEA_ANNOUNCEMENT, this.voiceaListenerCallbacks[_internalPluginVoicea.EVENT_TRIGGERS.VOICEA_ANNOUNCEMENT]);
|
|
3532
|
+
this.voiceaChannel.on(_internalPluginVoicea.EVENT_TRIGGERS.CAPTIONS_TURNED_ON, this.voiceaListenerCallbacks[_internalPluginVoicea.EVENT_TRIGGERS.CAPTIONS_TURNED_ON]);
|
|
3533
|
+
this.voiceaChannel.on(_internalPluginVoicea.EVENT_TRIGGERS.EVA_COMMAND, this.voiceaListenerCallbacks[_internalPluginVoicea.EVENT_TRIGGERS.EVA_COMMAND]);
|
|
3534
|
+
this.voiceaChannel.on(_internalPluginVoicea.EVENT_TRIGGERS.NEW_CAPTION, this.voiceaListenerCallbacks[_internalPluginVoicea.EVENT_TRIGGERS.NEW_CAPTION]);
|
|
3525
3535
|
this.areVoiceaEventsSetup = true;
|
|
3526
3536
|
}
|
|
3527
3537
|
|
|
@@ -3828,28 +3838,32 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3828
3838
|
// user need to be joined to start the llm and receive transcription
|
|
3829
3839
|
if (_this12.isJoined()) {
|
|
3830
3840
|
// @ts-ignore - config coming from registerPlugin
|
|
3831
|
-
if (transcribing && !_this12.
|
|
3832
|
-
_this12
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
+
if (transcribing && !_this12.areVoiceaEventsSetup) {
|
|
3842
|
+
var _this12$voiceaChannel;
|
|
3843
|
+
if ((_this12$voiceaChannel = _this12.voiceaChannel) !== null && _this12$voiceaChannel !== void 0 && _this12$voiceaChannel.isLLMConnected()) {
|
|
3844
|
+
_this12.startTranscription();
|
|
3845
|
+
}
|
|
3846
|
+
} else if (!transcribing) {
|
|
3847
|
+
if (_this12.areVoiceaEventsSetup) {
|
|
3848
|
+
_triggerProxy.default.trigger(_this12, {
|
|
3849
|
+
file: 'meeting/index',
|
|
3850
|
+
function: 'setupLocusControlsListener'
|
|
3851
|
+
}, _constants.EVENT_TRIGGERS.MEETING_STOPPED_RECEIVING_TRANSCRIPTION, {
|
|
3852
|
+
caption: caption,
|
|
3853
|
+
transcribing: transcribing
|
|
3854
|
+
});
|
|
3855
|
+
}
|
|
3841
3856
|
}
|
|
3842
3857
|
}
|
|
3843
3858
|
});
|
|
3844
3859
|
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_TRANSCRIPTION_SPOKEN_LANGUAGE_UPDATED, function (_ref13) {
|
|
3845
3860
|
var spokenLanguage = _ref13.spokenLanguage;
|
|
3846
3861
|
if (spokenLanguage) {
|
|
3847
|
-
var _this12$transcription;
|
|
3862
|
+
var _this12$transcription, _this12$voiceaChannel2;
|
|
3848
3863
|
if ((_this12$transcription = _this12.transcription) !== null && _this12$transcription !== void 0 && _this12$transcription.languageOptions) {
|
|
3849
3864
|
_this12.transcription.languageOptions.currentSpokenLanguage = spokenLanguage;
|
|
3850
3865
|
}
|
|
3851
|
-
|
|
3852
|
-
_this12.webex.internal.voicea.onSpokenLanguageUpdate(spokenLanguage, _this12.id);
|
|
3866
|
+
(_this12$voiceaChannel2 = _this12.voiceaChannel) === null || _this12$voiceaChannel2 === void 0 ? void 0 : _this12$voiceaChannel2.onSpokenLanguageUpdate(spokenLanguage, _this12.id);
|
|
3853
3867
|
_triggerProxy.default.trigger(_this12, {
|
|
3854
3868
|
file: 'meeting/index',
|
|
3855
3869
|
function: 'setupLocusControlsListener'
|
|
@@ -3871,8 +3885,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3871
3885
|
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_HESIOD_LLM_ID_UPDATED, function (_ref15) {
|
|
3872
3886
|
var hesiodLlmId = _ref15.hesiodLlmId;
|
|
3873
3887
|
if (hesiodLlmId) {
|
|
3874
|
-
|
|
3875
|
-
_this12.
|
|
3888
|
+
var _this12$voiceaChannel3;
|
|
3889
|
+
(_this12$voiceaChannel3 = _this12.voiceaChannel) === null || _this12$voiceaChannel3 === void 0 ? void 0 : _this12$voiceaChannel3.onCaptionServiceIdUpdate(hesiodLlmId);
|
|
3876
3890
|
}
|
|
3877
3891
|
});
|
|
3878
3892
|
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_BREAKOUT_UPDATED, function (_ref16) {
|
|
@@ -6066,9 +6080,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6066
6080
|
return mediaRequestManager.reset();
|
|
6067
6081
|
});
|
|
6068
6082
|
this.receiveSlotManager.reset();
|
|
6083
|
+
|
|
6084
|
+
// Unpublish/reset send slots while the connection is still open, so each slot's
|
|
6085
|
+
// internal "stop sending" negotiation (and its stream-listener detachment) completes
|
|
6086
|
+
// cleanly instead of racing the connection close below.
|
|
6087
|
+
this.sendSlotManager.reset();
|
|
6069
6088
|
this.mediaProperties.webrtcMediaConnection.close();
|
|
6070
6089
|
this.mediaProperties.unsetPeerConnection();
|
|
6071
|
-
this.sendSlotManager.reset();
|
|
6072
6090
|
this.setNetworkStatus(undefined);
|
|
6073
6091
|
}
|
|
6074
6092
|
if (resetMuteStates) {
|
|
@@ -6494,9 +6512,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6494
6512
|
|
|
6495
6513
|
// let's do a retry (but not on 1-1 calls, because the flow would get too complicated)
|
|
6496
6514
|
shouldRetry = !_util3.default.isOneOnOneCall(this.locusInfo.parsedLocus) && (retryCount < 1 || (_t10 instanceof _webexErrors.UserNotJoinedError || this.isErrorMeaningLocusDroppedUs(_t10)) && retryCount < JOIN_WITH_MEDIA_RETRY_MAX_COUNT);
|
|
6497
|
-
if (_internalPluginMetrics.CallDiagnosticUtils.isSdpOfferCreationError(_t10) || _internalPluginMetrics.CallDiagnosticUtils.isWebrtcApiNotAvailableError(_t10)) {
|
|
6515
|
+
if (_internalPluginMetrics.CallDiagnosticUtils.isSdpOfferCreationError(_t10) || _internalPluginMetrics.CallDiagnosticUtils.isWebrtcApiNotAvailableError(_t10) || this.isLocusUserFullError(_t10)) {
|
|
6498
6516
|
// errors related to offer creation (for example missing H264 codec) will happen again no matter how many times we try,
|
|
6499
6517
|
// so there is no point doing a retry
|
|
6518
|
+
// when the locus is full, we also don't want to retry, because it will just fail again
|
|
6500
6519
|
shouldRetry = false;
|
|
6501
6520
|
}
|
|
6502
6521
|
if (_internalPluginMetrics.CallDiagnosticUtils.isBrowserMediaError(_t10)) {
|
|
@@ -6565,7 +6584,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6565
6584
|
prevError: undefined
|
|
6566
6585
|
};
|
|
6567
6586
|
this.locusInfo.suspendDestroyMeeting(false);
|
|
6568
|
-
|
|
6587
|
+
|
|
6588
|
+
// LOCUS_USER_FULL is a definitive capacity error the client must surface, so it takes
|
|
6589
|
+
// precedence over any earlier retryable error stored in firstError.
|
|
6590
|
+
throw this.isLocusUserFullError(_t10) ? _t10 : firstError !== null && firstError !== void 0 ? firstError : _t10;
|
|
6569
6591
|
case 18:
|
|
6570
6592
|
case "end":
|
|
6571
6593
|
return _context17.stop();
|
|
@@ -6676,9 +6698,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6676
6698
|
reject(new Error('Webex Assistant is not enabled/supported'));
|
|
6677
6699
|
}
|
|
6678
6700
|
try {
|
|
6701
|
+
var _this32$voiceaChannel2, _this32$voiceaChannel3;
|
|
6679
6702
|
var _voiceaListenerCaptionUpdate = function voiceaListenerCaptionUpdate(payload) {
|
|
6680
|
-
|
|
6681
|
-
_this32.
|
|
6703
|
+
var _this32$voiceaChannel;
|
|
6704
|
+
(_this32$voiceaChannel = _this32.voiceaChannel) === null || _this32$voiceaChannel === void 0 ? void 0 : _this32$voiceaChannel.off(_internalPluginVoicea.EVENT_TRIGGERS.CAPTION_LANGUAGE_UPDATE, _voiceaListenerCaptionUpdate);
|
|
6682
6705
|
var statusCode = payload.statusCode;
|
|
6683
6706
|
if (statusCode === 200) {
|
|
6684
6707
|
_this32.transcription.languageOptions = _objectSpread(_objectSpread({}, _this32.transcription.languageOptions), {}, {
|
|
@@ -6689,10 +6712,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6689
6712
|
reject(payload);
|
|
6690
6713
|
}
|
|
6691
6714
|
};
|
|
6692
|
-
|
|
6693
|
-
_this32.
|
|
6694
|
-
// @ts-ignore
|
|
6695
|
-
_this32.webex.internal.voicea.requestLanguage(language);
|
|
6715
|
+
(_this32$voiceaChannel2 = _this32.voiceaChannel) === null || _this32$voiceaChannel2 === void 0 ? void 0 : _this32$voiceaChannel2.on(_internalPluginVoicea.EVENT_TRIGGERS.CAPTION_LANGUAGE_UPDATE, _voiceaListenerCaptionUpdate);
|
|
6716
|
+
(_this32$voiceaChannel3 = _this32.voiceaChannel) === null || _this32$voiceaChannel3 === void 0 ? void 0 : _this32$voiceaChannel3.requestLanguage(language);
|
|
6696
6717
|
} catch (error) {
|
|
6697
6718
|
_loggerProxy.default.logger.error("Meeting:index#setCaptionLanguage --> ".concat(error));
|
|
6698
6719
|
reject(error);
|
|
@@ -6719,9 +6740,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6719
6740
|
reject(new Error('Only host can set spoken language'));
|
|
6720
6741
|
}
|
|
6721
6742
|
try {
|
|
6743
|
+
var _this33$voiceaChannel2, _this33$voiceaChannel3;
|
|
6722
6744
|
var _voiceaListenerLanguageUpdate = function voiceaListenerLanguageUpdate(payload) {
|
|
6723
|
-
|
|
6724
|
-
_this33.
|
|
6745
|
+
var _this33$voiceaChannel;
|
|
6746
|
+
(_this33$voiceaChannel = _this33.voiceaChannel) === null || _this33$voiceaChannel === void 0 ? void 0 : _this33$voiceaChannel.off(_internalPluginVoicea.EVENT_TRIGGERS.SPOKEN_LANGUAGE_UPDATE, _voiceaListenerLanguageUpdate);
|
|
6725
6747
|
var languageCode = payload.languageCode;
|
|
6726
6748
|
if (languageCode) {
|
|
6727
6749
|
_this33.transcription.languageOptions = _objectSpread(_objectSpread({}, _this33.transcription.languageOptions), {}, {
|
|
@@ -6732,12 +6754,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6732
6754
|
reject(payload);
|
|
6733
6755
|
}
|
|
6734
6756
|
};
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
_this33.webex.internal.voicea.on(_internalPluginVoicea.EVENT_TRIGGERS.SPOKEN_LANGUAGE_UPDATE, _voiceaListenerLanguageUpdate);
|
|
6738
|
-
|
|
6739
|
-
// @ts-ignore
|
|
6740
|
-
_this33.webex.internal.voicea.setSpokenLanguage(language);
|
|
6757
|
+
(_this33$voiceaChannel2 = _this33.voiceaChannel) === null || _this33$voiceaChannel2 === void 0 ? void 0 : _this33$voiceaChannel2.on(_internalPluginVoicea.EVENT_TRIGGERS.SPOKEN_LANGUAGE_UPDATE, _voiceaListenerLanguageUpdate);
|
|
6758
|
+
(_this33$voiceaChannel3 = _this33.voiceaChannel) === null || _this33$voiceaChannel3 === void 0 ? void 0 : _this33$voiceaChannel3.setSpokenLanguage(language);
|
|
6741
6759
|
} catch (error) {
|
|
6742
6760
|
_loggerProxy.default.logger.error("Meeting:index#setSpokenLanguage --> ".concat(error));
|
|
6743
6761
|
reject(error);
|
|
@@ -6760,23 +6778,28 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6760
6778
|
while (1) switch (_context19.prev = _context19.next) {
|
|
6761
6779
|
case 0:
|
|
6762
6780
|
if (!this.isJoined()) {
|
|
6763
|
-
_context19.next =
|
|
6781
|
+
_context19.next = 6;
|
|
6764
6782
|
break;
|
|
6765
6783
|
}
|
|
6766
6784
|
_loggerProxy.default.logger.info('Meeting:index#startTranscription --> Attempting to enable transcription!');
|
|
6767
6785
|
_context19.prev = 1;
|
|
6786
|
+
if (this.voiceaChannel) {
|
|
6787
|
+
_context19.next = 2;
|
|
6788
|
+
break;
|
|
6789
|
+
}
|
|
6790
|
+
_loggerProxy.default.logger.warn('Meeting:index#startTranscription --> voiceaChannel not available');
|
|
6791
|
+
return _context19.abrupt("return");
|
|
6792
|
+
case 2:
|
|
6768
6793
|
if (!this.areVoiceaEventsSetup) {
|
|
6769
6794
|
this.setUpVoiceaListeners();
|
|
6770
6795
|
}
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
_context19.next = 2;
|
|
6774
|
-
return this.webex.internal.voicea.turnOnCaptions(options === null || options === void 0 ? void 0 : options.spokenLanguage);
|
|
6775
|
-
case 2:
|
|
6776
|
-
_context19.next = 4;
|
|
6777
|
-
break;
|
|
6796
|
+
_context19.next = 3;
|
|
6797
|
+
return this.voiceaChannel.turnOnCaptions(options === null || options === void 0 ? void 0 : options.spokenLanguage);
|
|
6778
6798
|
case 3:
|
|
6779
|
-
_context19.
|
|
6799
|
+
_context19.next = 5;
|
|
6800
|
+
break;
|
|
6801
|
+
case 4:
|
|
6802
|
+
_context19.prev = 4;
|
|
6780
6803
|
_t12 = _context19["catch"](1);
|
|
6781
6804
|
_loggerProxy.default.logger.error("Meeting:index#startTranscription --> ".concat(_t12));
|
|
6782
6805
|
_metrics.default.sendBehavioralMetric(_constants2.default.RECEIVE_TRANSCRIPTION_FAILURE, {
|
|
@@ -6784,40 +6807,59 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6784
6807
|
reason: _t12.message,
|
|
6785
6808
|
stack: _t12.stack
|
|
6786
6809
|
});
|
|
6787
|
-
case 4:
|
|
6788
|
-
_context19.next = 6;
|
|
6789
|
-
break;
|
|
6790
6810
|
case 5:
|
|
6811
|
+
_context19.next = 7;
|
|
6812
|
+
break;
|
|
6813
|
+
case 6:
|
|
6791
6814
|
_loggerProxy.default.logger.error("Meeting:index#startTranscription --> meeting joined : ".concat(this.isJoined()));
|
|
6792
6815
|
throw new Error('Meeting is not joined');
|
|
6793
|
-
case
|
|
6816
|
+
case 7:
|
|
6794
6817
|
case "end":
|
|
6795
6818
|
return _context19.stop();
|
|
6796
6819
|
}
|
|
6797
|
-
}, _callee19, this, [[1,
|
|
6820
|
+
}, _callee19, this, [[1, 4]]);
|
|
6798
6821
|
}));
|
|
6799
6822
|
function startTranscription(_x15) {
|
|
6800
6823
|
return _startTranscription.apply(this, arguments);
|
|
6801
6824
|
}
|
|
6802
6825
|
return startTranscription;
|
|
6803
|
-
}()
|
|
6826
|
+
}()
|
|
6827
|
+
/**
|
|
6828
|
+
* Starts transcription when requested by the current Locus controls and an
|
|
6829
|
+
* active LLM channel is ready.
|
|
6830
|
+
* @internal
|
|
6831
|
+
* @returns {void}
|
|
6832
|
+
*/
|
|
6833
|
+
)
|
|
6834
|
+
}, {
|
|
6835
|
+
key: "startTranscriptionIfNeeded",
|
|
6836
|
+
value: function startTranscriptionIfNeeded() {
|
|
6837
|
+
var _this$locusInfo$contr2, _this$locusInfo$contr3, _this$voiceaChannel2;
|
|
6838
|
+
if ((_this$locusInfo$contr2 = this.locusInfo.controls) !== null && _this$locusInfo$contr2 !== void 0 && (_this$locusInfo$contr3 = _this$locusInfo$contr2.transcribe) !== null && _this$locusInfo$contr3 !== void 0 && _this$locusInfo$contr3.transcribing && !this.areVoiceaEventsSetup && (_this$voiceaChannel2 = this.voiceaChannel) !== null && _this$voiceaChannel2 !== void 0 && _this$voiceaChannel2.isLLMConnected()) {
|
|
6839
|
+
this.startTranscription();
|
|
6840
|
+
}
|
|
6841
|
+
}
|
|
6804
6842
|
}, {
|
|
6805
6843
|
key: "isRelayEventRouteValid",
|
|
6806
6844
|
value:
|
|
6807
6845
|
/**
|
|
6808
6846
|
* Verifies the relay event was delivered for the active LLM session binding.
|
|
6847
|
+
* With the factory pattern, each meeting owns its channel, so we just verify
|
|
6848
|
+
* the route matches our channel's binding or the practice session binding.
|
|
6809
6849
|
* @param {RelayEvent} event Event object coming from LLM Connection
|
|
6810
6850
|
* @returns {boolean}
|
|
6811
6851
|
*/
|
|
6812
6852
|
function isRelayEventRouteValid(event) {
|
|
6813
|
-
var _event$headers;
|
|
6853
|
+
var _event$headers, _this$webinar$isPract, _this$webinar, _this$webinar2, _this$llmChannel;
|
|
6814
6854
|
var route = event === null || event === void 0 ? void 0 : (_event$headers = event.headers) === null || _event$headers === void 0 ? void 0 : _event$headers.route;
|
|
6815
6855
|
if (!route) {
|
|
6816
6856
|
return true;
|
|
6817
6857
|
}
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6858
|
+
|
|
6859
|
+
// With the factory pattern, both channels may be connected simultaneously.
|
|
6860
|
+
// Determine which session is "active" based on whether PS channel is connected.
|
|
6861
|
+
var isPracticeSession = (_this$webinar$isPract = (_this$webinar = this.webinar) === null || _this$webinar === void 0 ? void 0 : _this$webinar.isPracticeSessionLLMChannelConnected()) !== null && _this$webinar$isPract !== void 0 ? _this$webinar$isPract : false;
|
|
6862
|
+
var expectedBinding = isPracticeSession ? (_this$webinar2 = this.webinar) === null || _this$webinar2 === void 0 ? void 0 : _this$webinar2.getPracticeSessionBinding() : (_this$llmChannel = this.llmChannel) === null || _this$llmChannel === void 0 ? void 0 : _this$llmChannel.getBinding();
|
|
6821
6863
|
if (!expectedBinding || route === expectedBinding) {
|
|
6822
6864
|
return true;
|
|
6823
6865
|
}
|
|
@@ -6831,20 +6873,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6831
6873
|
* @returns {void}
|
|
6832
6874
|
*/
|
|
6833
6875
|
function stopTranscription() {
|
|
6834
|
-
|
|
6835
|
-
this.
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
this.
|
|
6839
|
-
|
|
6840
|
-
// @ts-ignore
|
|
6841
|
-
this.webex.internal.voicea.off(_internalPluginVoicea.EVENT_TRIGGERS.EVA_COMMAND, this.voiceaListenerCallbacks[_internalPluginVoicea.EVENT_TRIGGERS.EVA_COMMAND]);
|
|
6842
|
-
|
|
6843
|
-
// @ts-ignore
|
|
6844
|
-
this.webex.internal.voicea.off(_internalPluginVoicea.EVENT_TRIGGERS.NEW_CAPTION, this.voiceaListenerCallbacks[_internalPluginVoicea.EVENT_TRIGGERS.NEW_CAPTION]);
|
|
6845
|
-
|
|
6846
|
-
// @ts-ignore
|
|
6847
|
-
this.webex.internal.voicea.deregisterEvents();
|
|
6876
|
+
var _this$voiceaChannel3, _this$voiceaChannel4, _this$voiceaChannel5, _this$voiceaChannel6, _this$voiceaChannel7;
|
|
6877
|
+
(_this$voiceaChannel3 = this.voiceaChannel) === null || _this$voiceaChannel3 === void 0 ? void 0 : _this$voiceaChannel3.off(_internalPluginVoicea.EVENT_TRIGGERS.VOICEA_ANNOUNCEMENT, this.voiceaListenerCallbacks[_internalPluginVoicea.EVENT_TRIGGERS.VOICEA_ANNOUNCEMENT]);
|
|
6878
|
+
(_this$voiceaChannel4 = this.voiceaChannel) === null || _this$voiceaChannel4 === void 0 ? void 0 : _this$voiceaChannel4.off(_internalPluginVoicea.EVENT_TRIGGERS.CAPTIONS_TURNED_ON, this.voiceaListenerCallbacks[_internalPluginVoicea.EVENT_TRIGGERS.CAPTIONS_TURNED_ON]);
|
|
6879
|
+
(_this$voiceaChannel5 = this.voiceaChannel) === null || _this$voiceaChannel5 === void 0 ? void 0 : _this$voiceaChannel5.off(_internalPluginVoicea.EVENT_TRIGGERS.EVA_COMMAND, this.voiceaListenerCallbacks[_internalPluginVoicea.EVENT_TRIGGERS.EVA_COMMAND]);
|
|
6880
|
+
(_this$voiceaChannel6 = this.voiceaChannel) === null || _this$voiceaChannel6 === void 0 ? void 0 : _this$voiceaChannel6.off(_internalPluginVoicea.EVENT_TRIGGERS.NEW_CAPTION, this.voiceaListenerCallbacks[_internalPluginVoicea.EVENT_TRIGGERS.NEW_CAPTION]);
|
|
6881
|
+
(_this$voiceaChannel7 = this.voiceaChannel) === null || _this$voiceaChannel7 === void 0 ? void 0 : _this$voiceaChannel7.deregisterEvents();
|
|
6848
6882
|
this.areVoiceaEventsSetup = false;
|
|
6849
6883
|
this.triggerStopReceivingTranscriptionEvent();
|
|
6850
6884
|
}
|
|
@@ -6873,15 +6907,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6873
6907
|
key: "restoreLLMSubscriptionsIfNeeded",
|
|
6874
6908
|
value: function restoreLLMSubscriptionsIfNeeded() {
|
|
6875
6909
|
try {
|
|
6876
|
-
var _this$
|
|
6877
|
-
var keepTranscriptionSubscribed =
|
|
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);
|
|
6910
|
+
var _this$voiceaChannel8, _this$voiceaChannel9;
|
|
6911
|
+
var keepTranscriptionSubscribed = (_this$voiceaChannel8 = this.voiceaChannel) === null || _this$voiceaChannel8 === void 0 ? void 0 : _this$voiceaChannel8.getKeepTranscriptionSubscribed();
|
|
6879
6912
|
if (!keepTranscriptionSubscribed) {
|
|
6880
6913
|
return;
|
|
6881
6914
|
}
|
|
6882
|
-
|
|
6883
|
-
// @ts-ignore
|
|
6884
|
-
this.webex.internal.voicea.updateSubchannelSubscriptions({
|
|
6915
|
+
(_this$voiceaChannel9 = this.voiceaChannel) === null || _this$voiceaChannel9 === void 0 ? void 0 : _this$voiceaChannel9.updateSubchannelSubscriptions({
|
|
6885
6916
|
subscribe: ['transcription']
|
|
6886
6917
|
});
|
|
6887
6918
|
} catch (error) {
|
|
@@ -7092,10 +7123,6 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7092
7123
|
_this34.saveDataChannelToken(join);
|
|
7093
7124
|
// @ts-ignore - config coming from registerPlugin
|
|
7094
7125
|
if (_this34.config.enableAutomaticLLM) {
|
|
7095
|
-
// @ts-ignore
|
|
7096
|
-
_this34.webex.internal.llm.off('online', _this34.handleLLMOnline);
|
|
7097
|
-
// @ts-ignore
|
|
7098
|
-
_this34.webex.internal.llm.on('online', _this34.handleLLMOnline);
|
|
7099
7126
|
_this34.updateLLMConnection({
|
|
7100
7127
|
isInitialJoinPhase: true
|
|
7101
7128
|
}).catch(function (error) {
|
|
@@ -7135,11 +7162,11 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7135
7162
|
// first cancel any existing timer
|
|
7136
7163
|
this.clearLLMHealthCheckTimer();
|
|
7137
7164
|
this.llmHealthCheckTimer = setTimeout(function () {
|
|
7138
|
-
|
|
7139
|
-
var isConnected = _this35.
|
|
7165
|
+
var _this35$llmChannel$is, _this35$llmChannel;
|
|
7166
|
+
var isConnected = (_this35$llmChannel$is = (_this35$llmChannel = _this35.llmChannel) === null || _this35$llmChannel === void 0 ? void 0 : _this35$llmChannel.isConnected()) !== null && _this35$llmChannel$is !== void 0 ? _this35$llmChannel$is : false;
|
|
7140
7167
|
if (!isConnected) {
|
|
7141
|
-
|
|
7142
|
-
var hasEverConnected = _this35.
|
|
7168
|
+
var _this35$llmChannel$ha, _this35$llmChannel2;
|
|
7169
|
+
var hasEverConnected = (_this35$llmChannel$ha = (_this35$llmChannel2 = _this35.llmChannel) === null || _this35$llmChannel2 === void 0 ? void 0 : _this35$llmChannel2.hasEverConnected) !== null && _this35$llmChannel$ha !== void 0 ? _this35$llmChannel$ha : false;
|
|
7143
7170
|
|
|
7144
7171
|
// only send metric if not connected - to avoid too many metrics
|
|
7145
7172
|
_metrics.default.sendBehavioralMetric(_constants2.default.LLM_HEALTHCHECK_FAILURE, {
|
|
@@ -7177,10 +7204,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7177
7204
|
}, {
|
|
7178
7205
|
key: "stopListeningForLLMEvents",
|
|
7179
7206
|
value: function stopListeningForLLMEvents() {
|
|
7180
|
-
|
|
7181
|
-
this.
|
|
7182
|
-
|
|
7183
|
-
this.
|
|
7207
|
+
var _this$llmChannel2, _this$llmChannel3, _this$llmChannel4, _this$breakouts3;
|
|
7208
|
+
(_this$llmChannel2 = this.llmChannel) === null || _this$llmChannel2 === void 0 ? void 0 : _this$llmChannel2.off('event:relay.event', this.processRelayEvent);
|
|
7209
|
+
(_this$llmChannel3 = this.llmChannel) === null || _this$llmChannel3 === void 0 ? void 0 : _this$llmChannel3.off(_constants.LOCUS_LLM_EVENT, this.processLocusLLMEvent);
|
|
7210
|
+
(_this$llmChannel4 = this.llmChannel) === null || _this$llmChannel4 === void 0 ? void 0 : _this$llmChannel4.off('online', this.handleLLMOnline);
|
|
7211
|
+
(_this$breakouts3 = this.breakouts) === null || _this$breakouts3 === void 0 ? void 0 : _this$breakouts3.unregisterLLMChannel();
|
|
7212
|
+
// voiceaChannel persists across LLM reconnects; switchLLMChannel() handles re-subscribing
|
|
7184
7213
|
this.clearLLMHealthCheckTimer();
|
|
7185
7214
|
}
|
|
7186
7215
|
|
|
@@ -7205,30 +7234,31 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7205
7234
|
value: function stopListeningForMeetingEvents() {
|
|
7206
7235
|
this.stopListeningForLLMEvents();
|
|
7207
7236
|
this.stopListeningForMercuryEvents();
|
|
7208
|
-
if (this.
|
|
7237
|
+
if (this.areVoiceaEventsSetup) {
|
|
7209
7238
|
this.stopTranscription();
|
|
7210
|
-
this.transcription = undefined;
|
|
7211
7239
|
}
|
|
7240
|
+
// Reset to initial shape instead of null - transcription is always a valid object
|
|
7241
|
+
this.transcription = this.getInitialTranscription();
|
|
7212
7242
|
this.annotation.deregisterEvents();
|
|
7213
7243
|
}
|
|
7214
7244
|
}, {
|
|
7215
|
-
key: "
|
|
7245
|
+
key: "setLLMChannelDataToken",
|
|
7216
7246
|
value:
|
|
7217
7247
|
/**
|
|
7218
|
-
*
|
|
7219
|
-
*
|
|
7248
|
+
* Sets the datachannel token on the meeting's LLM channel.
|
|
7249
|
+
* Used by the DataChannelAuthTokenInterceptor after refreshing tokens.
|
|
7250
|
+
* @param {string} token - The new datachannel token
|
|
7220
7251
|
* @returns {void}
|
|
7221
7252
|
*/
|
|
7222
|
-
function
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
// @ts-ignore
|
|
7226
|
-
this.webex.internal.llm.clearDatachannelToken(_constants.LLM_PRACTICE_SESSION, this.id);
|
|
7253
|
+
function setLLMChannelDataToken(token) {
|
|
7254
|
+
var _this$llmChannel5;
|
|
7255
|
+
(_this$llmChannel5 = this.llmChannel) === null || _this$llmChannel5 === void 0 ? void 0 : _this$llmChannel5.setDatachannelToken(token);
|
|
7227
7256
|
}
|
|
7228
7257
|
|
|
7229
7258
|
/**
|
|
7230
|
-
* Saves the data channel tokens from the join response
|
|
7231
|
-
*
|
|
7259
|
+
* Saves the data channel tokens from the join response.
|
|
7260
|
+
* Default session token is stored on this.llmChannel when available.
|
|
7261
|
+
* Practice session token is stored on the webinar's practice LLM channel.
|
|
7232
7262
|
* @param {Object} join - The parsed join response (from MeetingUtil.parseLocusJoin)
|
|
7233
7263
|
* @returns {void}
|
|
7234
7264
|
*/
|
|
@@ -7238,13 +7268,20 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7238
7268
|
var _join$locus, _join$locus$self, _join$locus2, _join$locus2$self;
|
|
7239
7269
|
var datachannelToken = join === null || join === void 0 ? void 0 : (_join$locus = join.locus) === null || _join$locus === void 0 ? void 0 : (_join$locus$self = _join$locus.self) === null || _join$locus$self === void 0 ? void 0 : _join$locus$self.datachannelToken;
|
|
7240
7270
|
var practiceSessionDatachannelToken = join === null || join === void 0 ? void 0 : (_join$locus2 = join.locus) === null || _join$locus2 === void 0 ? void 0 : (_join$locus2$self = _join$locus2.self) === null || _join$locus2$self === void 0 ? void 0 : _join$locus2$self.practiceSessionDatachannelToken;
|
|
7271
|
+
|
|
7272
|
+
// Store default session token on our LLM channel if it exists
|
|
7273
|
+
if (datachannelToken && this.llmChannel) {
|
|
7274
|
+
this.llmChannel.setDatachannelToken(datachannelToken);
|
|
7275
|
+
}
|
|
7276
|
+
|
|
7277
|
+
// Store the token temporarily for use when channel is created
|
|
7241
7278
|
if (datachannelToken) {
|
|
7242
|
-
|
|
7243
|
-
this.webex.internal.llm.setDatachannelToken(datachannelToken, _constants.LLM_DEFAULT_SESSION, this.id);
|
|
7279
|
+
this._pendingDatachannelToken = datachannelToken;
|
|
7244
7280
|
}
|
|
7281
|
+
|
|
7282
|
+
// Practice session token is handled by webinar
|
|
7245
7283
|
if (practiceSessionDatachannelToken) {
|
|
7246
|
-
|
|
7247
|
-
this.webex.internal.llm.setDatachannelToken(practiceSessionDatachannelToken, _constants.LLM_PRACTICE_SESSION, this.id);
|
|
7284
|
+
this.webinar.setPracticeSessionDatachannelToken(practiceSessionDatachannelToken);
|
|
7248
7285
|
}
|
|
7249
7286
|
}
|
|
7250
7287
|
|
|
@@ -7257,13 +7294,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7257
7294
|
key: "ensureDefaultDatachannelTokenAfterAdmit",
|
|
7258
7295
|
value: (function () {
|
|
7259
7296
|
var _ensureDefaultDatachannelTokenAfterAdmit = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee21() {
|
|
7260
|
-
var _response$body, datachannelToken, isDataChannelTokenEnabled, response, fetchedDatachannelToken, msg, _t14;
|
|
7297
|
+
var _this$llmChannel$getD, _this$llmChannel6, _response$body, datachannelToken, isDataChannelTokenEnabled, response, fetchedDatachannelToken, msg, _t14;
|
|
7261
7298
|
return _regenerator.default.wrap(function (_context21) {
|
|
7262
7299
|
while (1) switch (_context21.prev = _context21.next) {
|
|
7263
7300
|
case 0:
|
|
7264
7301
|
_context21.prev = 0;
|
|
7265
|
-
// @ts-ignore
|
|
7266
|
-
datachannelToken = this.webex.internal.llm.getDatachannelToken(_constants.LLM_DEFAULT_SESSION, this.id); // @ts-ignore
|
|
7302
|
+
datachannelToken = (_this$llmChannel$getD = (_this$llmChannel6 = this.llmChannel) === null || _this$llmChannel6 === void 0 ? void 0 : _this$llmChannel6.getDatachannelToken()) !== null && _this$llmChannel$getD !== void 0 ? _this$llmChannel$getD : this._pendingDatachannelToken; // @ts-ignore
|
|
7267
7303
|
_context21.next = 1;
|
|
7268
7304
|
return this.webex.internal.llm.isDataChannelTokenEnabled();
|
|
7269
7305
|
case 1:
|
|
@@ -7289,8 +7325,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7289
7325
|
}
|
|
7290
7326
|
return _context21.abrupt("return", false);
|
|
7291
7327
|
case 4:
|
|
7292
|
-
//
|
|
7293
|
-
|
|
7328
|
+
// Store on channel if exists, otherwise save as pending
|
|
7329
|
+
if (this.llmChannel) {
|
|
7330
|
+
this.llmChannel.setDatachannelToken(fetchedDatachannelToken);
|
|
7331
|
+
} else {
|
|
7332
|
+
this._pendingDatachannelToken = fetchedDatachannelToken;
|
|
7333
|
+
}
|
|
7294
7334
|
return _context21.abrupt("return", true);
|
|
7295
7335
|
case 5:
|
|
7296
7336
|
_context21.prev = 5;
|
|
@@ -7323,7 +7363,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7323
7363
|
key: "updateLLMConnection",
|
|
7324
7364
|
value: (function () {
|
|
7325
7365
|
var _updateLLMConnection = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee22() {
|
|
7326
|
-
var
|
|
7366
|
+
var _this$_pendingDatacha,
|
|
7367
|
+
_this36 = this;
|
|
7327
7368
|
var _ref40,
|
|
7328
7369
|
_ref40$isInitialJoinP,
|
|
7329
7370
|
isInitialJoinPhase,
|
|
@@ -7336,12 +7377,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7336
7377
|
datachannelUrl,
|
|
7337
7378
|
isJoined,
|
|
7338
7379
|
dataChannelUrl,
|
|
7339
|
-
|
|
7340
|
-
currentOwner,
|
|
7341
|
-
wasConnected,
|
|
7380
|
+
isSameUrls,
|
|
7342
7381
|
datachannelToken,
|
|
7343
|
-
refreshHandlerOwnerMeetingId,
|
|
7344
|
-
shouldAlignRefreshHandlerAfterOwnershipClaim,
|
|
7345
7382
|
_args22 = arguments;
|
|
7346
7383
|
return _regenerator.default.wrap(function (_context22) {
|
|
7347
7384
|
while (1) switch (_context22.prev = _context22.next) {
|
|
@@ -7350,52 +7387,19 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7350
7387
|
// @ts-ignore - Fix type
|
|
7351
7388
|
_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;
|
|
7352
7389
|
isJoined = this.isJoined();
|
|
7353
|
-
dataChannelUrl = datachannelUrl; //
|
|
7354
|
-
|
|
7355
|
-
// it. Another meeting's `updateLLMConnection` must be ignored here to
|
|
7356
|
-
// avoid killing the socket it relies on. We only proceed to manage the
|
|
7357
|
-
// connection when this meeting is the current owner, or when no owner is
|
|
7358
|
-
// set yet (first claim).
|
|
7359
|
-
// @ts-ignore - Fix type
|
|
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
|
|
7361
|
-
// connected, we must respect current ownership. If it was disconnected,
|
|
7362
|
-
// this flow may reclaim stale owner tags after a fresh connect.
|
|
7363
|
-
// @ts-ignore - Fix type
|
|
7364
|
-
wasConnected = this.webex.internal.llm.isConnected(); // Prefer ownership-scoped token read. For disconnected stale-owner reclaim
|
|
7365
|
-
// flows, fallback to ownerless read so initial register can still carry a
|
|
7366
|
-
// token and recover from stale ownership without 401/403 dead-end.
|
|
7367
|
-
// @ts-ignore - Fix type
|
|
7368
|
-
datachannelToken = this.webex.internal.llm.getDatachannelToken(_constants.LLM_DEFAULT_SESSION, this.id);
|
|
7369
|
-
if (!datachannelToken && !wasConnected && currentOwner && currentOwner !== this.id) {
|
|
7370
|
-
// @ts-ignore - Fix type
|
|
7371
|
-
datachannelToken = this.webex.internal.llm.getDatachannelToken(_constants.LLM_DEFAULT_SESSION);
|
|
7372
|
-
}
|
|
7373
|
-
|
|
7374
|
-
// @ts-ignore - Fix type
|
|
7375
|
-
if (!wasConnected) {
|
|
7390
|
+
dataChannelUrl = datachannelUrl; // If we have an existing channel, check if we should reuse it or clean it up
|
|
7391
|
+
if (!this.llmChannel) {
|
|
7376
7392
|
_context22.next = 3;
|
|
7377
7393
|
break;
|
|
7378
7394
|
}
|
|
7379
|
-
|
|
7395
|
+
isSameUrls = url === this.llmChannel.getLocusUrl() && dataChannelUrl === this.llmChannel.getDatachannelUrl(); // If already connected to same URLs, skip reconnect
|
|
7396
|
+
if (!(this.llmChannel.isConnected() && isSameUrls && isJoined)) {
|
|
7380
7397
|
_context22.next = 1;
|
|
7381
7398
|
break;
|
|
7382
7399
|
}
|
|
7383
|
-
// Another meeting owns the live LLM socket. We must not disconnect
|
|
7384
|
-
// or reconfigure it -- doing so would tear down a session the
|
|
7385
|
-
// owning meeting still relies on. Locus/datachannel URL mismatch is
|
|
7386
|
-
// expected here (each meeting has its own locus URL) and is NOT a
|
|
7387
|
-
// valid signal of staleness, so we never reclaim from this path.
|
|
7388
|
-
// The only safe reclaim mechanism is the `finally`-block owner-tag
|
|
7389
|
-
// release in `cleanupLLMConneciton`, which fires when this meeting
|
|
7390
|
-
// itself is being torn down.
|
|
7391
|
-
_loggerProxy.default.logger.info("Meeting:index#updateLLMConnection --> skipping; LLM owned by meeting ".concat(currentOwner, ", not ").concat(this.id));
|
|
7392
7400
|
return _context22.abrupt("return", undefined);
|
|
7393
7401
|
case 1:
|
|
7394
|
-
if (!(
|
|
7395
|
-
// @ts-ignore - Fix type
|
|
7396
|
-
url === this.webex.internal.llm.getLocusUrl() &&
|
|
7397
|
-
// @ts-ignore - Fix type
|
|
7398
|
-
dataChannelUrl === this.webex.internal.llm.getDatachannelUrl() && isJoined)) {
|
|
7402
|
+
if (!(this.llmChannel.isConnecting() && isSameUrls && isJoined)) {
|
|
7399
7403
|
_context22.next = 2;
|
|
7400
7404
|
break;
|
|
7401
7405
|
}
|
|
@@ -7403,68 +7407,74 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7403
7407
|
case 2:
|
|
7404
7408
|
_context22.next = 3;
|
|
7405
7409
|
return this.cleanupLLMConneciton({
|
|
7406
|
-
|
|
7410
|
+
preserveVoiceaChannel: true
|
|
7407
7411
|
});
|
|
7408
7412
|
case 3:
|
|
7409
|
-
if (isJoined) {
|
|
7413
|
+
if (!(!isJoined || !url || !dataChannelUrl)) {
|
|
7410
7414
|
_context22.next = 4;
|
|
7411
7415
|
break;
|
|
7412
7416
|
}
|
|
7413
7417
|
return _context22.abrupt("return", undefined);
|
|
7414
7418
|
case 4:
|
|
7415
|
-
//
|
|
7419
|
+
// Create a new LLM channel for this meeting
|
|
7420
|
+
// @ts-ignore - Fix type
|
|
7421
|
+
this.llmChannel = this.webex.internal.llm.createChannel();
|
|
7422
|
+
|
|
7423
|
+
// Get token from pending (saved from join response) or channel
|
|
7424
|
+
datachannelToken = (_this$_pendingDatacha = this._pendingDatachannelToken) !== null && _this$_pendingDatacha !== void 0 ? _this$_pendingDatacha : this.llmChannel.getDatachannelToken(); // Set up refresh handler before registration so interceptor-triggered token
|
|
7416
7425
|
// refresh during register POST can resolve a valid handler.
|
|
7417
|
-
|
|
7418
|
-
// foreign owner tag is present on a disconnected session.
|
|
7419
|
-
refreshHandlerOwnerMeetingId = currentOwner && currentOwner !== this.id ? undefined : this.id;
|
|
7420
|
-
shouldAlignRefreshHandlerAfterOwnershipClaim = refreshHandlerOwnerMeetingId !== this.id; // @ts-ignore - Fix type
|
|
7421
|
-
this.webex.internal.llm.setRefreshHandler(function () {
|
|
7426
|
+
this.llmChannel.setRefreshHandler(function () {
|
|
7422
7427
|
return _this36.refreshDataChannelToken();
|
|
7423
|
-
}
|
|
7428
|
+
});
|
|
7424
7429
|
|
|
7425
|
-
//
|
|
7426
|
-
|
|
7430
|
+
// If we have a pending token, store it on the channel
|
|
7431
|
+
if (this._pendingDatachannelToken) {
|
|
7432
|
+
this.llmChannel.setDatachannelToken(this._pendingDatachannelToken);
|
|
7433
|
+
this._pendingDatachannelToken = undefined;
|
|
7434
|
+
}
|
|
7435
|
+
return _context22.abrupt("return", this.llmChannel.registerAndConnect(url, dataChannelUrl, datachannelToken).then(function (registerAndConnectResult) {
|
|
7436
|
+
var _this36$webinar, _this36$webinar$isPra, _this36$webinar2;
|
|
7427
7437
|
_this36.locusInfo.syncAllHashTreeDatasets({
|
|
7428
7438
|
onlyLLM: true
|
|
7429
7439
|
});
|
|
7430
|
-
|
|
7431
|
-
//
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
//
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
// subsequent cross-meeting `updateLLMConnection` / `cleanupLLMConneciton`
|
|
7444
|
-
// calls can detect and skip work that doesn't belong to them.
|
|
7445
|
-
// @ts-ignore - Fix type
|
|
7446
|
-
(_this36$webex$interna2 = (_this36$webex$interna3 = _this36.webex.internal.llm).setOwnerMeetingId) === null || _this36$webex$interna2 === void 0 ? void 0 : _this36$webex$interna2.call(_this36$webex$interna3, _this36.id);
|
|
7447
|
-
|
|
7448
|
-
// If we pre-bound refresh ownerlessly (stale-owner reclaim path),
|
|
7449
|
-
// align the handler with the newly claimed owner immediately after
|
|
7450
|
-
// ownership is updated.
|
|
7451
|
-
if (shouldAlignRefreshHandlerAfterOwnershipClaim) {
|
|
7452
|
-
// @ts-ignore - Fix type
|
|
7453
|
-
_this36.webex.internal.llm.setRefreshHandler(function () {
|
|
7454
|
-
return _this36.refreshDataChannelToken();
|
|
7455
|
-
}, _constants.LLM_DEFAULT_SESSION, _this36.id);
|
|
7456
|
-
}
|
|
7440
|
+
|
|
7441
|
+
// Register event listeners on the channel
|
|
7442
|
+
_this36.llmChannel.off('event:relay.event', _this36.processRelayEvent);
|
|
7443
|
+
_this36.llmChannel.on('event:relay.event', _this36.processRelayEvent);
|
|
7444
|
+
_this36.llmChannel.off(_constants.LOCUS_LLM_EVENT, _this36.processLocusLLMEvent);
|
|
7445
|
+
_this36.llmChannel.on(_constants.LOCUS_LLM_EVENT, _this36.processLocusLLMEvent);
|
|
7446
|
+
_this36.llmChannel.off('online', _this36.handleLLMOnline);
|
|
7447
|
+
_this36.llmChannel.on('online', _this36.handleLLMOnline);
|
|
7448
|
+
|
|
7449
|
+
// Register annotation channel only if not in practice session
|
|
7450
|
+
// (practice session manages its own annotation channel via updatePSDataChannel)
|
|
7451
|
+
if (!((_this36$webinar = _this36.webinar) !== null && _this36$webinar !== void 0 && _this36$webinar.isJoinPracticeSessionDataChannel())) {
|
|
7452
|
+
_this36.annotation.registerChannel(_this36.llmChannel);
|
|
7457
7453
|
}
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
_this36.webex.internal.llm.on('event:relay.event', _this36.processRelayEvent);
|
|
7462
|
-
// @ts-ignore - Fix type
|
|
7463
|
-
_this36.webex.internal.llm.off(_constants.LOCUS_LLM_EVENT, _this36.processLocusLLMEvent);
|
|
7464
|
-
// @ts-ignore - Fix type
|
|
7465
|
-
_this36.webex.internal.llm.on(_constants.LOCUS_LLM_EVENT, _this36.processLocusLLMEvent);
|
|
7454
|
+
|
|
7455
|
+
// Register breakouts channel
|
|
7456
|
+
_this36.breakouts.registerLLMChannel(_this36.llmChannel);
|
|
7466
7457
|
_loggerProxy.default.logger.info('Meeting:index#updateLLMConnection --> enabled to receive relay events!');
|
|
7467
7458
|
_this36.startLLMHealthCheckTimer();
|
|
7459
|
+
|
|
7460
|
+
// Switch voiceaChannel to use the new LLM channel (preserves transcription state).
|
|
7461
|
+
// Skip if practice session is active - practice session manages its own voicea binding
|
|
7462
|
+
// via updatePSDataChannel, and switching here would break practice session captions.
|
|
7463
|
+
var isPracticeSessionActive = (_this36$webinar$isPra = (_this36$webinar2 = _this36.webinar) === null || _this36$webinar2 === void 0 ? void 0 : _this36$webinar2.isPracticeSessionLLMChannelConnected()) !== null && _this36$webinar$isPra !== void 0 ? _this36$webinar$isPra : false;
|
|
7464
|
+
if (!_this36.voiceaChannel) {
|
|
7465
|
+
// @ts-ignore - Fix type
|
|
7466
|
+
_this36.voiceaChannel = _this36.webex.internal.voicea.createChannel();
|
|
7467
|
+
}
|
|
7468
|
+
if (!isPracticeSessionActive) {
|
|
7469
|
+
// Fire-and-forget: caption restoration shouldn't block LLM connection result.
|
|
7470
|
+
// transcription is always initialized (reset to initial shape, never null),
|
|
7471
|
+
// so no re-init needed here.
|
|
7472
|
+
_this36.voiceaChannel.switchLLMChannel(_this36.llmChannel).then(function () {
|
|
7473
|
+
_this36.startTranscriptionIfNeeded();
|
|
7474
|
+
}).catch(function (error) {
|
|
7475
|
+
_loggerProxy.default.logger.warn('Meeting:index#updateLLMConnection --> failed to switch voicea channel:', error);
|
|
7476
|
+
});
|
|
7477
|
+
}
|
|
7468
7478
|
if (registerAndConnectResult) {
|
|
7469
7479
|
var _this36$breakouts;
|
|
7470
7480
|
if (isInitialJoinPhase) {
|
|
@@ -7492,6 +7502,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7492
7502
|
llmLatency: llmLatency,
|
|
7493
7503
|
error: error
|
|
7494
7504
|
});
|
|
7505
|
+
|
|
7506
|
+
// Clean up the channel on failure
|
|
7507
|
+
_this36.llmChannel = undefined;
|
|
7495
7508
|
return _promise.default.reject(error);
|
|
7496
7509
|
}));
|
|
7497
7510
|
case 5:
|
|
@@ -7543,9 +7556,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7543
7556
|
}, {
|
|
7544
7557
|
key: "sendLLMConnectMetric",
|
|
7545
7558
|
value: function sendLLMConnectMetric(timings, error) {
|
|
7546
|
-
var _this$webex$internal$
|
|
7559
|
+
var _this$webex$internal$5, _this$webex$internal$6;
|
|
7547
7560
|
// @ts-ignore
|
|
7548
|
-
var llmWebsocketUrl = ((_this$webex$internal$
|
|
7561
|
+
var llmWebsocketUrl = ((_this$webex$internal$5 = (_this$webex$internal$6 = this.webex.internal.llm).getWebSocketUrl) === null || _this$webex$internal$5 === void 0 ? void 0 : _this$webex$internal$5.call(_this$webex$internal$6)) || undefined;
|
|
7549
7562
|
var _ref42 = timings || {},
|
|
7550
7563
|
_ref42$clientLLMDatac = _ref42.clientLLMDatachannelResponseTime,
|
|
7551
7564
|
clientLLMDatachannelResponseTime = _ref42$clientLLMDatac === void 0 ? 0 : _ref42$clientLLMDatac,
|
|
@@ -7919,6 +7932,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7919
7932
|
var causeStatusCode = error === null || error === void 0 ? void 0 : (_cause = error.cause) === null || _cause === void 0 ? void 0 : _cause.statusCode;
|
|
7920
7933
|
return statusCode === 409 || statusCode === 403 || causeStatusCode === 409 || causeStatusCode === 403;
|
|
7921
7934
|
}
|
|
7935
|
+
}, {
|
|
7936
|
+
key: "isLocusUserFullError",
|
|
7937
|
+
value: function isLocusUserFullError(error) {
|
|
7938
|
+
var _error6, _error6$body;
|
|
7939
|
+
return (error === null || error === void 0 ? void 0 : (_error6 = error.error) === null || _error6 === void 0 ? void 0 : (_error6$body = _error6.body) === null || _error6$body === void 0 ? void 0 : _error6$body.errorCode) === _types.LocusErrorCodes.LOCUS_USER_FULL;
|
|
7940
|
+
}
|
|
7922
7941
|
|
|
7923
7942
|
/**
|
|
7924
7943
|
* Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
|
|
@@ -8477,7 +8496,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8477
8496
|
connectionType: connectionType,
|
|
8478
8497
|
selectedCandidatePairChanges: selectedCandidatePairChanges,
|
|
8479
8498
|
numTransports: numTransports,
|
|
8480
|
-
iceConnected: iceConnected
|
|
8499
|
+
iceConnected: iceConnected,
|
|
8500
|
+
iceConnectedAtLeastOnce: error instanceof _webexErrors.MediaConnectionTimedOutError ? error.iceConnectedAtLeastOnce : undefined
|
|
8481
8501
|
});
|
|
8482
8502
|
case 4:
|
|
8483
8503
|
case "end":
|
|
@@ -8923,6 +8943,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8923
8943
|
var _addMediaInternal = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee38(icePhaseCallback, forceTurnDiscovery, turnServerInfo, iceTransportPolicy) {
|
|
8924
8944
|
var options,
|
|
8925
8945
|
LOG_HEADER,
|
|
8946
|
+
optionsForLogging,
|
|
8926
8947
|
localStreams,
|
|
8927
8948
|
_options$audioEnabled,
|
|
8928
8949
|
audioEnabled,
|
|
@@ -8996,7 +9017,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8996
9017
|
this.addMediaData.iceTransportPolicy = iceTransportPolicy;
|
|
8997
9018
|
this.hasMediaConnectionConnectedAtLeastOnce = false;
|
|
8998
9019
|
LOG_HEADER = 'Meeting:index#addMedia -->';
|
|
8999
|
-
|
|
9020
|
+
optionsForLogging = _objectSpread(_objectSpread({}, options), {}, {
|
|
9021
|
+
remoteMediaManagerConfig: (0, _remoteMediaManager.getRemoteMediaManagerConfigForLogging)(options.remoteMediaManagerConfig)
|
|
9022
|
+
});
|
|
9023
|
+
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " called with: options=").concat((0, _stringify.default)(optionsForLogging), ", turnServerInfo=").concat((0, _stringify.default)(turnServerInfo), ", forceTurnDiscovery=").concat(forceTurnDiscovery, ", iceTransportPolicy=").concat(iceTransportPolicy));
|
|
9000
9024
|
if (!(options.allowMediaInLobby !== true && this.meetingState !== _constants.FULL_STATE.ACTIVE)) {
|
|
9001
9025
|
_context38.next = 1;
|
|
9002
9026
|
break;
|
|
@@ -11061,6 +11085,39 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
11061
11085
|
}
|
|
11062
11086
|
return refreshDataChannelToken;
|
|
11063
11087
|
}()
|
|
11088
|
+
/**
|
|
11089
|
+
* Checks if the LLM channel is connected.
|
|
11090
|
+
* Handles practice session context automatically - returns practice session
|
|
11091
|
+
* LLM channel status when in practice session, main LLM channel status otherwise.
|
|
11092
|
+
* @returns {boolean} True if the appropriate LLM channel is connected
|
|
11093
|
+
*/
|
|
11094
|
+
)
|
|
11095
|
+
}, {
|
|
11096
|
+
key: "isLLMConnected",
|
|
11097
|
+
value: function isLLMConnected() {
|
|
11098
|
+
var _this$webinar3, _this$llmChannel$isCo, _this$llmChannel7;
|
|
11099
|
+
if ((_this$webinar3 = this.webinar) !== null && _this$webinar3 !== void 0 && _this$webinar3.isJoinPracticeSessionDataChannel()) {
|
|
11100
|
+
return this.webinar.isPracticeSessionLLMChannelConnected();
|
|
11101
|
+
}
|
|
11102
|
+
return (_this$llmChannel$isCo = (_this$llmChannel7 = this.llmChannel) === null || _this$llmChannel7 === void 0 ? void 0 : _this$llmChannel7.isConnected()) !== null && _this$llmChannel$isCo !== void 0 ? _this$llmChannel$isCo : false;
|
|
11103
|
+
}
|
|
11104
|
+
|
|
11105
|
+
/**
|
|
11106
|
+
* Gets the locus URL from the LLM channel.
|
|
11107
|
+
* Handles practice session context automatically - returns practice session
|
|
11108
|
+
* LLM channel's locus URL when in practice session, main LLM channel's locus URL otherwise.
|
|
11109
|
+
* @returns {string | undefined} The locus URL or undefined
|
|
11110
|
+
*/
|
|
11111
|
+
}, {
|
|
11112
|
+
key: "getLLMLocusUrl",
|
|
11113
|
+
value: function getLLMLocusUrl() {
|
|
11114
|
+
var _this$webinar4, _this$llmChannel8;
|
|
11115
|
+
if ((_this$webinar4 = this.webinar) !== null && _this$webinar4 !== void 0 && _this$webinar4.isJoinPracticeSessionDataChannel()) {
|
|
11116
|
+
return this.webinar.getPracticeSessionLocusUrl();
|
|
11117
|
+
}
|
|
11118
|
+
return (_this$llmChannel8 = this.llmChannel) === null || _this$llmChannel8 === void 0 ? void 0 : _this$llmChannel8.getLocusUrl();
|
|
11119
|
+
}
|
|
11120
|
+
|
|
11064
11121
|
/**
|
|
11065
11122
|
* Determines the current data channel token type based on the meeting state.
|
|
11066
11123
|
*
|
|
@@ -11068,7 +11125,6 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
11068
11125
|
*
|
|
11069
11126
|
* @returns {DataChannelTokenType} The token type representing the current session mode.
|
|
11070
11127
|
*/
|
|
11071
|
-
)
|
|
11072
11128
|
}, {
|
|
11073
11129
|
key: "getDataChannelTokenType",
|
|
11074
11130
|
value: function getDataChannelTokenType() {
|