@webex/plugin-meetings 3.12.0-next.16 → 3.12.0-next.161
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 +135 -0
- package/ai-docs/ARCHITECTURE.md +207 -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/dist/aiEnableRequest/index.js +15 -2
- package/dist/aiEnableRequest/index.js.map +1 -1
- package/dist/annotation/index.js +2 -2
- package/dist/annotation/index.js.map +1 -1
- package/dist/breakouts/breakout.js +8 -3
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/events.js +29 -14
- package/dist/breakouts/events.js.map +1 -1
- package/dist/breakouts/index.js +99 -4
- package/dist/breakouts/index.js.map +1 -1
- package/dist/common/errors/webex-errors.js +49 -5
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.js +37 -10
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/index.js +46 -10
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/hashTree/constants.js +4 -1
- package/dist/hashTree/constants.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +1096 -391
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/hashTree/utils.js +20 -0
- package/dist/hashTree/utils.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/interceptors/dataChannelAuthToken.js +75 -15
- package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
- package/dist/interceptors/locusRetry.js +24 -9
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interpretation/index.js +55 -12
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/interpretation.types.js +7 -0
- package/dist/interpretation/interpretation.types.js.map +1 -0
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/controlsUtils.js +4 -1
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +615 -176
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +36 -5
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/types.js +20 -0
- package/dist/locus-info/types.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +15 -2
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/index.js +8 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +4 -5
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +7 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +1688 -835
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +229 -82
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.js +10 -1
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +5 -2
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/util.js +37 -3
- 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 +9 -3
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +300 -128
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js +6 -1
- package/dist/meetings/meetings.types.js.map +1 -1
- package/dist/meetings/request.js +39 -0
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +116 -18
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +10 -0
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js +30 -0
- package/dist/member/util.js.map +1 -1
- package/dist/members/index.js +101 -43
- package/dist/members/index.js.map +1 -1
- package/dist/members/util.js +8 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +7 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/multistream/codec/constants.js +63 -0
- package/dist/multistream/codec/constants.js.map +1 -0
- package/dist/multistream/mediaRequestManager.js +62 -15
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +9 -0
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +32 -4
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +121 -83
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/reachability.types.js +2 -0
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/util.js +45 -0
- package/dist/reachability/util.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/recording-controller/index.js +1 -3
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/roap/turnDiscovery.js +8 -1
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/types/common/errors/webex-errors.d.ts +32 -2
- package/dist/types/config.d.ts +2 -2
- package/dist/types/constants.d.ts +13 -1
- package/dist/types/controls-options-manager/index.d.ts +16 -0
- package/dist/types/hashTree/constants.d.ts +1 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +201 -22
- package/dist/types/hashTree/utils.d.ts +7 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/interceptors/locusRetry.d.ts +4 -4
- package/dist/types/interpretation/interpretation.types.d.ts +10 -0
- package/dist/types/locus-info/index.d.ts +106 -8
- package/dist/types/locus-info/infoUtils.d.ts +8 -0
- package/dist/types/locus-info/types.d.ts +22 -1
- package/dist/types/media/MediaConnectionAwaiter.d.ts +10 -1
- package/dist/types/media/properties.d.ts +6 -2
- package/dist/types/meeting/in-meeting-actions.d.ts +6 -0
- package/dist/types/meeting/index.d.ts +176 -11
- package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
- package/dist/types/meeting/request.d.ts +1 -0
- package/dist/types/meeting/util.d.ts +9 -0
- package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
- package/dist/types/meetings/index.d.ts +40 -19
- package/dist/types/meetings/meetings.types.d.ts +15 -0
- package/dist/types/meetings/request.d.ts +14 -0
- package/dist/types/member/index.d.ts +1 -0
- package/dist/types/member/types.d.ts +1 -0
- package/dist/types/member/util.d.ts +9 -0
- package/dist/types/members/index.d.ts +15 -2
- package/dist/types/members/util.d.ts +1 -5
- package/dist/types/metrics/constants.d.ts +6 -0
- package/dist/types/multistream/codec/constants.d.ts +7 -0
- package/dist/types/multistream/mediaRequestManager.d.ts +22 -5
- package/dist/types/multistream/remoteMediaManager.d.ts +18 -0
- package/dist/types/reachability/clusterReachability.d.ts +3 -3
- package/dist/types/reachability/index.d.ts +10 -3
- package/dist/types/reachability/reachability.types.d.ts +7 -0
- package/dist/types/reachability/util.d.ts +17 -0
- package/dist/types/reactions/reactions.type.d.ts +3 -0
- package/dist/webinar/index.js +307 -161
- package/dist/webinar/index.js.map +1 -1
- package/package.json +23 -23
- package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
- package/src/aiEnableRequest/index.ts +16 -0
- package/src/annotation/ai-docs/annotation-spec.md +236 -0
- package/src/annotation/index.ts +6 -4
- package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
- package/src/breakouts/breakout.ts +3 -1
- package/src/breakouts/events.ts +33 -11
- package/src/breakouts/index.ts +122 -2
- package/src/common/errors/webex-errors.ts +50 -3
- package/src/config.ts +2 -2
- package/src/constants.ts +21 -3
- package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
- package/src/controls-options-manager/index.ts +62 -10
- package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
- package/src/hashTree/constants.ts +7 -0
- package/src/hashTree/hashTreeParser.ts +861 -193
- package/src/hashTree/utils.ts +19 -0
- package/src/index.ts +6 -0
- package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
- package/src/interceptors/dataChannelAuthToken.ts +88 -12
- package/src/interceptors/locusRetry.ts +26 -5
- package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
- package/src/interpretation/index.ts +65 -10
- package/src/interpretation/interpretation.types.ts +11 -0
- package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
- package/src/locus-info/controlsUtils.ts +3 -1
- package/src/locus-info/index.ts +566 -164
- package/src/locus-info/infoUtils.ts +41 -6
- package/src/locus-info/types.ts +26 -1
- package/src/media/MediaConnectionAwaiter.ts +21 -4
- package/src/media/ai-docs/media-spec.md +267 -0
- package/src/media/index.ts +10 -1
- package/src/media/properties.ts +8 -3
- package/src/meeting/ai-docs/meeting-spec.md +401 -0
- package/src/meeting/in-meeting-actions.ts +12 -0
- package/src/meeting/index.ts +946 -120
- package/src/meeting/locusMediaRequest.ts +106 -6
- package/src/meeting/muteState.ts +10 -1
- package/src/meeting/request.ts +11 -0
- package/src/meeting/util.ts +51 -7
- 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 +10 -4
- package/src/meetings/ai-docs/meetings-spec.md +296 -0
- package/src/meetings/index.ts +200 -80
- package/src/meetings/meetings.types.ts +19 -0
- package/src/meetings/request.ts +43 -0
- package/src/meetings/util.ts +117 -4
- package/src/member/ai-docs/member-spec.md +196 -0
- package/src/member/index.ts +10 -0
- package/src/member/types.ts +1 -0
- package/src/member/util.ts +29 -0
- package/src/members/ai-docs/members-spec.md +256 -0
- package/src/members/index.ts +70 -7
- package/src/members/util.ts +12 -4
- package/src/metrics/ai-docs/metrics-spec.md +185 -0
- package/src/metrics/constants.ts +6 -0
- package/src/multistream/ai-docs/multistream-spec.md +292 -0
- package/src/multistream/codec/constants.ts +58 -0
- package/src/multistream/mediaRequestManager.ts +119 -28
- package/src/multistream/receiveSlot.ts +18 -0
- package/src/multistream/remoteMediaManager.ts +23 -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/reachability/clusterReachability.ts +3 -2
- package/src/reachability/index.ts +47 -16
- package/src/reachability/reachability.types.ts +11 -0
- package/src/reachability/util.ts +36 -0
- package/src/reactions/ai-docs/reactions-spec.md +198 -0
- package/src/reactions/reactions.type.ts +3 -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/recording-controller/index.ts +1 -2
- package/src/roap/ai-docs/roap-spec.md +241 -0
- package/src/roap/turnDiscovery.ts +9 -1
- package/src/webinar/ai-docs/webinar-spec.md +243 -0
- package/src/webinar/index.ts +216 -38
- package/test/unit/spec/aiEnableRequest/index.ts +86 -0
- package/test/unit/spec/annotation/index.ts +3 -3
- package/test/unit/spec/breakouts/breakout.ts +9 -3
- package/test/unit/spec/breakouts/events.ts +120 -2
- package/test/unit/spec/breakouts/index.ts +223 -3
- package/test/unit/spec/common/errors/webex-errors.ts +78 -0
- package/test/unit/spec/controls-options-manager/index.js +139 -32
- package/test/unit/spec/hashTree/hashTreeParser.ts +2451 -184
- package/test/unit/spec/hashTree/utils.ts +37 -0
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +196 -0
- package/test/unit/spec/interceptors/locusRetry.ts +234 -5
- package/test/unit/spec/interpretation/index.ts +119 -4
- package/test/unit/spec/locus-info/controlsUtils.js +172 -57
- package/test/unit/spec/locus-info/index.js +1014 -58
- package/test/unit/spec/locus-info/infoUtils.js +184 -1
- package/test/unit/spec/media/MediaConnectionAwaiter.ts +55 -0
- package/test/unit/spec/media/index.ts +92 -0
- package/test/unit/spec/media/properties.ts +23 -23
- package/test/unit/spec/meeting/in-meeting-actions.ts +6 -0
- package/test/unit/spec/meeting/index.js +2838 -109
- package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
- package/test/unit/spec/meeting/muteState.js +81 -0
- package/test/unit/spec/meeting/request.js +12 -0
- package/test/unit/spec/meeting/utils.js +189 -17
- package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
- package/test/unit/spec/meeting-info/meetinginfov2.js +76 -10
- package/test/unit/spec/meetings/index.js +544 -49
- package/test/unit/spec/meetings/request.js +141 -0
- package/test/unit/spec/meetings/utils.js +402 -51
- package/test/unit/spec/member/index.js +7 -0
- package/test/unit/spec/member/util.js +89 -0
- package/test/unit/spec/members/index.js +216 -0
- package/test/unit/spec/members/request.js +37 -1
- package/test/unit/spec/members/utils.js +63 -0
- package/test/unit/spec/multistream/mediaRequestManager.ts +501 -37
- package/test/unit/spec/multistream/remoteMediaManager.ts +46 -0
- package/test/unit/spec/reachability/index.ts +128 -46
- package/test/unit/spec/reachability/util.ts +31 -0
- package/test/unit/spec/recording-controller/index.js +9 -8
- package/test/unit/spec/roap/turnDiscovery.ts +20 -0
- package/test/unit/spec/webinar/index.ts +332 -31
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"));
|
|
@@ -92,6 +94,7 @@ var _joinWebinarError = _interopRequireDefault(require("../common/errors/join-we
|
|
|
92
94
|
var _brbState = require("./brbState");
|
|
93
95
|
var _multistreamNotSupportedError = _interopRequireDefault(require("../common/errors/multistream-not-supported-error"));
|
|
94
96
|
var _joinForbiddenError = _interopRequireDefault(require("../common/errors/join-forbidden-error"));
|
|
97
|
+
var _types = require("../locus-info/types");
|
|
95
98
|
var _aiEnableRequest = _interopRequireDefault(require("../aiEnableRequest"));
|
|
96
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; } } }; }
|
|
97
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; } }
|
|
@@ -111,6 +114,7 @@ var DEFAULT_ICE_PHASE_CALLBACK = function DEFAULT_ICE_PHASE_CALLBACK() {
|
|
|
111
114
|
return 'JOIN_MEETING_FINAL';
|
|
112
115
|
};
|
|
113
116
|
var LLM_HEALTHCHECK_TIMER_MS = 3 * 60 * 1000;
|
|
117
|
+
var JOIN_WITH_MEDIA_RETRY_MAX_COUNT = 2;
|
|
114
118
|
var logRequest = function logRequest(request, _ref) {
|
|
115
119
|
var _ref$logText = _ref.logText,
|
|
116
120
|
logText = _ref$logText === void 0 ? '' : _ref$logText;
|
|
@@ -496,6 +500,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
496
500
|
(0, _defineProperty3.default)(_this, "floorGrantPending", void 0);
|
|
497
501
|
(0, _defineProperty3.default)(_this, "hasJoinedOnce", void 0);
|
|
498
502
|
(0, _defineProperty3.default)(_this, "hasWebsocketConnected", void 0);
|
|
503
|
+
(0, _defineProperty3.default)(_this, "mercuryOnlineHandler", void 0);
|
|
504
|
+
(0, _defineProperty3.default)(_this, "mercuryOfflineHandler", void 0);
|
|
499
505
|
(0, _defineProperty3.default)(_this, "inMeetingActions", void 0);
|
|
500
506
|
(0, _defineProperty3.default)(_this, "isLocalShareLive", void 0);
|
|
501
507
|
(0, _defineProperty3.default)(_this, "isRoapInProgress", void 0);
|
|
@@ -507,6 +513,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
507
513
|
(0, _defineProperty3.default)(_this, "joinedWith", void 0);
|
|
508
514
|
(0, _defineProperty3.default)(_this, "selfId", void 0);
|
|
509
515
|
(0, _defineProperty3.default)(_this, "roles", void 0);
|
|
516
|
+
(0, _defineProperty3.default)(_this, "canNotViewTheParticipantList", void 0);
|
|
510
517
|
// ... there is more ... see SelfUtils.parse()
|
|
511
518
|
// end of the group
|
|
512
519
|
(0, _defineProperty3.default)(_this, "locusMediaRequest", void 0);
|
|
@@ -568,6 +575,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
568
575
|
(0, _defineProperty3.default)(_this, "isMoveToInProgress", false);
|
|
569
576
|
(0, _defineProperty3.default)(_this, "registrationIdStatus", void 0);
|
|
570
577
|
(0, _defineProperty3.default)(_this, "brbState", void 0);
|
|
578
|
+
(0, _defineProperty3.default)(_this, "emittedBreakoutJoinResponseMoveIds", new _set.default());
|
|
579
|
+
(0, _defineProperty3.default)(_this, "promisesWaitingForPropUpdate", {});
|
|
571
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) {
|
|
572
581
|
_this.transcription.languageOptions = payload;
|
|
573
582
|
_loggerProxy.default.logger.debug("".concat(_util.default.getScopeLog({
|
|
@@ -629,7 +638,17 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
629
638
|
if (_this.config.experimental.storeLocusHashTreeEventsForDebugging) {
|
|
630
639
|
storeEventForDebugging('llm', event.data);
|
|
631
640
|
}
|
|
641
|
+
var trackingId = event.trackingId;
|
|
632
642
|
_this.locusInfo.parse(_this, event.data);
|
|
643
|
+
|
|
644
|
+
// Only the client whose /sync request tracking id matches the tracking id echoed back on this
|
|
645
|
+
// LLM message should emit client.locus.sync.complete. The tracking id lives at the top level
|
|
646
|
+
// of the received LLM event envelope. When it is absent there is nothing to correlate, so
|
|
647
|
+
// skip. onLocusSyncLlmMessage records the LLM arrival time and is a no-op unless a stored
|
|
648
|
+
// record for this meeting matches the tracking id.
|
|
649
|
+
if (trackingId) {
|
|
650
|
+
_this.onLocusSyncLlmMessage(_this.id, trackingId);
|
|
651
|
+
}
|
|
633
652
|
} else {
|
|
634
653
|
_loggerProxy.default.logger.warn("Meeting:index#processLocusLLMEvent --> Unknown event type: ".concat(event.data.eventType));
|
|
635
654
|
}
|
|
@@ -641,6 +660,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
641
660
|
* @returns {void}
|
|
642
661
|
*/
|
|
643
662
|
(0, _defineProperty3.default)(_this, "processRelayEvent", function (e) {
|
|
663
|
+
if (!_this.isRelayEventRouteValid(e)) {
|
|
664
|
+
return;
|
|
665
|
+
}
|
|
644
666
|
switch (e.data.relayType) {
|
|
645
667
|
case _constants3.REACTION_RELAY_TYPES.REACTION:
|
|
646
668
|
if (
|
|
@@ -680,6 +702,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
680
702
|
*/
|
|
681
703
|
(0, _defineProperty3.default)(_this, "handleLLMOnline", function () {
|
|
682
704
|
_this.restoreLLMSubscriptionsIfNeeded();
|
|
705
|
+
_this.locusInfo.syncAllHashTreeDatasets({
|
|
706
|
+
onlyLLM: true
|
|
707
|
+
});
|
|
683
708
|
_triggerProxy.default.trigger(_this, {
|
|
684
709
|
file: 'meeting/index',
|
|
685
710
|
function: 'handleLLMOnline'
|
|
@@ -687,6 +712,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
687
712
|
});
|
|
688
713
|
/**
|
|
689
714
|
* Disconnects and cleans up the default LLM session listeners/timers.
|
|
715
|
+
*
|
|
716
|
+
* Ownership-aware: only calls `disconnectLLM` when this meeting is the
|
|
717
|
+
* current owner of the default LLM session (or when no owner is recorded).
|
|
718
|
+
* Event listeners belonging to this meeting instance are always detached
|
|
719
|
+
* so they do not receive another meeting's relay events.
|
|
720
|
+
*
|
|
690
721
|
* @param {Object} options
|
|
691
722
|
* @param {boolean} [options.removeOnlineListener=true] removes the one-time online listener
|
|
692
723
|
* @param {boolean} [options.throwOnError=true] rethrows disconnect errors when true
|
|
@@ -698,47 +729,74 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
698
729
|
removeOnlineListener,
|
|
699
730
|
_ref3$throwOnError,
|
|
700
731
|
throwOnError,
|
|
732
|
+
_this$webex$internal$,
|
|
733
|
+
currentOwner,
|
|
734
|
+
isOwner,
|
|
735
|
+
_this$webex$internal$2,
|
|
736
|
+
currentOwnerAfterCleanup,
|
|
737
|
+
_this$webex$internal$3,
|
|
738
|
+
_this$webex$internal$4,
|
|
701
739
|
_args = arguments,
|
|
702
740
|
_t;
|
|
703
741
|
return _regenerator.default.wrap(function (_context) {
|
|
704
742
|
while (1) switch (_context.prev = _context.next) {
|
|
705
743
|
case 0:
|
|
706
744
|
_ref3 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, _ref3$removeOnlineLis = _ref3.removeOnlineListener, removeOnlineListener = _ref3$removeOnlineLis === void 0 ? true : _ref3$removeOnlineLis, _ref3$throwOnError = _ref3.throwOnError, throwOnError = _ref3$throwOnError === void 0 ? true : _ref3$throwOnError;
|
|
745
|
+
// @ts-ignore - Fix type
|
|
746
|
+
// @ts-ignore - Fix type
|
|
747
|
+
_this$webex$internal$ = _this.webex.internal.llm.resolveSessionOwnership(_this.id, _constants.LLM_DEFAULT_SESSION), currentOwner = _this$webex$internal$.currentOwner, isOwner = _this$webex$internal$.isOwner;
|
|
707
748
|
_context.prev = 1;
|
|
749
|
+
if (!isOwner) {
|
|
750
|
+
_context.next = 3;
|
|
751
|
+
break;
|
|
752
|
+
}
|
|
708
753
|
_context.next = 2;
|
|
709
754
|
return _this.webex.internal.llm.disconnectLLM({
|
|
710
755
|
code: 3050,
|
|
711
756
|
reason: 'done (permanent)'
|
|
712
|
-
});
|
|
757
|
+
}, _constants.LLM_DEFAULT_SESSION, _this.id);
|
|
713
758
|
case 2:
|
|
714
759
|
_context.next = 4;
|
|
715
760
|
break;
|
|
716
761
|
case 3:
|
|
717
|
-
|
|
762
|
+
_loggerProxy.default.logger.info("Meeting:index#cleanupLLMConneciton --> skipping disconnect; LLM owned by meeting ".concat(currentOwner, ", not ").concat(_this.id));
|
|
763
|
+
case 4:
|
|
764
|
+
_context.next = 6;
|
|
765
|
+
break;
|
|
766
|
+
case 5:
|
|
767
|
+
_context.prev = 5;
|
|
718
768
|
_t = _context["catch"](1);
|
|
719
769
|
_loggerProxy.default.logger.error('Meeting:index#cleanupLLMConneciton --> Failed to disconnect default LLM session', _t);
|
|
720
770
|
if (!throwOnError) {
|
|
721
|
-
_context.next =
|
|
771
|
+
_context.next = 6;
|
|
722
772
|
break;
|
|
723
773
|
}
|
|
724
774
|
throw _t;
|
|
725
|
-
case
|
|
726
|
-
_context.prev =
|
|
775
|
+
case 6:
|
|
776
|
+
_context.prev = 6;
|
|
727
777
|
if (removeOnlineListener) {
|
|
728
778
|
// @ts-ignore - Fix type
|
|
729
779
|
_this.webex.internal.llm.off('online', _this.handleLLMOnline);
|
|
730
780
|
}
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
//
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
781
|
+
_this.stopListeningForLLMEvents();
|
|
782
|
+
|
|
783
|
+
// Re-check ownership after awaiting disconnectLLM. If ownership changed
|
|
784
|
+
// while cleanup was in flight, do not clear another meeting's owner tag.
|
|
785
|
+
if (isOwner) {
|
|
786
|
+
_this$webex$internal$2 =
|
|
787
|
+
// @ts-ignore - Fix type
|
|
788
|
+
_this.webex.internal.llm.resolveSessionOwnership(_this.id, _constants.LLM_DEFAULT_SESSION), currentOwnerAfterCleanup = _this$webex$internal$2.currentOwner;
|
|
789
|
+
if (currentOwnerAfterCleanup === _this.id) {
|
|
790
|
+
// @ts-ignore - Fix type
|
|
791
|
+
(_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);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
return _context.finish(6);
|
|
795
|
+
case 7:
|
|
738
796
|
case "end":
|
|
739
797
|
return _context.stop();
|
|
740
798
|
}
|
|
741
|
-
}, _callee, null, [[1,
|
|
799
|
+
}, _callee, null, [[1, 5, 6, 7]]);
|
|
742
800
|
})));
|
|
743
801
|
/**
|
|
744
802
|
* Handles ROAP_FAILURE event from the webrtc media connection
|
|
@@ -855,18 +913,29 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
855
913
|
// @ts-ignore
|
|
856
914
|
var cdl = _this.webex.internal.newMetrics.callDiagnosticLatencies;
|
|
857
915
|
|
|
916
|
+
// Compute the offer->answer latency from when the local SDP offer was generated up to now,
|
|
917
|
+
// rather than from the stored remote-sdp-received timestamp. That stored timestamp uses
|
|
918
|
+
// saveFirstTimestampOnly, so if waitForRemoteSDPAnswer() already timed out and submitted a
|
|
919
|
+
// remote-sdp-received event, the stored value would be pinned to the timeout time and would
|
|
920
|
+
// under-report an answer that arrives late. This handler fires exactly when the answer is
|
|
921
|
+
// processed, so Date.now() is the accurate "received" time.
|
|
922
|
+
// (submitClientEvent below still records the remote-sdp-received timestamp used by the CA
|
|
923
|
+
// join-time metric, so we don't need to save it here.)
|
|
924
|
+
var localSdpGeneratedTimestamp = cdl.latencyTimestamps.get('client.media-engine.local-sdp-generated');
|
|
925
|
+
var localSDPGenRemoteSDPRecv = localSdpGeneratedTimestamp !== undefined ? (0, _now.default)() - localSdpGeneratedTimestamp : undefined;
|
|
926
|
+
|
|
858
927
|
// @ts-ignore
|
|
859
928
|
_this.webex.internal.newMetrics.submitClientEvent({
|
|
860
929
|
name: 'client.media-engine.remote-sdp-received',
|
|
930
|
+
payload: {
|
|
931
|
+
eventData: {
|
|
932
|
+
localSDPGenRemoteSDPRecv: localSDPGenRemoteSDPRecv
|
|
933
|
+
}
|
|
934
|
+
},
|
|
861
935
|
options: {
|
|
862
936
|
meetingId: _this.id
|
|
863
937
|
}
|
|
864
938
|
});
|
|
865
|
-
_metrics.default.sendBehavioralMetric(_constants2.default.ROAP_OFFER_TO_ANSWER_LATENCY, {
|
|
866
|
-
correlation_id: _this.correlationId,
|
|
867
|
-
latency: cdl.getLocalSDPGenRemoteSDPRecv(),
|
|
868
|
-
meetingId: _this.id
|
|
869
|
-
});
|
|
870
939
|
if (_this.deferSDPAnswer) {
|
|
871
940
|
_this.deferSDPAnswer.resolve();
|
|
872
941
|
clearTimeout(_this.sdpResponseTimer);
|
|
@@ -1321,6 +1390,37 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1321
1390
|
}
|
|
1322
1391
|
}
|
|
1323
1392
|
});
|
|
1393
|
+
_this.statsAnalyzer.on(_internalMediaCore.StatsAnalyzerEventNames.STATS_UPDATE, function (data) {
|
|
1394
|
+
// Extract srtpCipher from transport stats
|
|
1395
|
+
var srtpCipher;
|
|
1396
|
+
var _iterator = _createForOfIteratorHelper(data.stats.values()),
|
|
1397
|
+
_step;
|
|
1398
|
+
try {
|
|
1399
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1400
|
+
var stats = _step.value;
|
|
1401
|
+
if (stats.type === 'transport' && stats.srtpCipher) {
|
|
1402
|
+
srtpCipher = stats.srtpCipher;
|
|
1403
|
+
break;
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
// Only emit event if srtpCipher has changed
|
|
1408
|
+
} catch (err) {
|
|
1409
|
+
_iterator.e(err);
|
|
1410
|
+
} finally {
|
|
1411
|
+
_iterator.f();
|
|
1412
|
+
}
|
|
1413
|
+
if (srtpCipher && srtpCipher !== _this.mediaProperties.srtpCipher) {
|
|
1414
|
+
_loggerProxy.default.logger.info("Meeting:index#setupStatsAnalyzerEventHandlers --> SRTP cipher changed from ".concat(_this.mediaProperties.srtpCipher, " to ").concat(srtpCipher));
|
|
1415
|
+
_this.mediaProperties.srtpCipher = srtpCipher;
|
|
1416
|
+
_triggerProxy.default.trigger(_this, {
|
|
1417
|
+
file: 'meeting/index',
|
|
1418
|
+
function: 'setupStatsAnalyzerEventHandlers'
|
|
1419
|
+
}, _constants.EVENT_TRIGGERS.MEETING_SRTP_CIPHER_UPDATED, {
|
|
1420
|
+
srtpCipher: srtpCipher
|
|
1421
|
+
});
|
|
1422
|
+
}
|
|
1423
|
+
});
|
|
1324
1424
|
});
|
|
1325
1425
|
/**
|
|
1326
1426
|
* media failed, so collect a stats report from webrtc using the wcme connection to grab the rtc stats report
|
|
@@ -1549,9 +1649,14 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1549
1649
|
_this.shareStatus = _constants.SHARE_STATUS.NO_SHARE;
|
|
1550
1650
|
}
|
|
1551
1651
|
_this.queuedMediaUpdates = [];
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1652
|
+
|
|
1653
|
+
// Listener teardown (transcription, annotation, llm/mercury) runs in
|
|
1654
|
+
// stopListeningForMeetingEvents() before /leave and /end so events
|
|
1655
|
+
// received mid-teardown do not trigger Locus syncs. Calling it here
|
|
1656
|
+
// again would double-emit MEETING_STOPPED_RECEIVING_TRANSCRIPTION
|
|
1657
|
+
// because stopTranscription() always fires its trigger.
|
|
1658
|
+
//
|
|
1659
|
+
// Ownership-aware token clear is encapsulated inside clearDataChannelToken().
|
|
1555
1660
|
_this.clearDataChannelToken();
|
|
1556
1661
|
_context5.next = 1;
|
|
1557
1662
|
return _this.cleanupLLMConneciton({
|
|
@@ -1727,7 +1832,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1727
1832
|
});
|
|
1728
1833
|
|
|
1729
1834
|
// @ts-ignore
|
|
1730
|
-
_this.aiEnableRequest = new _aiEnableRequest.default({
|
|
1835
|
+
_this.aiEnableRequest = new _aiEnableRequest.default({
|
|
1836
|
+
locusUrl: _this.locusUrl
|
|
1837
|
+
}, {
|
|
1731
1838
|
parent: _this.webex
|
|
1732
1839
|
});
|
|
1733
1840
|
|
|
@@ -1766,6 +1873,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1766
1873
|
var _this$members$findMem2;
|
|
1767
1874
|
return (_this$members$findMem2 = _this.members.findMemberByCsi(csi)) === null || _this$members$findMem2 === void 0 ? void 0 : _this$members$findMem2.id;
|
|
1768
1875
|
});
|
|
1876
|
+
|
|
1769
1877
|
/**
|
|
1770
1878
|
* Object containing helper classes for managing media requests for audio/video/screenshare (for multistream media connections)
|
|
1771
1879
|
* All multistream media requests sent out for this meeting have to go through them.
|
|
@@ -1777,7 +1885,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1777
1885
|
return;
|
|
1778
1886
|
}
|
|
1779
1887
|
_this.mediaProperties.webrtcMediaConnection.requestMedia(_internalMediaCore.MediaType.AudioMain, mediaRequests);
|
|
1780
|
-
}, {
|
|
1888
|
+
}, _this.getIngressPayloadTypeCallback.bind(_this), {
|
|
1781
1889
|
// @ts-ignore - config coming from registerPlugin
|
|
1782
1890
|
degradationPreferences: _this.config.degradationPreferences,
|
|
1783
1891
|
kind: 'audio',
|
|
@@ -1789,7 +1897,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1789
1897
|
return;
|
|
1790
1898
|
}
|
|
1791
1899
|
_this.mediaProperties.webrtcMediaConnection.requestMedia(_internalMediaCore.MediaType.VideoMain, mediaRequests);
|
|
1792
|
-
}, {
|
|
1900
|
+
}, _this.getIngressPayloadTypeCallback.bind(_this), {
|
|
1793
1901
|
// @ts-ignore - config coming from registerPlugin
|
|
1794
1902
|
degradationPreferences: _this.config.degradationPreferences,
|
|
1795
1903
|
kind: 'video',
|
|
@@ -1801,7 +1909,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1801
1909
|
return;
|
|
1802
1910
|
}
|
|
1803
1911
|
_this.mediaProperties.webrtcMediaConnection.requestMedia(_internalMediaCore.MediaType.AudioSlides, mediaRequests);
|
|
1804
|
-
}, {
|
|
1912
|
+
}, _this.getIngressPayloadTypeCallback.bind(_this), {
|
|
1805
1913
|
// @ts-ignore - config coming from registerPlugin
|
|
1806
1914
|
degradationPreferences: _this.config.degradationPreferences,
|
|
1807
1915
|
kind: 'audio',
|
|
@@ -1813,11 +1921,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1813
1921
|
return;
|
|
1814
1922
|
}
|
|
1815
1923
|
_this.mediaProperties.webrtcMediaConnection.requestMedia(_internalMediaCore.MediaType.VideoSlides, mediaRequests);
|
|
1816
|
-
}, {
|
|
1924
|
+
}, _this.getIngressPayloadTypeCallback.bind(_this), {
|
|
1817
1925
|
// @ts-ignore - config coming from registerPlugin
|
|
1818
1926
|
degradationPreferences: _this.config.degradationPreferences,
|
|
1819
1927
|
kind: 'video',
|
|
1820
|
-
trimRequestsToNumOfSources: false
|
|
1928
|
+
trimRequestsToNumOfSources: false,
|
|
1929
|
+
// @ts-ignore - config coming from registerPlugin
|
|
1930
|
+
enableAv1: _this.config.enableAv1SlidesSupport
|
|
1821
1931
|
})
|
|
1822
1932
|
};
|
|
1823
1933
|
/**
|
|
@@ -2135,7 +2245,42 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2135
2245
|
* @memberof Meeting
|
|
2136
2246
|
*/
|
|
2137
2247
|
// @ts-ignore - Fix type
|
|
2138
|
-
_this.locusInfo = new _locusInfo.default(
|
|
2248
|
+
_this.locusInfo = new _locusInfo.default({
|
|
2249
|
+
updateMeeting: _this.updateMeetingObject.bind(_this),
|
|
2250
|
+
syncLatencyTracker: {
|
|
2251
|
+
// Compute/store latency timestamps live on CallDiagnosticLatencies, while
|
|
2252
|
+
// submitting the client.locus.sync.complete CA event is owned by the metrics
|
|
2253
|
+
// facade. Wire each method to the layer that owns that responsibility.
|
|
2254
|
+
saveLatency: function saveLatency() {
|
|
2255
|
+
var _this$webex$internal$5;
|
|
2256
|
+
return (
|
|
2257
|
+
// @ts-ignore
|
|
2258
|
+
(_this$webex$internal$5 = _this.webex.internal.newMetrics.callDiagnosticLatencies).saveLatency.apply(_this$webex$internal$5, arguments)
|
|
2259
|
+
);
|
|
2260
|
+
},
|
|
2261
|
+
saveTimestamp: function saveTimestamp(saveTimestampOptions) {
|
|
2262
|
+
var _saveTimestampOptions;
|
|
2263
|
+
// @ts-ignore
|
|
2264
|
+
_this.webex.internal.newMetrics.callDiagnosticLatencies.saveTimestamp(saveTimestampOptions);
|
|
2265
|
+
|
|
2266
|
+
// The /sync response is one of the two milestones (the other is the LLM message) that
|
|
2267
|
+
// complete client.locus.sync.complete. Try to complete now: the metric is emitted only
|
|
2268
|
+
// once both the LLM message and the /sync response have arrived (either can come first).
|
|
2269
|
+
if (saveTimestampOptions.key === 'internal.client.locus.sync.response' && (_saveTimestampOptions = saveTimestampOptions.options) !== null && _saveTimestampOptions !== void 0 && _saveTimestampOptions.trackingId) {
|
|
2270
|
+
_this.tryCompleteLocusSyncLatency(saveTimestampOptions.options.meetingId, saveTimestampOptions.options.trackingId);
|
|
2271
|
+
}
|
|
2272
|
+
},
|
|
2273
|
+
clearLocusSyncLatency: function clearLocusSyncLatency() {
|
|
2274
|
+
var _this$webex$internal$6;
|
|
2275
|
+
return (
|
|
2276
|
+
// @ts-ignore
|
|
2277
|
+
(_this$webex$internal$6 = _this.webex.internal.newMetrics.callDiagnosticLatencies).clearLocusSyncLatency.apply(_this$webex$internal$6, arguments)
|
|
2278
|
+
);
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
},
|
|
2282
|
+
// @ts-ignore
|
|
2283
|
+
_this.webex, _this.id);
|
|
2139
2284
|
|
|
2140
2285
|
// We had to add listeners first before setting up the locus instance
|
|
2141
2286
|
/**
|
|
@@ -2325,7 +2470,15 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2325
2470
|
*/
|
|
2326
2471
|
_this.controlsOptionsManager = new _controlsOptionsManager.default(_this.meetingRequest, {
|
|
2327
2472
|
locusUrl: (_this$locusInfo5 = _this.locusInfo) === null || _this$locusInfo5 === void 0 ? void 0 : _this$locusInfo5.url,
|
|
2328
|
-
displayHints: []
|
|
2473
|
+
displayHints: [],
|
|
2474
|
+
getControls: function getControls() {
|
|
2475
|
+
var _this$locusInfo6;
|
|
2476
|
+
return (_this$locusInfo6 = _this.locusInfo) === null || _this$locusInfo6 === void 0 ? void 0 : _this$locusInfo6.controls;
|
|
2477
|
+
},
|
|
2478
|
+
isWebinar: function isWebinar() {
|
|
2479
|
+
var _this$locusInfo7, _this$locusInfo7$info;
|
|
2480
|
+
return (_this$locusInfo7 = _this.locusInfo) === null || _this$locusInfo7 === void 0 ? void 0 : (_this$locusInfo7$info = _this$locusInfo7.info) === null || _this$locusInfo7$info === void 0 ? void 0 : _this$locusInfo7$info.isWebinar;
|
|
2481
|
+
}
|
|
2329
2482
|
});
|
|
2330
2483
|
_this.setUpLocusInfoListeners();
|
|
2331
2484
|
_this.locusInfo.init(attrs.locus ? attrs.locus : {});
|
|
@@ -2423,12 +2576,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2423
2576
|
/**
|
|
2424
2577
|
* Information needed for a retry of a call to joinWithMedia
|
|
2425
2578
|
* @instance
|
|
2426
|
-
* @type {{
|
|
2579
|
+
* @type {{retryCount: number; prevJoinResponse?: any}}
|
|
2427
2580
|
* @private
|
|
2428
2581
|
* @memberof Meeting
|
|
2429
2582
|
*/
|
|
2430
2583
|
_this.joinWithMediaRetryInfo = {
|
|
2431
|
-
|
|
2584
|
+
retryCount: 0,
|
|
2432
2585
|
prevJoinResponse: undefined
|
|
2433
2586
|
};
|
|
2434
2587
|
|
|
@@ -2486,14 +2639,36 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2486
2639
|
}
|
|
2487
2640
|
|
|
2488
2641
|
/**
|
|
2489
|
-
*
|
|
2490
|
-
*
|
|
2491
|
-
*
|
|
2492
|
-
* @
|
|
2493
|
-
* @
|
|
2642
|
+
* Get the ingress payload type for a given media type and codec mime type
|
|
2643
|
+
* @param {MediaType} mediaType - The media type
|
|
2644
|
+
* @param {MediaCodecMimeType} codecMimeType - The codec mime type
|
|
2645
|
+
* @returns {number | undefined} - The ingress payload type
|
|
2646
|
+
* @private
|
|
2647
|
+
* @memberof Meeting
|
|
2494
2648
|
*/
|
|
2495
2649
|
(0, _inherits2.default)(Meeting, _StatelessWebexPlugin);
|
|
2496
2650
|
return (0, _createClass2.default)(Meeting, [{
|
|
2651
|
+
key: "getIngressPayloadTypeCallback",
|
|
2652
|
+
value: function getIngressPayloadTypeCallback(mediaType, codecMimeType) {
|
|
2653
|
+
if (this.isMultistream) {
|
|
2654
|
+
try {
|
|
2655
|
+
return this.mediaProperties.webrtcMediaConnection.getIngressPayloadType(mediaType, codecMimeType);
|
|
2656
|
+
} catch (error) {
|
|
2657
|
+
_loggerProxy.default.logger.info("Meeting:index#mediaRequestManager --> failed to get ingress payload type for mediaType=".concat(mediaType, ", codecMimeType=").concat(codecMimeType), error);
|
|
2658
|
+
return undefined;
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
return undefined;
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
/**
|
|
2665
|
+
* Temporary func to return webex object,
|
|
2666
|
+
* in order to access internal plugin metrics
|
|
2667
|
+
* in the utils file.
|
|
2668
|
+
* @internal
|
|
2669
|
+
* @returns {object} webex object
|
|
2670
|
+
*/
|
|
2671
|
+
}, {
|
|
2497
2672
|
key: "getWebexObject",
|
|
2498
2673
|
value: function getWebexObject() {
|
|
2499
2674
|
// @ts-ignore
|
|
@@ -2775,7 +2950,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2775
2950
|
// @ts-ignore - config coming from registerPlugin
|
|
2776
2951
|
this.config.installedOrgID, this.locusId, extraParams, {
|
|
2777
2952
|
meetingId: this.id,
|
|
2778
|
-
sendCAevents: sendCAevents
|
|
2953
|
+
sendCAevents: sendCAevents,
|
|
2954
|
+
correlationId: this.correlationId
|
|
2779
2955
|
}, registrationId, null, classificationId);
|
|
2780
2956
|
case 2:
|
|
2781
2957
|
info = _context7.sent;
|
|
@@ -3134,6 +3310,85 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3134
3310
|
});
|
|
3135
3311
|
}
|
|
3136
3312
|
|
|
3313
|
+
/**
|
|
3314
|
+
* Handles the LLM state-update message that resulted from a Locus /sync. Records the LLM arrival
|
|
3315
|
+
* time (the milestone that gates client.locus.sync.complete - the metric is emitted only for LLM
|
|
3316
|
+
* flows) and then tries to complete the metric.
|
|
3317
|
+
* @param {string} meetingId meeting id
|
|
3318
|
+
* @param {string} trackingId sync tracking id echoed back on the LLM message
|
|
3319
|
+
* @returns {void}
|
|
3320
|
+
* @private
|
|
3321
|
+
* @memberof Meeting
|
|
3322
|
+
*/
|
|
3323
|
+
}, {
|
|
3324
|
+
key: "onLocusSyncLlmMessage",
|
|
3325
|
+
value: function onLocusSyncLlmMessage(meetingId, trackingId) {
|
|
3326
|
+
// @ts-ignore
|
|
3327
|
+
this.webex.internal.newMetrics.callDiagnosticLatencies.recordLocusSyncMessageReceived(meetingId, trackingId);
|
|
3328
|
+
this.tryCompleteLocusSyncLatency(meetingId, trackingId);
|
|
3329
|
+
}
|
|
3330
|
+
|
|
3331
|
+
/**
|
|
3332
|
+
* Attempts to complete the Locus sync latency metric and emit client.locus.sync.complete. The
|
|
3333
|
+
* metric is emitted only once BOTH the /sync response and the resulting LLM message have arrived
|
|
3334
|
+
* (in either order); until then the record is kept so the missing milestone can still land. Both
|
|
3335
|
+
* trigger points (the LLM message handler and the /sync response timestamp) call this, so the
|
|
3336
|
+
* metric fires as soon as the second milestone is in.
|
|
3337
|
+
* @param {string} meetingId meeting id
|
|
3338
|
+
* @param {string} trackingId sync tracking id used to match the pending record
|
|
3339
|
+
* @returns {void}
|
|
3340
|
+
* @private
|
|
3341
|
+
* @memberof Meeting
|
|
3342
|
+
*/
|
|
3343
|
+
}, {
|
|
3344
|
+
key: "tryCompleteLocusSyncLatency",
|
|
3345
|
+
value: function tryCompleteLocusSyncLatency(meetingId, trackingId) {
|
|
3346
|
+
var completed =
|
|
3347
|
+
// @ts-ignore
|
|
3348
|
+
this.webex.internal.newMetrics.callDiagnosticLatencies.completeLocusSyncLatency(meetingId, trackingId);
|
|
3349
|
+
if (completed) {
|
|
3350
|
+
this.emitLocusSyncCompleteMetric(meetingId, completed);
|
|
3351
|
+
}
|
|
3352
|
+
}
|
|
3353
|
+
|
|
3354
|
+
/**
|
|
3355
|
+
* Submits the client.locus.sync.complete Call Analyzer event for a completed Locus sync latency
|
|
3356
|
+
* measurement.
|
|
3357
|
+
* @param {string} meetingId meeting id
|
|
3358
|
+
* @param {object} completed completed sync latency payload from the metrics plugin
|
|
3359
|
+
* @returns {void}
|
|
3360
|
+
* @private
|
|
3361
|
+
* @memberof Meeting
|
|
3362
|
+
*/
|
|
3363
|
+
}, {
|
|
3364
|
+
key: "emitLocusSyncCompleteMetric",
|
|
3365
|
+
value: function emitLocusSyncCompleteMetric(meetingId, completed) {
|
|
3366
|
+
var _this$webex$internal$7, _this$webex$internal$8;
|
|
3367
|
+
// @ts-ignore
|
|
3368
|
+
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;
|
|
3369
|
+
|
|
3370
|
+
// Per the LLM sync-latency spec, the event carries the LLM websocket url identifier,
|
|
3371
|
+
// the llmInfo.dataSet (main, atd-active or atd-unmuted) and the syncLatency block.
|
|
3372
|
+
var clientEvent = {
|
|
3373
|
+
name: 'client.locus.sync.complete',
|
|
3374
|
+
payload: {
|
|
3375
|
+
identifiers: {
|
|
3376
|
+
llmWebsocketUrl: llmWebsocketUrl
|
|
3377
|
+
},
|
|
3378
|
+
llmInfo: {
|
|
3379
|
+
dataSet: completed.dataSet
|
|
3380
|
+
},
|
|
3381
|
+
syncLatency: completed.syncLatency
|
|
3382
|
+
},
|
|
3383
|
+
options: {
|
|
3384
|
+
meetingId: meetingId
|
|
3385
|
+
}
|
|
3386
|
+
};
|
|
3387
|
+
|
|
3388
|
+
// @ts-ignore
|
|
3389
|
+
this.webex.internal.newMetrics.submitClientEvent(clientEvent);
|
|
3390
|
+
}
|
|
3391
|
+
|
|
3137
3392
|
/**
|
|
3138
3393
|
* Proxy function for all the listener set ups
|
|
3139
3394
|
* @returns {undefined}
|
|
@@ -3525,7 +3780,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3525
3780
|
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_RECORDING_UPDATED, function (_ref10) {
|
|
3526
3781
|
var state = _ref10.state,
|
|
3527
3782
|
modifiedBy = _ref10.modifiedBy,
|
|
3528
|
-
lastModified = _ref10.lastModified
|
|
3783
|
+
lastModified = _ref10.lastModified,
|
|
3784
|
+
modifiedByServiceAppName = _ref10.modifiedByServiceAppName,
|
|
3785
|
+
modifiedByServiceAppId = _ref10.modifiedByServiceAppId;
|
|
3529
3786
|
var event;
|
|
3530
3787
|
switch (state) {
|
|
3531
3788
|
case _constants.RECORDING_STATE.RECORDING:
|
|
@@ -3549,7 +3806,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3549
3806
|
_this12.recording = {
|
|
3550
3807
|
state: state === _constants.RECORDING_STATE.RESUMED ? _constants.RECORDING_STATE.RECORDING : state,
|
|
3551
3808
|
modifiedBy: modifiedBy,
|
|
3552
|
-
lastModified: lastModified
|
|
3809
|
+
lastModified: lastModified,
|
|
3810
|
+
modifiedByServiceAppName: modifiedByServiceAppName,
|
|
3811
|
+
modifiedByServiceAppId: modifiedByServiceAppId
|
|
3553
3812
|
};
|
|
3554
3813
|
_triggerProxy.default.trigger(_this12, {
|
|
3555
3814
|
file: 'meeting/index',
|
|
@@ -3877,7 +4136,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3877
4136
|
else if ((previousContentShare && contentShare.disposition === _constants.FLOOR_ACTION.RELEASED || contentShare.disposition === null) && (previousWhiteboardShare && whiteboardShare.disposition === _constants.FLOOR_ACTION.RELEASED || whiteboardShare.disposition === null)) {
|
|
3878
4137
|
newShareStatus = _constants.SHARE_STATUS.NO_SHARE;
|
|
3879
4138
|
}
|
|
3880
|
-
_loggerProxy.default.logger.info("Meeting:index#
|
|
4139
|
+
_loggerProxy.default.logger.info("Meeting:index#setUpLocusMediaSharesListener --> this.shareStatus=".concat(_this13.shareStatus, " newShareStatus=").concat(newShareStatus));
|
|
3881
4140
|
if (!(newShareStatus !== _this13.shareStatus)) {
|
|
3882
4141
|
_context0.next = 17;
|
|
3883
4142
|
break;
|
|
@@ -4086,15 +4345,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4086
4345
|
_this14.breakouts.locusUrlUpdate(url);
|
|
4087
4346
|
_this14.simultaneousInterpretation.locusUrlUpdate(url);
|
|
4088
4347
|
_this14.annotation.locusUrlUpdate(url);
|
|
4348
|
+
_this14.aiEnableRequest.locusUrlUpdate(url);
|
|
4089
4349
|
_this14.locusUrl = url;
|
|
4090
4350
|
_this14.locusId = (_this14$locusUrl = _this14.locusUrl) === null || _this14$locusUrl === void 0 ? void 0 : _this14$locusUrl.split('/').pop();
|
|
4091
4351
|
_this14.recordingController.setLocusUrl(_this14.locusUrl);
|
|
4092
4352
|
_this14.controlsOptionsManager.setLocusUrl(_this14.locusUrl, !!isMainLocus);
|
|
4093
4353
|
_this14.webinar.locusUrlUpdate(url);
|
|
4094
|
-
// @ts-ignore
|
|
4095
|
-
_this14.webex.internal.llm.setRefreshHandler(function () {
|
|
4096
|
-
return _this14.refreshDataChannelToken();
|
|
4097
|
-
});
|
|
4098
4354
|
_triggerProxy.default.trigger(_this14, {
|
|
4099
4355
|
file: 'meeting/index',
|
|
4100
4356
|
function: 'setUpLocusSelfListener'
|
|
@@ -4324,34 +4580,56 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4324
4580
|
});
|
|
4325
4581
|
_this19.updateLLMConnection();
|
|
4326
4582
|
});
|
|
4327
|
-
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.SELF_ADMITTED_GUEST, function (
|
|
4328
|
-
var
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4583
|
+
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.SELF_ADMITTED_GUEST, /*#__PURE__*/function () {
|
|
4584
|
+
var _ref37 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee1(payload) {
|
|
4585
|
+
var _this19$rtcMetrics;
|
|
4586
|
+
var _t9;
|
|
4587
|
+
return _regenerator.default.wrap(function (_context1) {
|
|
4588
|
+
while (1) switch (_context1.prev = _context1.next) {
|
|
4589
|
+
case 0:
|
|
4590
|
+
_this19.stopKeepAlive();
|
|
4591
|
+
if (payload) {
|
|
4592
|
+
_triggerProxy.default.trigger(_this19, {
|
|
4593
|
+
file: 'meeting/index',
|
|
4594
|
+
function: 'setUpLocusInfoSelfListener'
|
|
4595
|
+
}, _constants.EVENT_TRIGGERS.MEETING_SELF_GUEST_ADMITTED, {
|
|
4596
|
+
payload: payload
|
|
4597
|
+
});
|
|
4337
4598
|
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4599
|
+
// @ts-ignore
|
|
4600
|
+
_this19.webex.internal.newMetrics.submitClientEvent({
|
|
4601
|
+
name: 'client.lobby.exited',
|
|
4602
|
+
options: {
|
|
4603
|
+
meetingId: _this19.id
|
|
4604
|
+
}
|
|
4605
|
+
});
|
|
4606
|
+
_metrics.default.sendBehavioralMetric(_constants2.default.GUEST_EXITED_LOBBY, {
|
|
4607
|
+
correlation_id: _this19.correlationId
|
|
4608
|
+
});
|
|
4609
|
+
}
|
|
4610
|
+
(_this19$rtcMetrics = _this19.rtcMetrics) === null || _this19$rtcMetrics === void 0 ? void 0 : _this19$rtcMetrics.sendNextMetrics();
|
|
4611
|
+
_context1.prev = 1;
|
|
4612
|
+
_context1.next = 2;
|
|
4613
|
+
return _this19.ensureDefaultDatachannelTokenAfterAdmit();
|
|
4614
|
+
case 2:
|
|
4615
|
+
_context1.next = 4;
|
|
4616
|
+
break;
|
|
4617
|
+
case 3:
|
|
4618
|
+
_context1.prev = 3;
|
|
4619
|
+
_t9 = _context1["catch"](1);
|
|
4620
|
+
_loggerProxy.default.logger.warn("Meeting:index#setUpLocusInfoSelfListener --> failed post-admit token prefetch flow: ".concat((_t9 === null || _t9 === void 0 ? void 0 : _t9.message) || String(_t9)));
|
|
4621
|
+
case 4:
|
|
4622
|
+
_this19.updateLLMConnection();
|
|
4623
|
+
case 5:
|
|
4624
|
+
case "end":
|
|
4625
|
+
return _context1.stop();
|
|
4343
4626
|
}
|
|
4344
|
-
});
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
}
|
|
4349
|
-
|
|
4350
|
-
_this19.ensureDefaultDatachannelTokenAfterAdmit().catch(function (error) {
|
|
4351
|
-
_loggerProxy.default.logger.warn("Meeting:index#setUpLocusInfoSelfListener --> failed post-admit token prefetch flow: ".concat((error === null || error === void 0 ? void 0 : error.message) || String(error)));
|
|
4352
|
-
});
|
|
4353
|
-
_this19.updateLLMConnection();
|
|
4354
|
-
});
|
|
4627
|
+
}, _callee1, null, [[1, 3]]);
|
|
4628
|
+
}));
|
|
4629
|
+
return function (_x9) {
|
|
4630
|
+
return _ref37.apply(this, arguments);
|
|
4631
|
+
};
|
|
4632
|
+
}());
|
|
4355
4633
|
|
|
4356
4634
|
// @ts-ignore - check if MEDIA_INACTIVITY exists
|
|
4357
4635
|
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.MEDIA_INACTIVITY, function () {
|
|
@@ -4387,6 +4665,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4387
4665
|
}
|
|
4388
4666
|
});
|
|
4389
4667
|
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.SELF_CANNOT_VIEW_PARTICIPANT_LIST_CHANGE, function (payload) {
|
|
4668
|
+
// canViewTheParticipantList meeting action depends on this value, so we need to update meeting actions
|
|
4669
|
+
_this19.updateMeetingActions();
|
|
4390
4670
|
_triggerProxy.default.trigger(_this19, {
|
|
4391
4671
|
file: 'meeting/index',
|
|
4392
4672
|
function: 'setUpLocusInfoSelfListener'
|
|
@@ -4471,49 +4751,49 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4471
4751
|
}
|
|
4472
4752
|
});
|
|
4473
4753
|
this.locusInfo.on(_constants.EVENTS.DESTROY_MEETING, /*#__PURE__*/function () {
|
|
4474
|
-
var
|
|
4475
|
-
var
|
|
4476
|
-
return _regenerator.default.wrap(function (
|
|
4477
|
-
while (1) switch (
|
|
4754
|
+
var _ref38 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee10(payload) {
|
|
4755
|
+
var _t0;
|
|
4756
|
+
return _regenerator.default.wrap(function (_context10) {
|
|
4757
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
4478
4758
|
case 0:
|
|
4479
4759
|
if (!_this20.wirelessShare) {
|
|
4480
|
-
|
|
4760
|
+
_context10.next = 2;
|
|
4481
4761
|
break;
|
|
4482
4762
|
}
|
|
4483
4763
|
if (!_this20.mediaProperties.shareVideoStream) {
|
|
4484
|
-
|
|
4764
|
+
_context10.next = 1;
|
|
4485
4765
|
break;
|
|
4486
4766
|
}
|
|
4487
|
-
|
|
4767
|
+
_context10.next = 1;
|
|
4488
4768
|
return _this20.setLocalShareVideoStream(undefined);
|
|
4489
4769
|
case 1:
|
|
4490
4770
|
if (!_this20.mediaProperties.shareAudioStream) {
|
|
4491
|
-
|
|
4771
|
+
_context10.next = 2;
|
|
4492
4772
|
break;
|
|
4493
4773
|
}
|
|
4494
|
-
|
|
4774
|
+
_context10.next = 2;
|
|
4495
4775
|
return _this20.setLocalShareAudioStream(undefined);
|
|
4496
4776
|
case 2:
|
|
4497
4777
|
if (!payload.shouldLeave) {
|
|
4498
|
-
|
|
4778
|
+
_context10.next = 7;
|
|
4499
4779
|
break;
|
|
4500
4780
|
}
|
|
4501
|
-
|
|
4502
|
-
|
|
4781
|
+
_context10.prev = 3;
|
|
4782
|
+
_context10.next = 4;
|
|
4503
4783
|
return _this20.leave({
|
|
4504
4784
|
reason: payload.reason
|
|
4505
4785
|
});
|
|
4506
4786
|
case 4:
|
|
4507
4787
|
_loggerProxy.default.logger.warn('Meeting:index#setUpLocusInfoMeetingListener --> DESTROY_MEETING. The meeting has been left, but has not been destroyed, you should see a later event for leave.');
|
|
4508
|
-
|
|
4788
|
+
_context10.next = 6;
|
|
4509
4789
|
break;
|
|
4510
4790
|
case 5:
|
|
4511
|
-
|
|
4512
|
-
|
|
4791
|
+
_context10.prev = 5;
|
|
4792
|
+
_t0 = _context10["catch"](3);
|
|
4513
4793
|
// @ts-ignore
|
|
4514
|
-
_loggerProxy.default.logger.error("Meeting:index#setUpLocusInfoMeetingListener --> DESTROY_MEETING. Issue with leave for meeting, meeting still in collection: ".concat(_this20, ", error: ").concat(
|
|
4794
|
+
_loggerProxy.default.logger.error("Meeting:index#setUpLocusInfoMeetingListener --> DESTROY_MEETING. Issue with leave for meeting, meeting still in collection: ".concat(_this20, ", error: ").concat(_t0));
|
|
4515
4795
|
case 6:
|
|
4516
|
-
|
|
4796
|
+
_context10.next = 8;
|
|
4517
4797
|
break;
|
|
4518
4798
|
case 7:
|
|
4519
4799
|
_loggerProxy.default.logger.info('Meeting:index#setUpLocusInfoMeetingListener --> MEETING_REMOVED_REASON', payload.reason);
|
|
@@ -4527,12 +4807,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4527
4807
|
});
|
|
4528
4808
|
case 8:
|
|
4529
4809
|
case "end":
|
|
4530
|
-
return
|
|
4810
|
+
return _context10.stop();
|
|
4531
4811
|
}
|
|
4532
|
-
},
|
|
4812
|
+
}, _callee10, null, [[3, 5]]);
|
|
4533
4813
|
}));
|
|
4534
|
-
return function (
|
|
4535
|
-
return
|
|
4814
|
+
return function (_x0) {
|
|
4815
|
+
return _ref38.apply(this, arguments);
|
|
4536
4816
|
};
|
|
4537
4817
|
}());
|
|
4538
4818
|
}
|
|
@@ -4554,7 +4834,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4554
4834
|
// is not changed by any delta event
|
|
4555
4835
|
if (object && (0, _keys.default)(object).length) {
|
|
4556
4836
|
(0, _keys.default)(object).forEach(function (key) {
|
|
4837
|
+
var previousValue = _this21[key];
|
|
4557
4838
|
_this21[key] = object[key];
|
|
4839
|
+
if (_this21.promisesWaitingForPropUpdate[key] && previousValue !== object[key]) {
|
|
4840
|
+
_this21.promisesWaitingForPropUpdate[key].resolve();
|
|
4841
|
+
delete _this21.promisesWaitingForPropUpdate[key];
|
|
4842
|
+
}
|
|
4558
4843
|
});
|
|
4559
4844
|
}
|
|
4560
4845
|
}
|
|
@@ -4650,31 +4935,31 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4650
4935
|
}, {
|
|
4651
4936
|
key: "beRightBack",
|
|
4652
4937
|
value: (function () {
|
|
4653
|
-
var _beRightBack = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
4938
|
+
var _beRightBack = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee11(enabled) {
|
|
4654
4939
|
var _this22 = this;
|
|
4655
4940
|
var errorMessage, error, _errorMessage, _error;
|
|
4656
|
-
return _regenerator.default.wrap(function (
|
|
4657
|
-
while (1) switch (
|
|
4941
|
+
return _regenerator.default.wrap(function (_context11) {
|
|
4942
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
4658
4943
|
case 0:
|
|
4659
4944
|
if (this.isMultistream) {
|
|
4660
|
-
|
|
4945
|
+
_context11.next = 1;
|
|
4661
4946
|
break;
|
|
4662
4947
|
}
|
|
4663
4948
|
errorMessage = 'Meeting:index#beRightBack --> Not a multistream meeting';
|
|
4664
4949
|
error = new Error(errorMessage);
|
|
4665
4950
|
_loggerProxy.default.logger.error(error);
|
|
4666
|
-
return
|
|
4951
|
+
return _context11.abrupt("return", _promise.default.reject(error));
|
|
4667
4952
|
case 1:
|
|
4668
4953
|
if (this.mediaProperties.webrtcMediaConnection) {
|
|
4669
|
-
|
|
4954
|
+
_context11.next = 2;
|
|
4670
4955
|
break;
|
|
4671
4956
|
}
|
|
4672
4957
|
_errorMessage = 'Meeting:index#beRightBack --> WebRTC media connection is not defined';
|
|
4673
4958
|
_error = new Error(_errorMessage);
|
|
4674
4959
|
_loggerProxy.default.logger.error(_error);
|
|
4675
|
-
return
|
|
4960
|
+
return _context11.abrupt("return", _promise.default.reject(_error));
|
|
4676
4961
|
case 2:
|
|
4677
|
-
return
|
|
4962
|
+
return _context11.abrupt("return", this.brbState.enable(enabled, this.sendSlotManager).then(function () {
|
|
4678
4963
|
if (_this22.audio && enabled) {
|
|
4679
4964
|
// locus mutes the participant with brb enabled request,
|
|
4680
4965
|
// so we need to explicitly update remote mute for correct logic flow
|
|
@@ -4685,11 +4970,11 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4685
4970
|
}));
|
|
4686
4971
|
case 3:
|
|
4687
4972
|
case "end":
|
|
4688
|
-
return
|
|
4973
|
+
return _context11.stop();
|
|
4689
4974
|
}
|
|
4690
|
-
},
|
|
4975
|
+
}, _callee11, this);
|
|
4691
4976
|
}));
|
|
4692
|
-
function beRightBack(
|
|
4977
|
+
function beRightBack(_x1) {
|
|
4693
4978
|
return _beRightBack.apply(this, arguments);
|
|
4694
4979
|
}
|
|
4695
4980
|
return beRightBack;
|
|
@@ -4724,7 +5009,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4724
5009
|
}
|
|
4725
5010
|
|
|
4726
5011
|
/**
|
|
4727
|
-
* Transfer the moderator role to another eligible member
|
|
5012
|
+
* Transfer the moderator role to another eligible member.
|
|
5013
|
+
*
|
|
5014
|
+
* If the target member is currently joined in the current session, the request is
|
|
5015
|
+
* sent against the current locus. Otherwise, we search the breakout sessions and,
|
|
5016
|
+
* when the member is found in one, we send the request against that breakout
|
|
5017
|
+
* session's locus url instead.
|
|
4728
5018
|
* @param {String} memberId
|
|
4729
5019
|
* @param {Boolean} moderator
|
|
4730
5020
|
* @returns {Promise} see #members.transferHostToMember
|
|
@@ -4734,8 +5024,19 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4734
5024
|
}, {
|
|
4735
5025
|
key: "transfer",
|
|
4736
5026
|
value: function transfer(memberId) {
|
|
5027
|
+
var _this$breakouts2, _this$breakouts2$brea, _this$breakouts2$brea2, _breakout$breakoutRos;
|
|
4737
5028
|
var moderator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
4738
|
-
|
|
5029
|
+
var targetMember = this.members.membersCollection.get(memberId);
|
|
5030
|
+
if (targetMember !== null && targetMember !== void 0 && targetMember.isInMeeting) {
|
|
5031
|
+
return this.members.transferHostToMember(memberId, moderator);
|
|
5032
|
+
}
|
|
5033
|
+
var breakout = (_this$breakouts2 = this.breakouts) === null || _this$breakouts2 === void 0 ? void 0 : (_this$breakouts2$brea = _this$breakouts2.breakouts) === null || _this$breakouts2$brea === void 0 ? void 0 : (_this$breakouts2$brea2 = _this$breakouts2$brea.models) === null || _this$breakouts2$brea2 === void 0 ? void 0 : _this$breakouts2$brea2.find(function (bo) {
|
|
5034
|
+
var _bo$members, _bo$members$membersCo;
|
|
5035
|
+
var breakoutMember = (_bo$members = bo.members) === null || _bo$members === void 0 ? void 0 : (_bo$members$membersCo = _bo$members.membersCollection) === null || _bo$members$membersCo === void 0 ? void 0 : _bo$members$membersCo.get(memberId);
|
|
5036
|
+
return breakoutMember === null || breakoutMember === void 0 ? void 0 : breakoutMember.isInMeeting;
|
|
5037
|
+
});
|
|
5038
|
+
var breakoutLocusUrl = breakout === null || breakout === void 0 ? void 0 : (_breakout$breakoutRos = breakout.breakoutRosterLocus) === null || _breakout$breakoutRos === void 0 ? void 0 : _breakout$breakoutRos.url;
|
|
5039
|
+
return this.members.transferHostToMember(memberId, moderator, breakoutLocusUrl);
|
|
4739
5040
|
}
|
|
4740
5041
|
|
|
4741
5042
|
/**
|
|
@@ -4863,6 +5164,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4863
5164
|
}) && ((_this$meetingInfo5 = this.meetingInfo) === null || _this$meetingInfo5 === void 0 ? void 0 : (_this$meetingInfo5$vi = _this$meetingInfo5.video) === null || _this$meetingInfo5$vi === void 0 ? void 0 : _this$meetingInfo5$vi.supportHQV) || !this.arePolicyRestrictionsSupported()
|
|
4864
5165
|
});
|
|
4865
5166
|
if (this.userDisplayHints !== undefined) {
|
|
5167
|
+
var _this$canNotViewThePa;
|
|
4866
5168
|
changed = this.inMeetingActions.set({
|
|
4867
5169
|
canInviteNewParticipants: _util2.default.canInviteNewParticipants(this.userDisplayHints),
|
|
4868
5170
|
canAdmitParticipant: _util2.default.canAdmitParticipant(this.userDisplayHints),
|
|
@@ -5117,7 +5419,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5117
5419
|
displayHints: this.userDisplayHints
|
|
5118
5420
|
}),
|
|
5119
5421
|
canAttendeeRequestAiAssistantEnabled: _util2.default.canAttendeeRequestAiAssistantEnabled(this.userDisplayHints, this.roles),
|
|
5120
|
-
isAttendeeRequestAiAssistantDeclinedAll: _util2.default.attendeeRequestAiAssistantDeclinedAll(this.userDisplayHints)
|
|
5422
|
+
isAttendeeRequestAiAssistantDeclinedAll: _util2.default.attendeeRequestAiAssistantDeclinedAll(this.userDisplayHints),
|
|
5423
|
+
isAnonymizeDisplayNamesEnabled: _util2.default.isAnonymizeDisplayNamesEnabled(this.userDisplayHints),
|
|
5424
|
+
isSupportParticipantList: _util5.default.hasPolicies({
|
|
5425
|
+
requiredPolicies: [_constants.SELF_POLICY.SUPPORT_PARTICIPANT_LIST],
|
|
5426
|
+
policies: this.selfUserPolicies
|
|
5427
|
+
}),
|
|
5428
|
+
canViewTheParticipantList: _util2.default.canViewTheParticipantList(this.userDisplayHints, (_this$canNotViewThePa = this.canNotViewTheParticipantList) !== null && _this$canNotViewThePa !== void 0 ? _this$canNotViewThePa : false)
|
|
5121
5429
|
}) || changed;
|
|
5122
5430
|
}
|
|
5123
5431
|
if (changed) {
|
|
@@ -5168,6 +5476,51 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5168
5476
|
this.sipUri = sipUri;
|
|
5169
5477
|
}
|
|
5170
5478
|
|
|
5479
|
+
/**
|
|
5480
|
+
* After initial locus setup, refreshes destination with synced locus data and optionally
|
|
5481
|
+
* performs deferred meeting info fetch when initial locus was incomplete.
|
|
5482
|
+
* @param {LocusDTO} locus
|
|
5483
|
+
* @returns {void}
|
|
5484
|
+
*/
|
|
5485
|
+
}, {
|
|
5486
|
+
key: "finalizeMeetingAfterInitialLocusSetup",
|
|
5487
|
+
value: (function () {
|
|
5488
|
+
var _finalizeMeetingAfterInitialLocusSetup = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee12(locus) {
|
|
5489
|
+
var _this$destination;
|
|
5490
|
+
var _t1;
|
|
5491
|
+
return _regenerator.default.wrap(function (_context12) {
|
|
5492
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
5493
|
+
case 0:
|
|
5494
|
+
if (locus && (this === null || this === void 0 ? void 0 : this.destinationType) === _constants.DESTINATION_TYPE.LOCUS_ID) {
|
|
5495
|
+
// destination is initialized from the initial locus snapshot in constructor,
|
|
5496
|
+
// so refresh it after locus sync to avoid stale partial hash-tree data.
|
|
5497
|
+
this.destination = locus;
|
|
5498
|
+
}
|
|
5499
|
+
if (!((!this.meetingInfo || (0, _lodash.isEmpty)(this.meetingInfo)) && (_this$destination = this.destination) !== null && _this$destination !== void 0 && _this$destination.info && !this.fetchMeetingInfoTimeoutId && !_util3.default.isOneOnOneCall(locus))) {
|
|
5500
|
+
_context12.next = 4;
|
|
5501
|
+
break;
|
|
5502
|
+
}
|
|
5503
|
+
_context12.prev = 1;
|
|
5504
|
+
_context12.next = 2;
|
|
5505
|
+
return this.fetchMeetingInfo({});
|
|
5506
|
+
case 2:
|
|
5507
|
+
_context12.next = 4;
|
|
5508
|
+
break;
|
|
5509
|
+
case 3:
|
|
5510
|
+
_context12.prev = 3;
|
|
5511
|
+
_t1 = _context12["catch"](1);
|
|
5512
|
+
_loggerProxy.default.logger.info("Meeting:index#finalizeMeetingAfterInitialLocusSetup --> deferred fetchMeetingInfo failed: ".concat(_t1.message));
|
|
5513
|
+
case 4:
|
|
5514
|
+
case "end":
|
|
5515
|
+
return _context12.stop();
|
|
5516
|
+
}
|
|
5517
|
+
}, _callee12, this, [[1, 3]]);
|
|
5518
|
+
}));
|
|
5519
|
+
function finalizeMeetingAfterInitialLocusSetup(_x10) {
|
|
5520
|
+
return _finalizeMeetingAfterInitialLocusSetup.apply(this, arguments);
|
|
5521
|
+
}
|
|
5522
|
+
return finalizeMeetingAfterInitialLocusSetup;
|
|
5523
|
+
}()
|
|
5171
5524
|
/**
|
|
5172
5525
|
* Set the locus info the class instance. Should be called with the parsed locus
|
|
5173
5526
|
* we got in the join response.
|
|
@@ -5183,6 +5536,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5183
5536
|
* @private
|
|
5184
5537
|
* @memberof Meeting
|
|
5185
5538
|
*/
|
|
5539
|
+
)
|
|
5186
5540
|
}, {
|
|
5187
5541
|
key: "setLocus",
|
|
5188
5542
|
value: function setLocus(data) {
|
|
@@ -5362,11 +5716,11 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5362
5716
|
}, {
|
|
5363
5717
|
key: "setLocalAudioStream",
|
|
5364
5718
|
value: (function () {
|
|
5365
|
-
var _setLocalAudioStream = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
5719
|
+
var _setLocalAudioStream = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee13(localStream) {
|
|
5366
5720
|
var _this$audio2;
|
|
5367
5721
|
var oldStream;
|
|
5368
|
-
return _regenerator.default.wrap(function (
|
|
5369
|
-
while (1) switch (
|
|
5722
|
+
return _regenerator.default.wrap(function (_context13) {
|
|
5723
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
5370
5724
|
case 0:
|
|
5371
5725
|
oldStream = this.mediaProperties.audioStream;
|
|
5372
5726
|
oldStream === null || oldStream === void 0 ? void 0 : oldStream.off(_mediaHelpers.LocalStreamEventNames.UserMuteStateChange, this.localAudioStreamMuteStateHandler);
|
|
@@ -5380,21 +5734,21 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5380
5734
|
localStream === null || localStream === void 0 ? void 0 : localStream.on(_mediaHelpers.LocalStreamEventNames.SystemMuteStateChange, this.localAudioStreamMuteStateHandler);
|
|
5381
5735
|
localStream === null || localStream === void 0 ? void 0 : localStream.on(_mediaHelpers.LocalStreamEventNames.OutputTrackChange, this.localOutputTrackChangeHandler);
|
|
5382
5736
|
if (!(!this.isMultistream || !localStream)) {
|
|
5383
|
-
|
|
5737
|
+
_context13.next = 1;
|
|
5384
5738
|
break;
|
|
5385
5739
|
}
|
|
5386
|
-
|
|
5740
|
+
_context13.next = 1;
|
|
5387
5741
|
return this.unpublishStream(_internalMediaCore.MediaType.AudioMain, oldStream);
|
|
5388
5742
|
case 1:
|
|
5389
|
-
|
|
5743
|
+
_context13.next = 2;
|
|
5390
5744
|
return this.publishStream(_internalMediaCore.MediaType.AudioMain, this.mediaProperties.audioStream);
|
|
5391
5745
|
case 2:
|
|
5392
5746
|
case "end":
|
|
5393
|
-
return
|
|
5747
|
+
return _context13.stop();
|
|
5394
5748
|
}
|
|
5395
|
-
},
|
|
5749
|
+
}, _callee13, this);
|
|
5396
5750
|
}));
|
|
5397
|
-
function setLocalAudioStream(
|
|
5751
|
+
function setLocalAudioStream(_x11) {
|
|
5398
5752
|
return _setLocalAudioStream.apply(this, arguments);
|
|
5399
5753
|
}
|
|
5400
5754
|
return setLocalAudioStream;
|
|
@@ -5410,11 +5764,11 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5410
5764
|
}, {
|
|
5411
5765
|
key: "setLocalVideoStream",
|
|
5412
5766
|
value: (function () {
|
|
5413
|
-
var _setLocalVideoStream = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
5767
|
+
var _setLocalVideoStream = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee14(localStream) {
|
|
5414
5768
|
var _this$video2;
|
|
5415
5769
|
var oldStream;
|
|
5416
|
-
return _regenerator.default.wrap(function (
|
|
5417
|
-
while (1) switch (
|
|
5770
|
+
return _regenerator.default.wrap(function (_context14) {
|
|
5771
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
5418
5772
|
case 0:
|
|
5419
5773
|
oldStream = this.mediaProperties.videoStream;
|
|
5420
5774
|
oldStream === null || oldStream === void 0 ? void 0 : oldStream.off(_mediaHelpers.LocalStreamEventNames.UserMuteStateChange, this.localVideoStreamMuteStateHandler);
|
|
@@ -5430,21 +5784,21 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5430
5784
|
localStream === null || localStream === void 0 ? void 0 : localStream.on(_mediaHelpers.LocalStreamEventNames.OutputTrackChange, this.localOutputTrackChangeHandler);
|
|
5431
5785
|
localStream === null || localStream === void 0 ? void 0 : localStream.on(_mediaHelpers.LocalStreamEventNames.ConstraintsChange, this.localConstraintsChangeHandler);
|
|
5432
5786
|
if (!(!this.isMultistream || !localStream)) {
|
|
5433
|
-
|
|
5787
|
+
_context14.next = 1;
|
|
5434
5788
|
break;
|
|
5435
5789
|
}
|
|
5436
|
-
|
|
5790
|
+
_context14.next = 1;
|
|
5437
5791
|
return this.unpublishStream(_internalMediaCore.MediaType.VideoMain, oldStream);
|
|
5438
5792
|
case 1:
|
|
5439
|
-
|
|
5793
|
+
_context14.next = 2;
|
|
5440
5794
|
return this.publishStream(_internalMediaCore.MediaType.VideoMain, this.mediaProperties.videoStream);
|
|
5441
5795
|
case 2:
|
|
5442
5796
|
case "end":
|
|
5443
|
-
return
|
|
5797
|
+
return _context14.stop();
|
|
5444
5798
|
}
|
|
5445
|
-
},
|
|
5799
|
+
}, _callee14, this);
|
|
5446
5800
|
}));
|
|
5447
|
-
function setLocalVideoStream(
|
|
5801
|
+
function setLocalVideoStream(_x12) {
|
|
5448
5802
|
return _setLocalVideoStream.apply(this, arguments);
|
|
5449
5803
|
}
|
|
5450
5804
|
return setLocalVideoStream;
|
|
@@ -5461,10 +5815,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5461
5815
|
}, {
|
|
5462
5816
|
key: "setLocalShareVideoStream",
|
|
5463
5817
|
value: (function () {
|
|
5464
|
-
var _setLocalShareVideoStream = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
5818
|
+
var _setLocalShareVideoStream = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee15(localDisplayStream) {
|
|
5465
5819
|
var oldStream;
|
|
5466
|
-
return _regenerator.default.wrap(function (
|
|
5467
|
-
while (1) switch (
|
|
5820
|
+
return _regenerator.default.wrap(function (_context15) {
|
|
5821
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
5468
5822
|
case 0:
|
|
5469
5823
|
oldStream = this.mediaProperties.shareVideoStream;
|
|
5470
5824
|
oldStream === null || oldStream === void 0 ? void 0 : oldStream.off(_mediaHelpers.LocalStreamEventNames.SystemMuteStateChange, this.handleShareVideoStreamMuteStateChange);
|
|
@@ -5476,21 +5830,21 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5476
5830
|
localDisplayStream === null || localDisplayStream === void 0 ? void 0 : localDisplayStream.on(_mediaHelpers.LocalStreamEventNames.OutputTrackChange, this.localOutputTrackChangeHandler);
|
|
5477
5831
|
this.mediaProperties.mediaDirection.sendShare = this.mediaProperties.hasLocalShareStream();
|
|
5478
5832
|
if (!(!this.isMultistream || !localDisplayStream)) {
|
|
5479
|
-
|
|
5833
|
+
_context15.next = 1;
|
|
5480
5834
|
break;
|
|
5481
5835
|
}
|
|
5482
|
-
|
|
5836
|
+
_context15.next = 1;
|
|
5483
5837
|
return this.unpublishStream(_internalMediaCore.MediaType.VideoSlides, oldStream);
|
|
5484
5838
|
case 1:
|
|
5485
|
-
|
|
5839
|
+
_context15.next = 2;
|
|
5486
5840
|
return this.publishStream(_internalMediaCore.MediaType.VideoSlides, this.mediaProperties.shareVideoStream);
|
|
5487
5841
|
case 2:
|
|
5488
5842
|
case "end":
|
|
5489
|
-
return
|
|
5843
|
+
return _context15.stop();
|
|
5490
5844
|
}
|
|
5491
|
-
},
|
|
5845
|
+
}, _callee15, this);
|
|
5492
5846
|
}));
|
|
5493
|
-
function setLocalShareVideoStream(
|
|
5847
|
+
function setLocalShareVideoStream(_x13) {
|
|
5494
5848
|
return _setLocalShareVideoStream.apply(this, arguments);
|
|
5495
5849
|
}
|
|
5496
5850
|
return setLocalShareVideoStream;
|
|
@@ -5506,10 +5860,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5506
5860
|
}, {
|
|
5507
5861
|
key: "setLocalShareAudioStream",
|
|
5508
5862
|
value: (function () {
|
|
5509
|
-
var _setLocalShareAudioStream = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
5863
|
+
var _setLocalShareAudioStream = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee16(localSystemAudioStream) {
|
|
5510
5864
|
var oldStream;
|
|
5511
|
-
return _regenerator.default.wrap(function (
|
|
5512
|
-
while (1) switch (
|
|
5865
|
+
return _regenerator.default.wrap(function (_context16) {
|
|
5866
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
5513
5867
|
case 0:
|
|
5514
5868
|
oldStream = this.mediaProperties.shareAudioStream;
|
|
5515
5869
|
oldStream === null || oldStream === void 0 ? void 0 : oldStream.off(_mediaHelpers.StreamEventNames.Ended, this.handleShareAudioStreamEnded);
|
|
@@ -5519,21 +5873,21 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5519
5873
|
localSystemAudioStream === null || localSystemAudioStream === void 0 ? void 0 : localSystemAudioStream.on(_mediaHelpers.LocalStreamEventNames.OutputTrackChange, this.localOutputTrackChangeHandler);
|
|
5520
5874
|
this.mediaProperties.mediaDirection.sendShare = this.mediaProperties.hasLocalShareStream();
|
|
5521
5875
|
if (!(!this.isMultistream || !localSystemAudioStream)) {
|
|
5522
|
-
|
|
5876
|
+
_context16.next = 1;
|
|
5523
5877
|
break;
|
|
5524
5878
|
}
|
|
5525
|
-
|
|
5879
|
+
_context16.next = 1;
|
|
5526
5880
|
return this.unpublishStream(_internalMediaCore.MediaType.AudioSlides, oldStream);
|
|
5527
5881
|
case 1:
|
|
5528
|
-
|
|
5882
|
+
_context16.next = 2;
|
|
5529
5883
|
return this.publishStream(_internalMediaCore.MediaType.AudioSlides, this.mediaProperties.shareAudioStream);
|
|
5530
5884
|
case 2:
|
|
5531
5885
|
case "end":
|
|
5532
|
-
return
|
|
5886
|
+
return _context16.stop();
|
|
5533
5887
|
}
|
|
5534
|
-
},
|
|
5888
|
+
}, _callee16, this);
|
|
5535
5889
|
}));
|
|
5536
|
-
function setLocalShareAudioStream(
|
|
5890
|
+
function setLocalShareAudioStream(_x14) {
|
|
5537
5891
|
return _setLocalShareAudioStream.apply(this, arguments);
|
|
5538
5892
|
}
|
|
5539
5893
|
return setLocalShareAudioStream;
|
|
@@ -5642,8 +5996,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5642
5996
|
var _this25 = this;
|
|
5643
5997
|
// Client will have a socket manager and handle reconnecting to mercury, when we reconnect to mercury
|
|
5644
5998
|
// if the meeting has active peer connections, it should try to reconnect.
|
|
5645
|
-
|
|
5646
|
-
this.webex.internal.mercury.on(_constants.ONLINE, function () {
|
|
5999
|
+
this.mercuryOnlineHandler = function () {
|
|
5647
6000
|
_loggerProxy.default.logger.info('Meeting:index#setMercuryListener --> Web socket online');
|
|
5648
6001
|
|
|
5649
6002
|
// Only send restore event when it was disconnected before and for connected later
|
|
@@ -5653,15 +6006,48 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5653
6006
|
});
|
|
5654
6007
|
}
|
|
5655
6008
|
_this25.hasWebsocketConnected = true;
|
|
5656
|
-
}
|
|
5657
|
-
|
|
5658
|
-
// @ts-ignore
|
|
5659
|
-
this.webex.internal.mercury.on(_constants.OFFLINE, function () {
|
|
6009
|
+
};
|
|
6010
|
+
this.mercuryOfflineHandler = function () {
|
|
5660
6011
|
_loggerProxy.default.logger.error('Meeting:index#setMercuryListener --> Web socket offline');
|
|
5661
6012
|
_metrics.default.sendBehavioralMetric(_constants2.default.MERCURY_CONNECTION_FAILURE, {
|
|
5662
6013
|
correlation_id: _this25.correlationId
|
|
5663
6014
|
});
|
|
5664
|
-
}
|
|
6015
|
+
};
|
|
6016
|
+
|
|
6017
|
+
// @ts-ignore
|
|
6018
|
+
this.webex.internal.mercury.on(_constants.ONLINE, this.mercuryOnlineHandler);
|
|
6019
|
+
// @ts-ignore
|
|
6020
|
+
this.webex.internal.mercury.on(_constants.OFFLINE, this.mercuryOfflineHandler);
|
|
6021
|
+
}
|
|
6022
|
+
|
|
6023
|
+
/**
|
|
6024
|
+
* Removes this meeting's Mercury ONLINE/OFFLINE event listeners registered
|
|
6025
|
+
* by setMercuryListener(). Must be called before Locus /leave to avoid
|
|
6026
|
+
* unnecessary syncs/metrics triggered by events received while leaving
|
|
6027
|
+
* (per Locus team recommendation).
|
|
6028
|
+
*
|
|
6029
|
+
* Mercury is a process-wide singleton shared with other plugins, so we
|
|
6030
|
+
* pass the bound handler refs to .off() to avoid clearing every listener
|
|
6031
|
+
* for ONLINE/OFFLINE on the shared emitter.
|
|
6032
|
+
*
|
|
6033
|
+
* Idempotent: subsequent calls are no-ops because the handler refs are
|
|
6034
|
+
* cleared after detaching.
|
|
6035
|
+
* @private
|
|
6036
|
+
* @returns {void}
|
|
6037
|
+
*/
|
|
6038
|
+
}, {
|
|
6039
|
+
key: "stopListeningForMercuryEvents",
|
|
6040
|
+
value: function stopListeningForMercuryEvents() {
|
|
6041
|
+
if (this.mercuryOnlineHandler) {
|
|
6042
|
+
// @ts-ignore
|
|
6043
|
+
this.webex.internal.mercury.off(_constants.ONLINE, this.mercuryOnlineHandler);
|
|
6044
|
+
this.mercuryOnlineHandler = undefined;
|
|
6045
|
+
}
|
|
6046
|
+
if (this.mercuryOfflineHandler) {
|
|
6047
|
+
// @ts-ignore
|
|
6048
|
+
this.webex.internal.mercury.off(_constants.OFFLINE, this.mercuryOfflineHandler);
|
|
6049
|
+
this.mercuryOfflineHandler = undefined;
|
|
6050
|
+
}
|
|
5665
6051
|
}
|
|
5666
6052
|
|
|
5667
6053
|
/**
|
|
@@ -5972,22 +6358,25 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5972
6358
|
}, {
|
|
5973
6359
|
key: "joinWithMedia",
|
|
5974
6360
|
value: (function () {
|
|
5975
|
-
var _joinWithMedia = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
6361
|
+
var _joinWithMedia = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee17() {
|
|
5976
6362
|
var _this30 = this;
|
|
5977
6363
|
var options,
|
|
5978
6364
|
mediaOptions,
|
|
5979
6365
|
_options$joinOptions,
|
|
5980
6366
|
joinOptions,
|
|
5981
6367
|
_this$joinWithMediaRe,
|
|
5982
|
-
|
|
6368
|
+
retryCount,
|
|
5983
6369
|
prevJoinResponse,
|
|
6370
|
+
prevError,
|
|
5984
6371
|
joined,
|
|
5985
6372
|
joinResponse,
|
|
6373
|
+
shouldJoin,
|
|
5986
6374
|
turnServerInfo,
|
|
5987
6375
|
turnDiscoverySkippedReason,
|
|
5988
6376
|
forceTurnDiscovery,
|
|
5989
6377
|
turnDiscoveryRequest,
|
|
5990
6378
|
_yield$this$roap$hand,
|
|
6379
|
+
shouldRetryMediaWithOnlyTurnTLS,
|
|
5991
6380
|
mediaResponse,
|
|
5992
6381
|
_this$locusUrl,
|
|
5993
6382
|
_leaveError,
|
|
@@ -5995,64 +6384,77 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5995
6384
|
shouldRetry,
|
|
5996
6385
|
_error2,
|
|
5997
6386
|
_error3,
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6387
|
+
firstError,
|
|
6388
|
+
_args17 = arguments,
|
|
6389
|
+
_t10,
|
|
6390
|
+
_t11;
|
|
6391
|
+
return _regenerator.default.wrap(function (_context17) {
|
|
6392
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
6003
6393
|
case 0:
|
|
6004
|
-
options =
|
|
6394
|
+
options = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {};
|
|
6005
6395
|
mediaOptions = options.mediaOptions, _options$joinOptions = options.joinOptions, joinOptions = _options$joinOptions === void 0 ? {} : _options$joinOptions;
|
|
6006
|
-
_this$joinWithMediaRe = this.joinWithMediaRetryInfo,
|
|
6396
|
+
_this$joinWithMediaRe = this.joinWithMediaRetryInfo, retryCount = _this$joinWithMediaRe.retryCount, prevJoinResponse = _this$joinWithMediaRe.prevJoinResponse, prevError = _this$joinWithMediaRe.prevError;
|
|
6007
6397
|
if (mediaOptions !== null && mediaOptions !== void 0 && mediaOptions.allowMediaInLobby) {
|
|
6008
|
-
|
|
6398
|
+
_context17.next = 1;
|
|
6009
6399
|
break;
|
|
6010
6400
|
}
|
|
6011
|
-
return
|
|
6401
|
+
return _context17.abrupt("return", _promise.default.reject(new _parameter.default('joinWithMedia() can only be used with allowMediaInLobby set to true')));
|
|
6012
6402
|
case 1:
|
|
6013
6403
|
this.allowMediaInLobby = true;
|
|
6014
6404
|
_loggerProxy.default.logger.info('Meeting:index#joinWithMedia called');
|
|
6015
|
-
|
|
6016
|
-
joinResponse = prevJoinResponse;
|
|
6405
|
+
|
|
6017
6406
|
/* Before we do anything, check if RTCPeerConnection is available. Normally this is checked
|
|
6018
6407
|
by addMediaInternal() itself when creating the media connection, but since joinWithMedia()
|
|
6019
6408
|
is a convenience method that does both join() and addMedia(), we want to fail fast here
|
|
6020
6409
|
in case WebRTC is not available at all.
|
|
6021
6410
|
*/
|
|
6022
6411
|
if (!(_webCapabilities.WebCapabilities.supportsRTCPeerConnection() === _webCapabilities.CapabilityState.NOT_CAPABLE)) {
|
|
6023
|
-
|
|
6412
|
+
_context17.next = 2;
|
|
6024
6413
|
break;
|
|
6025
6414
|
}
|
|
6026
6415
|
throw new _internalMediaCore.Errors.WebrtcApiNotAvailableError('RTCPeerConnection API is not available in this environment');
|
|
6027
6416
|
case 2:
|
|
6028
|
-
|
|
6417
|
+
/* While we're trying to join, we may fail and be doing a retry. In that case,
|
|
6418
|
+
we sometimes get dropped by Locus as a result of the 1st failed attempt.
|
|
6419
|
+
That notification from Locus needs to be ignored, otherwise it causes the meeting to be
|
|
6420
|
+
cleaned up and prevents the retry from running correctly.
|
|
6421
|
+
*/
|
|
6422
|
+
this.locusInfo.suspendDestroyMeeting(true);
|
|
6423
|
+
joined = false;
|
|
6424
|
+
joinResponse = prevJoinResponse;
|
|
6425
|
+
shouldJoin = !joinResponse ||
|
|
6426
|
+
// first try, when the join response is empty
|
|
6427
|
+
prevError && prevError instanceof _webexErrors.UserNotJoinedError ||
|
|
6428
|
+
// last try failed with UserNotJoinedError
|
|
6429
|
+
this.isErrorMeaningLocusDroppedUs(prevError) || _util2.default.isUserInLeftState(this.locusInfo); // locus dropped the connection before we can re-try addMedia
|
|
6430
|
+
_context17.prev = 3;
|
|
6029
6431
|
forceTurnDiscovery = false;
|
|
6030
|
-
if (
|
|
6031
|
-
|
|
6432
|
+
if (!shouldJoin) {
|
|
6433
|
+
_context17.next = 8;
|
|
6032
6434
|
break;
|
|
6033
6435
|
}
|
|
6034
|
-
|
|
6436
|
+
_context17.next = 4;
|
|
6035
6437
|
return this.roap.generateTurnDiscoveryRequestMessage(this, true);
|
|
6036
|
-
case
|
|
6037
|
-
turnDiscoveryRequest =
|
|
6438
|
+
case 4:
|
|
6439
|
+
turnDiscoveryRequest = _context17.sent;
|
|
6038
6440
|
turnDiscoverySkippedReason = turnDiscoveryRequest.turnDiscoverySkippedReason;
|
|
6039
6441
|
joinOptions.roapMessage = turnDiscoveryRequest.roapMessage;
|
|
6040
6442
|
_loggerProxy.default.logger.info('Meeting:index#joinWithMedia ---> calling join with joinOptions, ', joinOptions);
|
|
6041
|
-
|
|
6443
|
+
_context17.next = 5;
|
|
6042
6444
|
return this.join(joinOptions);
|
|
6043
|
-
case
|
|
6044
|
-
joinResponse =
|
|
6445
|
+
case 5:
|
|
6446
|
+
joinResponse = _context17.sent;
|
|
6045
6447
|
joined = true;
|
|
6046
6448
|
|
|
6047
6449
|
// if we sent out TURN discovery Roap message with join, process the TURN discovery response
|
|
6048
6450
|
if (!joinOptions.roapMessage) {
|
|
6049
|
-
|
|
6451
|
+
_context17.next = 7;
|
|
6050
6452
|
break;
|
|
6051
6453
|
}
|
|
6052
|
-
|
|
6454
|
+
_context17.next = 6;
|
|
6053
6455
|
return this.roap.handleTurnDiscoveryHttpResponse(this, joinResponse);
|
|
6054
|
-
case
|
|
6055
|
-
_yield$this$roap$hand =
|
|
6456
|
+
case 6:
|
|
6457
|
+
_yield$this$roap$hand = _context17.sent;
|
|
6056
6458
|
turnServerInfo = _yield$this$roap$hand.turnServerInfo;
|
|
6057
6459
|
turnDiscoverySkippedReason = _yield$this$roap$hand.turnDiscoverySkippedReason;
|
|
6058
6460
|
this.turnDiscoverySkippedReason = turnDiscoverySkippedReason;
|
|
@@ -6060,107 +6462,125 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6060
6462
|
if (turnServerInfo === undefined) {
|
|
6061
6463
|
this.roap.abortTurnDiscovery();
|
|
6062
6464
|
}
|
|
6063
|
-
case 6:
|
|
6064
|
-
_context15.next = 8;
|
|
6065
|
-
break;
|
|
6066
6465
|
case 7:
|
|
6466
|
+
_context17.next = 9;
|
|
6467
|
+
break;
|
|
6468
|
+
case 8:
|
|
6067
6469
|
// This is a retry, when join succeeded but addMedia failed, so we'll just call addMedia() again,
|
|
6068
6470
|
// but we need to ensure that it also does a new TURN discovery
|
|
6069
6471
|
forceTurnDiscovery = true;
|
|
6070
6472
|
joined = true;
|
|
6071
|
-
case 8:
|
|
6072
|
-
_context15.next = 9;
|
|
6073
|
-
return this.addMediaInternal(function () {
|
|
6074
|
-
return _this30.joinWithMediaRetryInfo.isRetry ? 'JOIN_MEETING_FINAL' : 'JOIN_MEETING_RETRY';
|
|
6075
|
-
}, turnServerInfo, forceTurnDiscovery, mediaOptions);
|
|
6076
6473
|
case 9:
|
|
6077
|
-
|
|
6474
|
+
_context17.next = 10;
|
|
6475
|
+
return this.shouldRetryMediaWithOnlyTurnTLS(prevError);
|
|
6476
|
+
case 10:
|
|
6477
|
+
shouldRetryMediaWithOnlyTurnTLS = _context17.sent;
|
|
6478
|
+
_context17.next = 11;
|
|
6479
|
+
return this.addMediaInternal(function () {
|
|
6480
|
+
// callback is not called when UserNotJoinedError is thrown
|
|
6481
|
+
return _this30.joinWithMediaRetryInfo.retryCount >= 1 ? 'JOIN_MEETING_FINAL' : 'JOIN_MEETING_RETRY';
|
|
6482
|
+
}, forceTurnDiscovery, turnServerInfo, shouldRetryMediaWithOnlyTurnTLS ? 'relay' : undefined, mediaOptions);
|
|
6483
|
+
case 11:
|
|
6484
|
+
mediaResponse = _context17.sent;
|
|
6078
6485
|
this.joinWithMediaRetryInfo = {
|
|
6079
|
-
|
|
6486
|
+
retryCount: 0,
|
|
6080
6487
|
prevJoinResponse: undefined
|
|
6081
6488
|
};
|
|
6082
|
-
|
|
6489
|
+
this.locusInfo.suspendDestroyMeeting(false);
|
|
6490
|
+
return _context17.abrupt("return", {
|
|
6083
6491
|
join: joinResponse,
|
|
6084
6492
|
media: mediaResponse,
|
|
6085
6493
|
multistreamEnabled: this.isMultistream
|
|
6086
6494
|
});
|
|
6087
|
-
case
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
_loggerProxy.default.logger.error('Meeting:index#joinWithMedia --> ',
|
|
6495
|
+
case 12:
|
|
6496
|
+
_context17.prev = 12;
|
|
6497
|
+
_t10 = _context17["catch"](3);
|
|
6498
|
+
_loggerProxy.default.logger.error('Meeting:index#joinWithMedia --> ', _t10);
|
|
6091
6499
|
this.roap.abortTurnDiscovery();
|
|
6092
6500
|
|
|
6093
|
-
//
|
|
6094
|
-
shouldRetry = !
|
|
6095
|
-
if (_internalPluginMetrics.CallDiagnosticUtils.isSdpOfferCreationError(
|
|
6501
|
+
// let's do a retry (but not on 1-1 calls, because the flow would get too complicated)
|
|
6502
|
+
shouldRetry = !_util3.default.isOneOnOneCall(this.locusInfo.parsedLocus) && (retryCount < 1 || (_t10 instanceof _webexErrors.UserNotJoinedError || this.isErrorMeaningLocusDroppedUs(_t10)) && retryCount < JOIN_WITH_MEDIA_RETRY_MAX_COUNT);
|
|
6503
|
+
if (_internalPluginMetrics.CallDiagnosticUtils.isSdpOfferCreationError(_t10) || _internalPluginMetrics.CallDiagnosticUtils.isWebrtcApiNotAvailableError(_t10) || this.isLocusUserFullError(_t10)) {
|
|
6096
6504
|
// errors related to offer creation (for example missing H264 codec) will happen again no matter how many times we try,
|
|
6097
6505
|
// so there is no point doing a retry
|
|
6506
|
+
// when the locus is full, we also don't want to retry, because it will just fail again
|
|
6098
6507
|
shouldRetry = false;
|
|
6099
6508
|
}
|
|
6100
|
-
if (_internalPluginMetrics.CallDiagnosticUtils.isBrowserMediaError(
|
|
6509
|
+
if (_internalPluginMetrics.CallDiagnosticUtils.isBrowserMediaError(_t10)) {
|
|
6101
6510
|
shouldRetry = false;
|
|
6102
6511
|
// eslint-disable-next-line no-ex-assign
|
|
6103
|
-
|
|
6512
|
+
_t10 = (0, _lodash.merge)({
|
|
6104
6513
|
error: {
|
|
6105
6514
|
body: {
|
|
6106
|
-
errorCode: _internalPluginMetrics.CallDiagnosticUtils.getBrowserMediaErrorCode(
|
|
6107
|
-
message: (_error2 =
|
|
6108
|
-
name: (_error3 =
|
|
6515
|
+
errorCode: _internalPluginMetrics.CallDiagnosticUtils.getBrowserMediaErrorCode(_t10),
|
|
6516
|
+
message: (_error2 = _t10) === null || _error2 === void 0 ? void 0 : _error2.message,
|
|
6517
|
+
name: (_error3 = _t10) === null || _error3 === void 0 ? void 0 : _error3.name
|
|
6109
6518
|
}
|
|
6110
6519
|
}
|
|
6111
6520
|
});
|
|
6112
6521
|
}
|
|
6113
6522
|
|
|
6114
|
-
// we only want to call leave if join was successful and
|
|
6115
|
-
if (!(joined &&
|
|
6116
|
-
|
|
6523
|
+
// we only want to call leave if join was successful, and we won't be doing any more retries
|
|
6524
|
+
if (!(joined && !shouldRetry)) {
|
|
6525
|
+
_context17.next = 16;
|
|
6117
6526
|
break;
|
|
6118
6527
|
}
|
|
6119
|
-
|
|
6120
|
-
|
|
6528
|
+
_context17.prev = 13;
|
|
6529
|
+
_context17.next = 14;
|
|
6121
6530
|
return this.leave({
|
|
6122
6531
|
resourceId: joinOptions === null || joinOptions === void 0 ? void 0 : joinOptions.resourceId,
|
|
6123
6532
|
reason: 'joinWithMedia failure'
|
|
6124
6533
|
});
|
|
6125
|
-
case 12:
|
|
6126
|
-
_context15.next = 14;
|
|
6127
|
-
break;
|
|
6128
|
-
case 13:
|
|
6129
|
-
_context15.prev = 13;
|
|
6130
|
-
_t1 = _context15["catch"](11);
|
|
6131
|
-
_loggerProxy.default.logger.error('Meeting:index#joinWithMedia --> leave error', _t1);
|
|
6132
|
-
leaveError = _t1;
|
|
6133
6534
|
case 14:
|
|
6535
|
+
_context17.next = 16;
|
|
6536
|
+
break;
|
|
6537
|
+
case 15:
|
|
6538
|
+
_context17.prev = 15;
|
|
6539
|
+
_t11 = _context17["catch"](13);
|
|
6540
|
+
_loggerProxy.default.logger.error('Meeting:index#joinWithMedia --> leave error', _t11);
|
|
6541
|
+
leaveError = _t11;
|
|
6542
|
+
case 16:
|
|
6134
6543
|
_metrics.default.sendBehavioralMetric(_constants2.default.JOIN_WITH_MEDIA_FAILURE, {
|
|
6135
6544
|
correlation_id: this.correlationId,
|
|
6136
6545
|
locus_id: (_this$locusUrl = this.locusUrl) === null || _this$locusUrl === void 0 ? void 0 : _this$locusUrl.split('/').pop(),
|
|
6137
6546
|
// if join fails, we may end up with no locusUrl
|
|
6138
|
-
reason:
|
|
6139
|
-
stack:
|
|
6547
|
+
reason: _t10.message,
|
|
6548
|
+
stack: _t10.stack,
|
|
6140
6549
|
leaveErrorReason: (_leaveError = leaveError) === null || _leaveError === void 0 ? void 0 : _leaveError.message,
|
|
6141
|
-
isRetry:
|
|
6550
|
+
isRetry: retryCount > 0
|
|
6142
6551
|
}, {
|
|
6143
|
-
type:
|
|
6552
|
+
type: _t10.name
|
|
6144
6553
|
});
|
|
6145
6554
|
if (!shouldRetry) {
|
|
6146
|
-
|
|
6555
|
+
_context17.next = 17;
|
|
6147
6556
|
break;
|
|
6148
6557
|
}
|
|
6149
6558
|
_loggerProxy.default.logger.warn('Meeting:index#joinWithMedia --> retrying call to joinWithMedia');
|
|
6150
|
-
this.joinWithMediaRetryInfo.
|
|
6559
|
+
this.joinWithMediaRetryInfo.retryCount = retryCount + 1;
|
|
6151
6560
|
this.joinWithMediaRetryInfo.prevJoinResponse = joinResponse;
|
|
6152
|
-
|
|
6153
|
-
|
|
6561
|
+
this.joinWithMediaRetryInfo.prevError = _t10;
|
|
6562
|
+
if (!this.joinWithMediaRetryInfo.firstError) {
|
|
6563
|
+
this.joinWithMediaRetryInfo.firstError = _t10;
|
|
6564
|
+
}
|
|
6565
|
+
return _context17.abrupt("return", this.joinWithMedia(options));
|
|
6566
|
+
case 17:
|
|
6567
|
+
firstError = this.joinWithMediaRetryInfo.firstError;
|
|
6154
6568
|
this.joinWithMediaRetryInfo = {
|
|
6155
|
-
|
|
6156
|
-
prevJoinResponse: undefined
|
|
6569
|
+
retryCount: 0,
|
|
6570
|
+
prevJoinResponse: undefined,
|
|
6571
|
+
firstError: undefined,
|
|
6572
|
+
prevError: undefined
|
|
6157
6573
|
};
|
|
6158
|
-
|
|
6159
|
-
|
|
6574
|
+
this.locusInfo.suspendDestroyMeeting(false);
|
|
6575
|
+
|
|
6576
|
+
// LOCUS_USER_FULL is a definitive capacity error the client must surface, so it takes
|
|
6577
|
+
// precedence over any earlier retryable error stored in firstError.
|
|
6578
|
+
throw this.isLocusUserFullError(_t10) ? _t10 : firstError !== null && firstError !== void 0 ? firstError : _t10;
|
|
6579
|
+
case 18:
|
|
6160
6580
|
case "end":
|
|
6161
|
-
return
|
|
6581
|
+
return _context17.stop();
|
|
6162
6582
|
}
|
|
6163
|
-
},
|
|
6583
|
+
}, _callee17, this, [[3, 12], [13, 15]]);
|
|
6164
6584
|
}));
|
|
6165
6585
|
function joinWithMedia() {
|
|
6166
6586
|
return _joinWithMedia.apply(this, arguments);
|
|
@@ -6190,20 +6610,20 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6190
6610
|
return _promise.default.reject(new _parameter.default('Cannot reconnect, Media has not established to reconnect'));
|
|
6191
6611
|
}
|
|
6192
6612
|
this.cleanUpBeforeReconnection();
|
|
6193
|
-
return this.reconnectionManager.reconnect(options, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
6194
|
-
return _regenerator.default.wrap(function (
|
|
6195
|
-
while (1) switch (
|
|
6613
|
+
return this.reconnectionManager.reconnect(options, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee18() {
|
|
6614
|
+
return _regenerator.default.wrap(function (_context18) {
|
|
6615
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
6196
6616
|
case 0:
|
|
6197
|
-
|
|
6617
|
+
_context18.next = 1;
|
|
6198
6618
|
return _this31.waitForRemoteSDPAnswer();
|
|
6199
6619
|
case 1:
|
|
6200
|
-
|
|
6620
|
+
_context18.next = 2;
|
|
6201
6621
|
return _this31.waitForMediaConnectionConnected();
|
|
6202
6622
|
case 2:
|
|
6203
6623
|
case "end":
|
|
6204
|
-
return
|
|
6624
|
+
return _context18.stop();
|
|
6205
6625
|
}
|
|
6206
|
-
},
|
|
6626
|
+
}, _callee18);
|
|
6207
6627
|
}))).then(function () {
|
|
6208
6628
|
_loggerProxy.default.logger.log('Meeting:index#reconnect --> Meeting reconnect success');
|
|
6209
6629
|
}).catch(function (error) {
|
|
@@ -6243,8 +6663,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6243
6663
|
}, {
|
|
6244
6664
|
key: "isReactionsSupported",
|
|
6245
6665
|
value: function isReactionsSupported() {
|
|
6246
|
-
var _this$
|
|
6247
|
-
if ((_this$
|
|
6666
|
+
var _this$locusInfo8, _this$locusInfo8$cont;
|
|
6667
|
+
if ((_this$locusInfo8 = this.locusInfo) !== null && _this$locusInfo8 !== void 0 && (_this$locusInfo8$cont = _this$locusInfo8.controls) !== null && _this$locusInfo8$cont !== void 0 && _this$locusInfo8$cont.reactions.enabled) {
|
|
6248
6668
|
return true;
|
|
6249
6669
|
}
|
|
6250
6670
|
_loggerProxy.default.logger.error('Meeting:index#isReactionsSupported --> Reactions is not supported');
|
|
@@ -6344,53 +6764,75 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6344
6764
|
}, {
|
|
6345
6765
|
key: "startTranscription",
|
|
6346
6766
|
value: (function () {
|
|
6347
|
-
var _startTranscription = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
6348
|
-
var
|
|
6349
|
-
return _regenerator.default.wrap(function (
|
|
6350
|
-
while (1) switch (
|
|
6767
|
+
var _startTranscription = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee19(options) {
|
|
6768
|
+
var _t12;
|
|
6769
|
+
return _regenerator.default.wrap(function (_context19) {
|
|
6770
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
6351
6771
|
case 0:
|
|
6352
6772
|
if (!this.isJoined()) {
|
|
6353
|
-
|
|
6773
|
+
_context19.next = 5;
|
|
6354
6774
|
break;
|
|
6355
6775
|
}
|
|
6356
6776
|
_loggerProxy.default.logger.info('Meeting:index#startTranscription --> Attempting to enable transcription!');
|
|
6357
|
-
|
|
6777
|
+
_context19.prev = 1;
|
|
6358
6778
|
if (!this.areVoiceaEventsSetup) {
|
|
6359
6779
|
this.setUpVoiceaListeners();
|
|
6360
6780
|
}
|
|
6361
6781
|
|
|
6362
6782
|
// @ts-ignore
|
|
6363
|
-
|
|
6783
|
+
_context19.next = 2;
|
|
6364
6784
|
return this.webex.internal.voicea.turnOnCaptions(options === null || options === void 0 ? void 0 : options.spokenLanguage);
|
|
6365
6785
|
case 2:
|
|
6366
|
-
|
|
6786
|
+
_context19.next = 4;
|
|
6367
6787
|
break;
|
|
6368
6788
|
case 3:
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
_loggerProxy.default.logger.error("Meeting:index#startTranscription --> ".concat(
|
|
6789
|
+
_context19.prev = 3;
|
|
6790
|
+
_t12 = _context19["catch"](1);
|
|
6791
|
+
_loggerProxy.default.logger.error("Meeting:index#startTranscription --> ".concat(_t12));
|
|
6372
6792
|
_metrics.default.sendBehavioralMetric(_constants2.default.RECEIVE_TRANSCRIPTION_FAILURE, {
|
|
6373
6793
|
correlation_id: this.correlationId,
|
|
6374
|
-
reason:
|
|
6375
|
-
stack:
|
|
6794
|
+
reason: _t12.message,
|
|
6795
|
+
stack: _t12.stack
|
|
6376
6796
|
});
|
|
6377
6797
|
case 4:
|
|
6378
|
-
|
|
6798
|
+
_context19.next = 6;
|
|
6379
6799
|
break;
|
|
6380
6800
|
case 5:
|
|
6381
6801
|
_loggerProxy.default.logger.error("Meeting:index#startTranscription --> meeting joined : ".concat(this.isJoined()));
|
|
6382
6802
|
throw new Error('Meeting is not joined');
|
|
6383
6803
|
case 6:
|
|
6384
6804
|
case "end":
|
|
6385
|
-
return
|
|
6805
|
+
return _context19.stop();
|
|
6386
6806
|
}
|
|
6387
|
-
},
|
|
6807
|
+
}, _callee19, this, [[1, 3]]);
|
|
6388
6808
|
}));
|
|
6389
|
-
function startTranscription(
|
|
6809
|
+
function startTranscription(_x15) {
|
|
6390
6810
|
return _startTranscription.apply(this, arguments);
|
|
6391
6811
|
}
|
|
6392
6812
|
return startTranscription;
|
|
6393
6813
|
}())
|
|
6814
|
+
}, {
|
|
6815
|
+
key: "isRelayEventRouteValid",
|
|
6816
|
+
value:
|
|
6817
|
+
/**
|
|
6818
|
+
* Verifies the relay event was delivered for the active LLM session binding.
|
|
6819
|
+
* @param {RelayEvent} event Event object coming from LLM Connection
|
|
6820
|
+
* @returns {boolean}
|
|
6821
|
+
*/
|
|
6822
|
+
function isRelayEventRouteValid(event) {
|
|
6823
|
+
var _event$headers;
|
|
6824
|
+
var route = event === null || event === void 0 ? void 0 : (_event$headers = event.headers) === null || _event$headers === void 0 ? void 0 : _event$headers.route;
|
|
6825
|
+
if (!route) {
|
|
6826
|
+
return true;
|
|
6827
|
+
}
|
|
6828
|
+
var llm = this.webex.internal.llm;
|
|
6829
|
+
var isPracticeSession = llm.isConnected(_constants.LLM_PRACTICE_SESSION);
|
|
6830
|
+
var expectedBinding = isPracticeSession ? llm.getBinding(_constants.LLM_PRACTICE_SESSION) : llm.getBinding();
|
|
6831
|
+
if (!expectedBinding || route === expectedBinding) {
|
|
6832
|
+
return true;
|
|
6833
|
+
}
|
|
6834
|
+
return false;
|
|
6835
|
+
}
|
|
6394
6836
|
}, {
|
|
6395
6837
|
key: "stopTranscription",
|
|
6396
6838
|
value:
|
|
@@ -6441,10 +6883,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6441
6883
|
key: "restoreLLMSubscriptionsIfNeeded",
|
|
6442
6884
|
value: function restoreLLMSubscriptionsIfNeeded() {
|
|
6443
6885
|
try {
|
|
6444
|
-
var _this$webex$internal
|
|
6445
|
-
// @ts-ignore
|
|
6446
|
-
|
|
6447
|
-
if (!
|
|
6886
|
+
var _this$webex$internal$9, _this$webex$internal$0;
|
|
6887
|
+
var keepTranscriptionSubscribed = // @ts-ignore
|
|
6888
|
+
(_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);
|
|
6889
|
+
if (!keepTranscriptionSubscribed) {
|
|
6448
6890
|
return;
|
|
6449
6891
|
}
|
|
6450
6892
|
|
|
@@ -6473,7 +6915,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6473
6915
|
* Scenario D: Joining any other way (sip, pstn, conversationUrl, link just need to specify resourceId)
|
|
6474
6916
|
*/
|
|
6475
6917
|
function () {
|
|
6476
|
-
var _join = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
6918
|
+
var _join = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee20() {
|
|
6477
6919
|
var _this34 = this;
|
|
6478
6920
|
var options,
|
|
6479
6921
|
errorMessage,
|
|
@@ -6484,26 +6926,26 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6484
6926
|
_error4,
|
|
6485
6927
|
_errorMessage3,
|
|
6486
6928
|
_error5,
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
return _regenerator.default.wrap(function (
|
|
6490
|
-
while (1) switch (
|
|
6929
|
+
_args20 = arguments,
|
|
6930
|
+
_t13;
|
|
6931
|
+
return _regenerator.default.wrap(function (_context20) {
|
|
6932
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
6491
6933
|
case 0:
|
|
6492
|
-
options =
|
|
6934
|
+
options = _args20.length > 0 && _args20[0] !== undefined ? _args20[0] : {};
|
|
6493
6935
|
if (this.webex.meetings.registered) {
|
|
6494
|
-
|
|
6936
|
+
_context20.next = 1;
|
|
6495
6937
|
break;
|
|
6496
6938
|
}
|
|
6497
6939
|
errorMessage = 'Meeting:index#join --> Device not registered';
|
|
6498
6940
|
error = new Error(errorMessage);
|
|
6499
6941
|
_loggerProxy.default.logger.error(errorMessage);
|
|
6500
|
-
return
|
|
6942
|
+
return _context20.abrupt("return", _promise.default.reject(error));
|
|
6501
6943
|
case 1:
|
|
6502
6944
|
if (!this.deferJoin) {
|
|
6503
|
-
|
|
6945
|
+
_context20.next = 2;
|
|
6504
6946
|
break;
|
|
6505
6947
|
}
|
|
6506
|
-
return
|
|
6948
|
+
return _context20.abrupt("return", this.deferJoin);
|
|
6507
6949
|
case 2:
|
|
6508
6950
|
// Create a deferred promise for a consistent resolve value from utils.
|
|
6509
6951
|
// This also prevents redundant API calls.
|
|
@@ -6555,15 +6997,15 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6555
6997
|
this.wirelessShare = true;
|
|
6556
6998
|
}
|
|
6557
6999
|
if (!options.meetingQuality) {
|
|
6558
|
-
|
|
7000
|
+
_context20.next = 6;
|
|
6559
7001
|
break;
|
|
6560
7002
|
}
|
|
6561
7003
|
if (!(typeof options.meetingQuality === 'string')) {
|
|
6562
|
-
|
|
7004
|
+
_context20.next = 4;
|
|
6563
7005
|
break;
|
|
6564
7006
|
}
|
|
6565
7007
|
if (_constants.QUALITY_LEVELS[options.meetingQuality]) {
|
|
6566
|
-
|
|
7008
|
+
_context20.next = 3;
|
|
6567
7009
|
break;
|
|
6568
7010
|
}
|
|
6569
7011
|
_errorMessage2 = "Meeting:index#join --> ".concat(options.meetingQuality, " not defined");
|
|
@@ -6571,16 +7013,16 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6571
7013
|
_loggerProxy.default.logger.error(_errorMessage2);
|
|
6572
7014
|
joinFailed(_error4);
|
|
6573
7015
|
this.deferJoin = undefined;
|
|
6574
|
-
return
|
|
7016
|
+
return _context20.abrupt("return", _promise.default.reject(_error4));
|
|
6575
7017
|
case 3:
|
|
6576
7018
|
this.mediaProperties.setRemoteQualityLevel(options.meetingQuality);
|
|
6577
7019
|
case 4:
|
|
6578
7020
|
if (!((0, _typeof2.default)(options.meetingQuality) === 'object')) {
|
|
6579
|
-
|
|
7021
|
+
_context20.next = 6;
|
|
6580
7022
|
break;
|
|
6581
7023
|
}
|
|
6582
7024
|
if (_constants.QUALITY_LEVELS[options.meetingQuality.remote]) {
|
|
6583
|
-
|
|
7025
|
+
_context20.next = 5;
|
|
6584
7026
|
break;
|
|
6585
7027
|
}
|
|
6586
7028
|
_errorMessage3 = "Meeting:index#join --> ".concat(options.meetingQuality.remote, " not defined");
|
|
@@ -6588,42 +7030,42 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6588
7030
|
_error5 = new Error(_errorMessage3);
|
|
6589
7031
|
joinFailed(_error5);
|
|
6590
7032
|
this.deferJoin = undefined;
|
|
6591
|
-
return
|
|
7033
|
+
return _context20.abrupt("return", _promise.default.reject(new Error(_errorMessage3)));
|
|
6592
7034
|
case 5:
|
|
6593
7035
|
if (options.meetingQuality.remote) {
|
|
6594
7036
|
this.mediaProperties.setRemoteQualityLevel(options.meetingQuality.remote);
|
|
6595
7037
|
}
|
|
6596
7038
|
case 6:
|
|
6597
7039
|
this.isMultistream = !!options.enableMultistream;
|
|
6598
|
-
|
|
6599
|
-
|
|
7040
|
+
_context20.prev = 7;
|
|
7041
|
+
_context20.next = 8;
|
|
6600
7042
|
return this.checkAndRefreshPermissionToken(_constants.MEETING_PERMISSION_TOKEN_REFRESH_THRESHOLD_IN_SEC, _constants.MEETING_PERMISSION_TOKEN_REFRESH_REASON);
|
|
6601
7043
|
case 8:
|
|
6602
|
-
|
|
7044
|
+
_context20.next = 10;
|
|
6603
7045
|
break;
|
|
6604
7046
|
case 9:
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
_loggerProxy.default.logger.error('Meeting:index#join --> Failed to refresh permission token:',
|
|
6608
|
-
if (!(
|
|
6609
|
-
|
|
7047
|
+
_context20.prev = 9;
|
|
7048
|
+
_t13 = _context20["catch"](7);
|
|
7049
|
+
_loggerProxy.default.logger.error('Meeting:index#join --> Failed to refresh permission token:', _t13);
|
|
7050
|
+
if (!(_t13 instanceof _captchaError.default || _t13 instanceof _passwordError.default || _t13 instanceof _permission.default)) {
|
|
7051
|
+
_context20.next = 10;
|
|
6610
7052
|
break;
|
|
6611
7053
|
}
|
|
6612
|
-
this.meetingFiniteStateMachine.fail(
|
|
7054
|
+
this.meetingFiniteStateMachine.fail(_t13);
|
|
6613
7055
|
|
|
6614
7056
|
// Upload logs on refreshpermissionToken refresh Failure
|
|
6615
7057
|
_triggerProxy.default.trigger(this, {
|
|
6616
7058
|
file: 'meeting/index',
|
|
6617
7059
|
function: 'join'
|
|
6618
7060
|
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, this);
|
|
6619
|
-
joinFailed(
|
|
7061
|
+
joinFailed(_t13);
|
|
6620
7062
|
this.deferJoin = undefined;
|
|
6621
7063
|
|
|
6622
7064
|
// if refresh permission token requires captcha, password or permission, we are throwing the errors
|
|
6623
7065
|
// and bubble it up to client
|
|
6624
|
-
return
|
|
7066
|
+
return _context20.abrupt("return", _promise.default.reject(_t13));
|
|
6625
7067
|
case 10:
|
|
6626
|
-
return
|
|
7068
|
+
return _context20.abrupt("return", _util2.default.joinMeetingOptions(this, options).then(function (join) {
|
|
6627
7069
|
_this34.meetingFiniteStateMachine.join();
|
|
6628
7070
|
_this34.setupLocusMediaRequest();
|
|
6629
7071
|
|
|
@@ -6664,7 +7106,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6664
7106
|
_this34.webex.internal.llm.off('online', _this34.handleLLMOnline);
|
|
6665
7107
|
// @ts-ignore
|
|
6666
7108
|
_this34.webex.internal.llm.on('online', _this34.handleLLMOnline);
|
|
6667
|
-
_this34.updateLLMConnection(
|
|
7109
|
+
_this34.updateLLMConnection({
|
|
7110
|
+
isInitialJoinPhase: true
|
|
7111
|
+
}).catch(function (error) {
|
|
6668
7112
|
_loggerProxy.default.logger.error('Meeting:index#join --> Transcription Socket Connection Failed', error);
|
|
6669
7113
|
_metrics.default.sendBehavioralMetric(_constants2.default.LLM_CONNECTION_AFTER_JOIN_FAILURE, {
|
|
6670
7114
|
correlation_id: _this34.correlationId,
|
|
@@ -6679,9 +7123,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6679
7123
|
}));
|
|
6680
7124
|
case 11:
|
|
6681
7125
|
case "end":
|
|
6682
|
-
return
|
|
7126
|
+
return _context20.stop();
|
|
6683
7127
|
}
|
|
6684
|
-
},
|
|
7128
|
+
}, _callee20, this, [[7, 9]]);
|
|
6685
7129
|
}));
|
|
6686
7130
|
function join() {
|
|
6687
7131
|
return _join.apply(this, arguments);
|
|
@@ -6730,17 +7174,66 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6730
7174
|
this.llmHealthCheckTimer = undefined;
|
|
6731
7175
|
}
|
|
6732
7176
|
}
|
|
7177
|
+
|
|
7178
|
+
/**
|
|
7179
|
+
* Removes LLM event listeners and clears the health check timer.
|
|
7180
|
+
* Must be called before Locus /leave to avoid unnecessary syncs triggered
|
|
7181
|
+
* by events received while leaving (per Locus team recommendation).
|
|
7182
|
+
* Idempotent: safe to call multiple times; .off() is a no-op when no
|
|
7183
|
+
* matching listener is registered.
|
|
7184
|
+
* @private
|
|
7185
|
+
* @returns {void}
|
|
7186
|
+
*/
|
|
7187
|
+
}, {
|
|
7188
|
+
key: "stopListeningForLLMEvents",
|
|
7189
|
+
value: function stopListeningForLLMEvents() {
|
|
7190
|
+
// @ts-ignore - fix types
|
|
7191
|
+
this.webex.internal.llm.off('event:relay.event', this.processRelayEvent);
|
|
7192
|
+
// @ts-ignore - fix types
|
|
7193
|
+
this.webex.internal.llm.off(_constants.LOCUS_LLM_EVENT, this.processLocusLLMEvent);
|
|
7194
|
+
this.clearLLMHealthCheckTimer();
|
|
7195
|
+
}
|
|
7196
|
+
|
|
7197
|
+
/**
|
|
7198
|
+
* Stops listening on every event bus (LLM, Mercury, voicea/transcription,
|
|
7199
|
+
* annotation) that could otherwise deliver events to this meeting while
|
|
7200
|
+
* Locus is processing /leave or /end. Per the Locus team recommendation,
|
|
7201
|
+
* this must run before the Locus request is dispatched to avoid
|
|
7202
|
+
* unnecessary syncs triggered by in-flight events.
|
|
7203
|
+
*
|
|
7204
|
+
* Voicea (transcription) subscribes to llm 'event:relay.event' internally,
|
|
7205
|
+
* and the annotation plugin subscribes to both mercury and llm, so both
|
|
7206
|
+
* must be torn down alongside the direct LLM/Mercury listeners.
|
|
7207
|
+
*
|
|
7208
|
+
* Idempotent: safe to call multiple times; .off() is a no-op when no
|
|
7209
|
+
* matching listener is registered, and stopTranscription is guarded.
|
|
7210
|
+
* @private
|
|
7211
|
+
* @returns {void}
|
|
7212
|
+
*/
|
|
7213
|
+
}, {
|
|
7214
|
+
key: "stopListeningForMeetingEvents",
|
|
7215
|
+
value: function stopListeningForMeetingEvents() {
|
|
7216
|
+
this.stopListeningForLLMEvents();
|
|
7217
|
+
this.stopListeningForMercuryEvents();
|
|
7218
|
+
if (this.transcription) {
|
|
7219
|
+
this.stopTranscription();
|
|
7220
|
+
this.transcription = undefined;
|
|
7221
|
+
}
|
|
7222
|
+
this.annotation.deregisterEvents();
|
|
7223
|
+
}
|
|
6733
7224
|
}, {
|
|
6734
7225
|
key: "clearDataChannelToken",
|
|
6735
7226
|
value:
|
|
6736
7227
|
/**
|
|
6737
|
-
* Clears
|
|
6738
|
-
*
|
|
7228
|
+
* Clears data channel tokens associated with this meeting ownership.
|
|
7229
|
+
* Ownership checks are enforced in internal-plugin-llm.
|
|
6739
7230
|
* @returns {void}
|
|
6740
7231
|
*/
|
|
6741
7232
|
function clearDataChannelToken() {
|
|
6742
7233
|
// @ts-ignore
|
|
6743
|
-
this.webex.internal.llm.
|
|
7234
|
+
this.webex.internal.llm.clearDatachannelToken(_constants.LLM_DEFAULT_SESSION, this.id);
|
|
7235
|
+
// @ts-ignore
|
|
7236
|
+
this.webex.internal.llm.clearDatachannelToken(_constants.LLM_PRACTICE_SESSION, this.id);
|
|
6744
7237
|
}
|
|
6745
7238
|
|
|
6746
7239
|
/**
|
|
@@ -6757,11 +7250,11 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6757
7250
|
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;
|
|
6758
7251
|
if (datachannelToken) {
|
|
6759
7252
|
// @ts-ignore
|
|
6760
|
-
this.webex.internal.llm.setDatachannelToken(datachannelToken,
|
|
7253
|
+
this.webex.internal.llm.setDatachannelToken(datachannelToken, _constants.LLM_DEFAULT_SESSION, this.id);
|
|
6761
7254
|
}
|
|
6762
7255
|
if (practiceSessionDatachannelToken) {
|
|
6763
7256
|
// @ts-ignore
|
|
6764
|
-
this.webex.internal.llm.setDatachannelToken(practiceSessionDatachannelToken,
|
|
7257
|
+
this.webex.internal.llm.setDatachannelToken(practiceSessionDatachannelToken, _constants.LLM_PRACTICE_SESSION, this.id);
|
|
6765
7258
|
}
|
|
6766
7259
|
}
|
|
6767
7260
|
|
|
@@ -6773,55 +7266,55 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6773
7266
|
}, {
|
|
6774
7267
|
key: "ensureDefaultDatachannelTokenAfterAdmit",
|
|
6775
7268
|
value: (function () {
|
|
6776
|
-
var _ensureDefaultDatachannelTokenAfterAdmit = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
6777
|
-
var _response$body, datachannelToken, isDataChannelTokenEnabled, response, fetchedDatachannelToken, msg,
|
|
6778
|
-
return _regenerator.default.wrap(function (
|
|
6779
|
-
while (1) switch (
|
|
7269
|
+
var _ensureDefaultDatachannelTokenAfterAdmit = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee21() {
|
|
7270
|
+
var _response$body, datachannelToken, isDataChannelTokenEnabled, response, fetchedDatachannelToken, msg, _t14;
|
|
7271
|
+
return _regenerator.default.wrap(function (_context21) {
|
|
7272
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
6780
7273
|
case 0:
|
|
6781
|
-
|
|
7274
|
+
_context21.prev = 0;
|
|
6782
7275
|
// @ts-ignore
|
|
6783
|
-
datachannelToken = this.webex.internal.llm.getDatachannelToken(); // @ts-ignore
|
|
6784
|
-
|
|
7276
|
+
datachannelToken = this.webex.internal.llm.getDatachannelToken(_constants.LLM_DEFAULT_SESSION, this.id); // @ts-ignore
|
|
7277
|
+
_context21.next = 1;
|
|
6785
7278
|
return this.webex.internal.llm.isDataChannelTokenEnabled();
|
|
6786
7279
|
case 1:
|
|
6787
|
-
isDataChannelTokenEnabled =
|
|
7280
|
+
isDataChannelTokenEnabled = _context21.sent;
|
|
6788
7281
|
if (!(!isDataChannelTokenEnabled || datachannelToken)) {
|
|
6789
|
-
|
|
7282
|
+
_context21.next = 2;
|
|
6790
7283
|
break;
|
|
6791
7284
|
}
|
|
6792
|
-
return
|
|
7285
|
+
return _context21.abrupt("return", false);
|
|
6793
7286
|
case 2:
|
|
6794
|
-
|
|
7287
|
+
_context21.next = 3;
|
|
6795
7288
|
return this.meetingRequest.fetchDatachannelToken({
|
|
6796
7289
|
locusUrl: this.locusUrl,
|
|
6797
7290
|
requestingParticipantId: this.members.selfId,
|
|
6798
7291
|
isPracticeSession: false
|
|
6799
7292
|
});
|
|
6800
7293
|
case 3:
|
|
6801
|
-
response =
|
|
7294
|
+
response = _context21.sent;
|
|
6802
7295
|
fetchedDatachannelToken = response === null || response === void 0 ? void 0 : (_response$body = response.body) === null || _response$body === void 0 ? void 0 : _response$body.datachannelToken;
|
|
6803
7296
|
if (fetchedDatachannelToken) {
|
|
6804
|
-
|
|
7297
|
+
_context21.next = 4;
|
|
6805
7298
|
break;
|
|
6806
7299
|
}
|
|
6807
|
-
return
|
|
7300
|
+
return _context21.abrupt("return", false);
|
|
6808
7301
|
case 4:
|
|
6809
7302
|
// @ts-ignore
|
|
6810
|
-
this.webex.internal.llm.setDatachannelToken(fetchedDatachannelToken,
|
|
6811
|
-
return
|
|
7303
|
+
this.webex.internal.llm.setDatachannelToken(fetchedDatachannelToken, _constants.LLM_DEFAULT_SESSION, this.id);
|
|
7304
|
+
return _context21.abrupt("return", true);
|
|
6812
7305
|
case 5:
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
msg = (
|
|
7306
|
+
_context21.prev = 5;
|
|
7307
|
+
_t14 = _context21["catch"](0);
|
|
7308
|
+
msg = (_t14 === null || _t14 === void 0 ? void 0 : _t14.message) || String(_t14);
|
|
6816
7309
|
_loggerProxy.default.logger.warn("Meeting:index#ensureDefaultDatachannelTokenAfterAdmit --> failed to proactively fetch default data channel token after admit: ".concat(msg), {
|
|
6817
|
-
statusCode:
|
|
7310
|
+
statusCode: _t14 === null || _t14 === void 0 ? void 0 : _t14.statusCode
|
|
6818
7311
|
});
|
|
6819
|
-
return
|
|
7312
|
+
return _context21.abrupt("return", false);
|
|
6820
7313
|
case 6:
|
|
6821
7314
|
case "end":
|
|
6822
|
-
return
|
|
7315
|
+
return _context21.stop();
|
|
6823
7316
|
}
|
|
6824
|
-
},
|
|
7317
|
+
}, _callee21, this, [[0, 5]]);
|
|
6825
7318
|
}));
|
|
6826
7319
|
function ensureDefaultDatachannelTokenAfterAdmit() {
|
|
6827
7320
|
return _ensureDefaultDatachannelTokenAfterAdmit.apply(this, arguments);
|
|
@@ -6831,49 +7324,147 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6831
7324
|
/**
|
|
6832
7325
|
* Connects to low latency mercury and reconnects if the address has changed
|
|
6833
7326
|
* It will also disconnect if called when the meeting has ended
|
|
7327
|
+
* @param {Object} [options]
|
|
7328
|
+
* @param {boolean} [options.isInitialJoinPhase] true when called from initial join flow
|
|
6834
7329
|
* @returns {Promise}
|
|
6835
7330
|
*/
|
|
6836
7331
|
)
|
|
6837
7332
|
}, {
|
|
6838
7333
|
key: "updateLLMConnection",
|
|
6839
7334
|
value: (function () {
|
|
6840
|
-
var _updateLLMConnection = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
7335
|
+
var _updateLLMConnection = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee22() {
|
|
6841
7336
|
var _this36 = this;
|
|
6842
|
-
var
|
|
6843
|
-
|
|
6844
|
-
|
|
7337
|
+
var _ref40,
|
|
7338
|
+
_ref40$isInitialJoinP,
|
|
7339
|
+
isInitialJoinPhase,
|
|
7340
|
+
_ref41,
|
|
7341
|
+
_ref41$url,
|
|
7342
|
+
url,
|
|
7343
|
+
_ref41$info,
|
|
7344
|
+
_ref41$info2,
|
|
7345
|
+
_ref41$info2$datachan,
|
|
7346
|
+
datachannelUrl,
|
|
7347
|
+
isJoined,
|
|
7348
|
+
dataChannelUrl,
|
|
7349
|
+
_this$webex$internal$1,
|
|
7350
|
+
currentOwner,
|
|
7351
|
+
wasConnected,
|
|
7352
|
+
datachannelToken,
|
|
7353
|
+
refreshHandlerOwnerMeetingId,
|
|
7354
|
+
shouldAlignRefreshHandlerAfterOwnershipClaim,
|
|
7355
|
+
_args22 = arguments;
|
|
7356
|
+
return _regenerator.default.wrap(function (_context22) {
|
|
7357
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
6845
7358
|
case 0:
|
|
7359
|
+
_ref40 = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {}, _ref40$isInitialJoinP = _ref40.isInitialJoinPhase, isInitialJoinPhase = _ref40$isInitialJoinP === void 0 ? false : _ref40$isInitialJoinP;
|
|
6846
7360
|
// @ts-ignore - Fix type
|
|
6847
|
-
|
|
6848
|
-
isJoined = this.isJoined();
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
7361
|
+
_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;
|
|
7362
|
+
isJoined = this.isJoined();
|
|
7363
|
+
dataChannelUrl = datachannelUrl; // Ownership guard: when the default LLM session is already connected and
|
|
7364
|
+
// owned by a *different* Meeting instance, do not disconnect or reconfigure
|
|
7365
|
+
// it. Another meeting's `updateLLMConnection` must be ignored here to
|
|
7366
|
+
// avoid killing the socket it relies on. We only proceed to manage the
|
|
7367
|
+
// connection when this meeting is the current owner, or when no owner is
|
|
7368
|
+
// set yet (first claim).
|
|
7369
|
+
// @ts-ignore - Fix type
|
|
7370
|
+
_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
|
|
7371
|
+
// connected, we must respect current ownership. If it was disconnected,
|
|
7372
|
+
// this flow may reclaim stale owner tags after a fresh connect.
|
|
7373
|
+
// @ts-ignore - Fix type
|
|
7374
|
+
wasConnected = this.webex.internal.llm.isConnected(); // Prefer ownership-scoped token read. For disconnected stale-owner reclaim
|
|
7375
|
+
// flows, fallback to ownerless read so initial register can still carry a
|
|
7376
|
+
// token and recover from stale ownership without 401/403 dead-end.
|
|
7377
|
+
// @ts-ignore - Fix type
|
|
7378
|
+
datachannelToken = this.webex.internal.llm.getDatachannelToken(_constants.LLM_DEFAULT_SESSION, this.id);
|
|
7379
|
+
if (!datachannelToken && !wasConnected && currentOwner && currentOwner !== this.id) {
|
|
7380
|
+
// @ts-ignore - Fix type
|
|
7381
|
+
datachannelToken = this.webex.internal.llm.getDatachannelToken(_constants.LLM_DEFAULT_SESSION);
|
|
7382
|
+
}
|
|
7383
|
+
|
|
7384
|
+
// @ts-ignore - Fix type
|
|
7385
|
+
if (!wasConnected) {
|
|
7386
|
+
_context22.next = 3;
|
|
7387
|
+
break;
|
|
7388
|
+
}
|
|
7389
|
+
if (!(currentOwner && currentOwner !== this.id)) {
|
|
7390
|
+
_context22.next = 1;
|
|
6853
7391
|
break;
|
|
6854
7392
|
}
|
|
7393
|
+
// Another meeting owns the live LLM socket. We must not disconnect
|
|
7394
|
+
// or reconfigure it -- doing so would tear down a session the
|
|
7395
|
+
// owning meeting still relies on. Locus/datachannel URL mismatch is
|
|
7396
|
+
// expected here (each meeting has its own locus URL) and is NOT a
|
|
7397
|
+
// valid signal of staleness, so we never reclaim from this path.
|
|
7398
|
+
// The only safe reclaim mechanism is the `finally`-block owner-tag
|
|
7399
|
+
// release in `cleanupLLMConneciton`, which fires when this meeting
|
|
7400
|
+
// itself is being torn down.
|
|
7401
|
+
_loggerProxy.default.logger.info("Meeting:index#updateLLMConnection --> skipping; LLM owned by meeting ".concat(currentOwner, ", not ").concat(this.id));
|
|
7402
|
+
return _context22.abrupt("return", undefined);
|
|
7403
|
+
case 1:
|
|
6855
7404
|
if (!(
|
|
6856
7405
|
// @ts-ignore - Fix type
|
|
6857
7406
|
url === this.webex.internal.llm.getLocusUrl() &&
|
|
6858
7407
|
// @ts-ignore - Fix type
|
|
6859
7408
|
dataChannelUrl === this.webex.internal.llm.getDatachannelUrl() && isJoined)) {
|
|
6860
|
-
|
|
7409
|
+
_context22.next = 2;
|
|
6861
7410
|
break;
|
|
6862
7411
|
}
|
|
6863
|
-
return
|
|
6864
|
-
case
|
|
6865
|
-
|
|
7412
|
+
return _context22.abrupt("return", undefined);
|
|
7413
|
+
case 2:
|
|
7414
|
+
_context22.next = 3;
|
|
6866
7415
|
return this.cleanupLLMConneciton({
|
|
6867
7416
|
removeOnlineListener: false
|
|
6868
7417
|
});
|
|
6869
|
-
case
|
|
7418
|
+
case 3:
|
|
6870
7419
|
if (isJoined) {
|
|
6871
|
-
|
|
7420
|
+
_context22.next = 4;
|
|
6872
7421
|
break;
|
|
6873
7422
|
}
|
|
6874
|
-
return
|
|
6875
|
-
case
|
|
6876
|
-
|
|
7423
|
+
return _context22.abrupt("return", undefined);
|
|
7424
|
+
case 4:
|
|
7425
|
+
// Bind refresh handler before registration so interceptor-triggered token
|
|
7426
|
+
// refresh during register POST can resolve a valid handler.
|
|
7427
|
+
// Prefer this meeting as owner, but allow owner-less fallback when a stale
|
|
7428
|
+
// foreign owner tag is present on a disconnected session.
|
|
7429
|
+
refreshHandlerOwnerMeetingId = currentOwner && currentOwner !== this.id ? undefined : this.id;
|
|
7430
|
+
shouldAlignRefreshHandlerAfterOwnershipClaim = refreshHandlerOwnerMeetingId !== this.id; // @ts-ignore - Fix type
|
|
7431
|
+
this.webex.internal.llm.setRefreshHandler(function () {
|
|
7432
|
+
return _this36.refreshDataChannelToken();
|
|
7433
|
+
}, _constants.LLM_DEFAULT_SESSION, refreshHandlerOwnerMeetingId);
|
|
7434
|
+
|
|
7435
|
+
// @ts-ignore - Fix type
|
|
7436
|
+
return _context22.abrupt("return", this.webex.internal.llm.registerAndConnect(url, dataChannelUrl, datachannelToken).then(function (registerAndConnectResult) {
|
|
7437
|
+
_this36.locusInfo.syncAllHashTreeDatasets({
|
|
7438
|
+
onlyLLM: true
|
|
7439
|
+
});
|
|
7440
|
+
// Record ownership of the default LLM session for this meeting so
|
|
7441
|
+
// subsequent cross-meeting `updateLLMConnection` / `cleanupLLMConneciton`
|
|
7442
|
+
// calls can detect and skip work that doesn't belong to them.
|
|
7443
|
+
// @ts-ignore - Fix type
|
|
7444
|
+
var _this36$webex$interna = _this36.webex.internal.llm.resolveSessionOwnership(_this36.id, _constants.LLM_DEFAULT_SESSION),
|
|
7445
|
+
isOwner = _this36$webex$interna.isOwner;
|
|
7446
|
+
var canReclaimAfterDisconnectedStart = !wasConnected;
|
|
7447
|
+
|
|
7448
|
+
// Refresh handler is pre-bound before registerAndConnect so token
|
|
7449
|
+
// refresh can work even during the registration request itself.
|
|
7450
|
+
if (isOwner || canReclaimAfterDisconnectedStart) {
|
|
7451
|
+
var _this36$webex$interna2, _this36$webex$interna3;
|
|
7452
|
+
// Record ownership of the default LLM session for this meeting so
|
|
7453
|
+
// subsequent cross-meeting `updateLLMConnection` / `cleanupLLMConneciton`
|
|
7454
|
+
// calls can detect and skip work that doesn't belong to them.
|
|
7455
|
+
// @ts-ignore - Fix type
|
|
7456
|
+
(_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);
|
|
7457
|
+
|
|
7458
|
+
// If we pre-bound refresh ownerlessly (stale-owner reclaim path),
|
|
7459
|
+
// align the handler with the newly claimed owner immediately after
|
|
7460
|
+
// ownership is updated.
|
|
7461
|
+
if (shouldAlignRefreshHandlerAfterOwnershipClaim) {
|
|
7462
|
+
// @ts-ignore - Fix type
|
|
7463
|
+
_this36.webex.internal.llm.setRefreshHandler(function () {
|
|
7464
|
+
return _this36.refreshDataChannelToken();
|
|
7465
|
+
}, _constants.LLM_DEFAULT_SESSION, _this36.id);
|
|
7466
|
+
}
|
|
7467
|
+
}
|
|
6877
7468
|
// @ts-ignore - Fix type
|
|
6878
7469
|
_this36.webex.internal.llm.off('event:relay.event', _this36.processRelayEvent);
|
|
6879
7470
|
// @ts-ignore - Fix type
|
|
@@ -6884,19 +7475,118 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6884
7475
|
_this36.webex.internal.llm.on(_constants.LOCUS_LLM_EVENT, _this36.processLocusLLMEvent);
|
|
6885
7476
|
_loggerProxy.default.logger.info('Meeting:index#updateLLMConnection --> enabled to receive relay events!');
|
|
6886
7477
|
_this36.startLLMHealthCheckTimer();
|
|
7478
|
+
if (registerAndConnectResult) {
|
|
7479
|
+
var _this36$breakouts;
|
|
7480
|
+
if (isInitialJoinPhase) {
|
|
7481
|
+
_this36.sendLLMConnectMetric(registerAndConnectResult);
|
|
7482
|
+
}
|
|
7483
|
+
(_this36$breakouts = _this36.breakouts) === null || _this36$breakouts === void 0 ? void 0 : _this36$breakouts.trigger(_constants.BREAKOUTS.EVENTS.LLM_CONNECT_RESPONSE, {
|
|
7484
|
+
meeting: _this36,
|
|
7485
|
+
llmLatency: registerAndConnectResult
|
|
7486
|
+
});
|
|
7487
|
+
}
|
|
6887
7488
|
return _promise.default.resolve(registerAndConnectResult);
|
|
7489
|
+
}).catch(function (error) {
|
|
7490
|
+
var _error$timing$clientL, _error$timing, _this36$breakouts2;
|
|
7491
|
+
// Prefer the partial timing registerAndConnect attaches when register succeeded but the
|
|
7492
|
+
// websocket connect() failed, so a ws failure isn't misreported as register never completing.
|
|
7493
|
+
var llmLatency = {
|
|
7494
|
+
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,
|
|
7495
|
+
clientLLMWebSocketConnectTime: 0
|
|
7496
|
+
};
|
|
7497
|
+
if (isInitialJoinPhase) {
|
|
7498
|
+
_this36.sendLLMConnectMetric(llmLatency, error);
|
|
7499
|
+
}
|
|
7500
|
+
(_this36$breakouts2 = _this36.breakouts) === null || _this36$breakouts2 === void 0 ? void 0 : _this36$breakouts2.trigger(_constants.BREAKOUTS.EVENTS.LLM_CONNECT_RESPONSE, {
|
|
7501
|
+
meeting: _this36,
|
|
7502
|
+
llmLatency: llmLatency,
|
|
7503
|
+
error: error
|
|
7504
|
+
});
|
|
7505
|
+
return _promise.default.reject(error);
|
|
6888
7506
|
}));
|
|
6889
|
-
case
|
|
7507
|
+
case 5:
|
|
6890
7508
|
case "end":
|
|
6891
|
-
return
|
|
7509
|
+
return _context22.stop();
|
|
6892
7510
|
}
|
|
6893
|
-
},
|
|
7511
|
+
}, _callee22, this);
|
|
6894
7512
|
}));
|
|
6895
7513
|
function updateLLMConnection() {
|
|
6896
7514
|
return _updateLLMConnection.apply(this, arguments);
|
|
6897
7515
|
}
|
|
6898
7516
|
return updateLLMConnection;
|
|
6899
7517
|
}()
|
|
7518
|
+
/**
|
|
7519
|
+
* Ensures breakout join response metric with LLM latency is emitted only once per breakout move id.
|
|
7520
|
+
* @param {string | undefined} breakoutMoveId
|
|
7521
|
+
* @param {boolean} [hasLLMLatency=false]
|
|
7522
|
+
* @returns {boolean}
|
|
7523
|
+
*/
|
|
7524
|
+
)
|
|
7525
|
+
}, {
|
|
7526
|
+
key: "shouldEmitBreakoutJoinResponseMetric",
|
|
7527
|
+
value: function shouldEmitBreakoutJoinResponseMetric(breakoutMoveId) {
|
|
7528
|
+
var hasLLMLatency = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
7529
|
+
if (!breakoutMoveId) {
|
|
7530
|
+
return false;
|
|
7531
|
+
}
|
|
7532
|
+
if (!hasLLMLatency) {
|
|
7533
|
+
// When automatic LLM is enabled, updateLLMConnection will emit this same breakout join
|
|
7534
|
+
// response after the LLM connection finishes, including llmLatency and llmWebsocketUrl.
|
|
7535
|
+
// Suppress the earlier non-LLM event to avoid sending two events for the same move id,
|
|
7536
|
+
// where the first one would be missing the LLM-specific fields we want to validate.
|
|
7537
|
+
// @ts-ignore - config coming from registerPlugin
|
|
7538
|
+
return !this.config.enableAutomaticLLM;
|
|
7539
|
+
}
|
|
7540
|
+
if (this.emittedBreakoutJoinResponseMoveIds.has(breakoutMoveId)) {
|
|
7541
|
+
return false;
|
|
7542
|
+
}
|
|
7543
|
+
this.emittedBreakoutJoinResponseMoveIds.add(breakoutMoveId);
|
|
7544
|
+
return true;
|
|
7545
|
+
}
|
|
7546
|
+
|
|
7547
|
+
/**
|
|
7548
|
+
* Sends LLM connect latencies for initial join flow.
|
|
7549
|
+
* @param {RegisterAndConnectTiming} timings
|
|
7550
|
+
* @param {any} [error]
|
|
7551
|
+
* @returns {void}
|
|
7552
|
+
*/
|
|
7553
|
+
}, {
|
|
7554
|
+
key: "sendLLMConnectMetric",
|
|
7555
|
+
value: function sendLLMConnectMetric(timings, error) {
|
|
7556
|
+
var _this$webex$internal$10, _this$webex$internal$11;
|
|
7557
|
+
// @ts-ignore
|
|
7558
|
+
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;
|
|
7559
|
+
var _ref42 = timings || {},
|
|
7560
|
+
_ref42$clientLLMDatac = _ref42.clientLLMDatachannelResponseTime,
|
|
7561
|
+
clientLLMDatachannelResponseTime = _ref42$clientLLMDatac === void 0 ? 0 : _ref42$clientLLMDatac,
|
|
7562
|
+
clientLLMWebSocketConnectTime = _ref42.clientLLMWebSocketConnectTime;
|
|
7563
|
+
var llmLatency = {
|
|
7564
|
+
clientLLMDatachannelResponseTime: clientLLMDatachannelResponseTime
|
|
7565
|
+
};
|
|
7566
|
+
if (clientLLMWebSocketConnectTime !== undefined) {
|
|
7567
|
+
llmLatency.clientLLMWebSocketConnectTime = clientLLMWebSocketConnectTime;
|
|
7568
|
+
}
|
|
7569
|
+
var payload = {
|
|
7570
|
+
identifiers: {
|
|
7571
|
+
llmWebsocketUrl: llmWebsocketUrl
|
|
7572
|
+
},
|
|
7573
|
+
llmLatency: llmLatency
|
|
7574
|
+
};
|
|
7575
|
+
var options = _objectSpread({
|
|
7576
|
+
meetingId: this.id
|
|
7577
|
+
}, error && {
|
|
7578
|
+
rawError: error
|
|
7579
|
+
});
|
|
7580
|
+
var metricEvent = {
|
|
7581
|
+
name: 'client.llm.connect.response',
|
|
7582
|
+
payload: payload,
|
|
7583
|
+
options: options
|
|
7584
|
+
};
|
|
7585
|
+
|
|
7586
|
+
// @ts-ignore
|
|
7587
|
+
this.webex.internal.newMetrics.submitClientEvent(metricEvent);
|
|
7588
|
+
}
|
|
7589
|
+
|
|
6900
7590
|
/**
|
|
6901
7591
|
* Use phone for meeting audio
|
|
6902
7592
|
* @param {String} phoneNumber If provided, it will dial-out using this number. If not provided, dial-in will be used
|
|
@@ -6904,7 +7594,6 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6904
7594
|
* @public
|
|
6905
7595
|
* @memberof Meeting
|
|
6906
7596
|
*/
|
|
6907
|
-
)
|
|
6908
7597
|
}, {
|
|
6909
7598
|
key: "usePhoneAudio",
|
|
6910
7599
|
value: function usePhoneAudio(phoneNumber) {
|
|
@@ -7076,17 +7765,17 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7076
7765
|
meetingId: this.id
|
|
7077
7766
|
}
|
|
7078
7767
|
});
|
|
7079
|
-
this.locusInfo.once(_constants.LOCUSINFO.EVENTS.SELF_OBSERVING, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
7080
|
-
var mediaSettings,
|
|
7081
|
-
return _regenerator.default.wrap(function (
|
|
7082
|
-
while (1) switch (
|
|
7768
|
+
this.locusInfo.once(_constants.LOCUSINFO.EVENTS.SELF_OBSERVING, /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee23() {
|
|
7769
|
+
var mediaSettings, _t15;
|
|
7770
|
+
return _regenerator.default.wrap(function (_context23) {
|
|
7771
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
7083
7772
|
case 0:
|
|
7084
|
-
|
|
7773
|
+
_context23.prev = 0;
|
|
7085
7774
|
if (!(_this40.screenShareFloorState === ScreenShareFloorStatus.GRANTED)) {
|
|
7086
|
-
|
|
7775
|
+
_context23.next = 1;
|
|
7087
7776
|
break;
|
|
7088
7777
|
}
|
|
7089
|
-
|
|
7778
|
+
_context23.next = 1;
|
|
7090
7779
|
return _this40.releaseScreenShareFloor();
|
|
7091
7780
|
case 1:
|
|
7092
7781
|
mediaSettings = {
|
|
@@ -7105,23 +7794,23 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7105
7794
|
// when a move to is intiated by the client , Locus delets the existing media node from the server as soon the device answers the meeting
|
|
7106
7795
|
// once the device answers we close the old connection and create new media server connection with only share enabled
|
|
7107
7796
|
if (!_this40.statsAnalyzer) {
|
|
7108
|
-
|
|
7797
|
+
_context23.next = 2;
|
|
7109
7798
|
break;
|
|
7110
7799
|
}
|
|
7111
|
-
|
|
7800
|
+
_context23.next = 2;
|
|
7112
7801
|
return _this40.statsAnalyzer.stopAnalyzer();
|
|
7113
7802
|
case 2:
|
|
7114
|
-
|
|
7803
|
+
_context23.next = 3;
|
|
7115
7804
|
return _this40.closeRemoteStreams();
|
|
7116
7805
|
case 3:
|
|
7117
|
-
|
|
7806
|
+
_context23.next = 4;
|
|
7118
7807
|
return _this40.closePeerConnections();
|
|
7119
7808
|
case 4:
|
|
7120
7809
|
_this40.cleanupLocalStreams();
|
|
7121
7810
|
_this40.unsetRemoteStreams();
|
|
7122
7811
|
_this40.unsetPeerConnections();
|
|
7123
7812
|
_this40.reconnectionManager.cleanUp();
|
|
7124
|
-
|
|
7813
|
+
_context23.next = 5;
|
|
7125
7814
|
return _this40.addMedia({
|
|
7126
7815
|
audioEnabled: false,
|
|
7127
7816
|
videoEnabled: false,
|
|
@@ -7130,24 +7819,24 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7130
7819
|
case 5:
|
|
7131
7820
|
_metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_SUCCESS);
|
|
7132
7821
|
_this40.isMoveToInProgress = false;
|
|
7133
|
-
|
|
7822
|
+
_context23.next = 7;
|
|
7134
7823
|
break;
|
|
7135
7824
|
case 6:
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
_loggerProxy.default.logger.error('Meeting:index#moveTo --> Failed to moveTo resourceId',
|
|
7825
|
+
_context23.prev = 6;
|
|
7826
|
+
_t15 = _context23["catch"](0);
|
|
7827
|
+
_loggerProxy.default.logger.error('Meeting:index#moveTo --> Failed to moveTo resourceId', _t15);
|
|
7139
7828
|
_metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_FAILURE, {
|
|
7140
7829
|
correlation_id: _this40.correlationId,
|
|
7141
7830
|
locus_id: _this40.locusUrl.split('/').pop(),
|
|
7142
|
-
reason:
|
|
7143
|
-
stack:
|
|
7831
|
+
reason: _t15.message,
|
|
7832
|
+
stack: _t15.stack
|
|
7144
7833
|
});
|
|
7145
7834
|
_this40.isMoveToInProgress = false;
|
|
7146
7835
|
case 7:
|
|
7147
7836
|
case "end":
|
|
7148
|
-
return
|
|
7837
|
+
return _context23.stop();
|
|
7149
7838
|
}
|
|
7150
|
-
},
|
|
7839
|
+
}, _callee23, null, [[0, 6]]);
|
|
7151
7840
|
})));
|
|
7152
7841
|
_loggerProxy.default.logger.info('Meeting:index#moveTo --> Initated moved to using resourceId', resourceId);
|
|
7153
7842
|
|
|
@@ -7224,21 +7913,93 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7224
7913
|
return "MC-".concat(this.id.substring(0, 4));
|
|
7225
7914
|
}
|
|
7226
7915
|
|
|
7916
|
+
/**
|
|
7917
|
+
* Checks if the error indicates that Locus dropped us from the meeting,
|
|
7918
|
+
* either directly on the error or wrapped inside an AddMediaFailed cause.
|
|
7919
|
+
* This method is meant to be called only with errors thrown by Meeting.addMediaInternal()
|
|
7920
|
+
*
|
|
7921
|
+
* @param {Error} error
|
|
7922
|
+
* @returns {boolean}
|
|
7923
|
+
*/
|
|
7924
|
+
}, {
|
|
7925
|
+
key: "isErrorMeaningLocusDroppedUs",
|
|
7926
|
+
value: function isErrorMeaningLocusDroppedUs(error) {
|
|
7927
|
+
var _cause;
|
|
7928
|
+
var statusCode = error === null || error === void 0 ? void 0 : error.statusCode;
|
|
7929
|
+
var causeStatusCode = error === null || error === void 0 ? void 0 : (_cause = error.cause) === null || _cause === void 0 ? void 0 : _cause.statusCode;
|
|
7930
|
+
return statusCode === 409 || statusCode === 403 || causeStatusCode === 409 || causeStatusCode === 403;
|
|
7931
|
+
}
|
|
7932
|
+
}, {
|
|
7933
|
+
key: "isLocusUserFullError",
|
|
7934
|
+
value: function isLocusUserFullError(error) {
|
|
7935
|
+
var _error6, _error6$body;
|
|
7936
|
+
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;
|
|
7937
|
+
}
|
|
7938
|
+
|
|
7939
|
+
/**
|
|
7940
|
+
* Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
|
|
7941
|
+
* We do this in the hope that it will minimize the chance of Homer sending DTLS packets on a wrong
|
|
7942
|
+
* transport (as there will be only 1 transport) and dealing with firewalls that let STUN packets through, but block
|
|
7943
|
+
* other UDP traffic.
|
|
7944
|
+
*
|
|
7945
|
+
* For clients landing on video mesh nodes (VMN), reachability might still have successful TLS (to public nodes)
|
|
7946
|
+
* but TURN discovery will result in empty TURN urls array and iceTransportPolicy='relay' will still be overriden to undefined,
|
|
7947
|
+
* see the code in establishMediaConnection()
|
|
7948
|
+
*
|
|
7949
|
+
* @param {Error} prevError - The error from the previous addMedia attempt
|
|
7950
|
+
* @returns {Promise<boolean>}
|
|
7951
|
+
*/
|
|
7952
|
+
}, {
|
|
7953
|
+
key: "shouldRetryMediaWithOnlyTurnTLS",
|
|
7954
|
+
value: (function () {
|
|
7955
|
+
var _shouldRetryMediaWithOnlyTurnTLS = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee24(prevError) {
|
|
7956
|
+
var hasTlsReachability;
|
|
7957
|
+
return _regenerator.default.wrap(function (_context24) {
|
|
7958
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
7959
|
+
case 0:
|
|
7960
|
+
if (!(this.isMultistream && prevError instanceof _webexErrors.AddMediaFailed && prevError.isDtlsHandshakeFailure && prevError.connectionType === 'UDP')) {
|
|
7961
|
+
_context24.next = 2;
|
|
7962
|
+
break;
|
|
7963
|
+
}
|
|
7964
|
+
_context24.next = 1;
|
|
7965
|
+
return this.webex.meetings.reachability.isAnyClusterReachableViaProtocol('xtls');
|
|
7966
|
+
case 1:
|
|
7967
|
+
hasTlsReachability = _context24.sent;
|
|
7968
|
+
if (!hasTlsReachability) {
|
|
7969
|
+
_context24.next = 2;
|
|
7970
|
+
break;
|
|
7971
|
+
}
|
|
7972
|
+
_loggerProxy.default.logger.info('Meeting:index#shouldRetryMediaWithOnlyTurnTLS --> previous attempt failed due to DTLS handshake failure over UDP and TLS reachability is available');
|
|
7973
|
+
return _context24.abrupt("return", true);
|
|
7974
|
+
case 2:
|
|
7975
|
+
return _context24.abrupt("return", false);
|
|
7976
|
+
case 3:
|
|
7977
|
+
case "end":
|
|
7978
|
+
return _context24.stop();
|
|
7979
|
+
}
|
|
7980
|
+
}, _callee24, this);
|
|
7981
|
+
}));
|
|
7982
|
+
function shouldRetryMediaWithOnlyTurnTLS(_x16) {
|
|
7983
|
+
return _shouldRetryMediaWithOnlyTurnTLS.apply(this, arguments);
|
|
7984
|
+
}
|
|
7985
|
+
return shouldRetryMediaWithOnlyTurnTLS;
|
|
7986
|
+
}()
|
|
7227
7987
|
/**
|
|
7228
7988
|
* Creates a webrtc media connection and publishes streams to it
|
|
7229
7989
|
*
|
|
7230
7990
|
* @param {Object} turnServerInfo TURN server information
|
|
7231
7991
|
* @param {BundlePolicy} [bundlePolicy] Bundle policy settings
|
|
7232
|
-
* @param {
|
|
7992
|
+
* @param {RTCIceTransportPolicy} [iceTransportPolicy] ICE transport policy override
|
|
7233
7993
|
* @returns {RoapMediaConnection | MultistreamRoapMediaConnection}
|
|
7234
7994
|
*/
|
|
7995
|
+
)
|
|
7235
7996
|
}, {
|
|
7236
7997
|
key: "createMediaConnection",
|
|
7237
7998
|
value: (function () {
|
|
7238
|
-
var _createMediaConnection = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
7999
|
+
var _createMediaConnection = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee25(turnServerInfo, bundlePolicy, iceTransportPolicy) {
|
|
7239
8000
|
var mc, audioEnabled, videoEnabled, shareEnabled;
|
|
7240
|
-
return _regenerator.default.wrap(function (
|
|
7241
|
-
while (1) switch (
|
|
8001
|
+
return _regenerator.default.wrap(function (_context25) {
|
|
8002
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
7242
8003
|
case 0:
|
|
7243
8004
|
this.rtcMetrics = this.isMultistream ?
|
|
7244
8005
|
// @ts-ignore
|
|
@@ -7258,12 +8019,15 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7258
8019
|
enableExtmap: this.config.enableExtmap,
|
|
7259
8020
|
turnServerInfo: turnServerInfo,
|
|
7260
8021
|
bundlePolicy: bundlePolicy,
|
|
8022
|
+
iceTransportPolicy: iceTransportPolicy,
|
|
7261
8023
|
// @ts-ignore - config coming from registerPlugin
|
|
7262
8024
|
iceCandidatesTimeout: this.config.iceCandidatesGatheringTimeout,
|
|
7263
8025
|
// @ts-ignore - config coming from registerPlugin
|
|
7264
8026
|
disableAudioMainDtx: this.config.experimental.disableAudioMainDtx,
|
|
7265
8027
|
// @ts-ignore - config coming from registerPlugin
|
|
7266
8028
|
enableAudioTwcc: this.config.enableAudioTwccForMultistream,
|
|
8029
|
+
// @ts-ignore - config coming from registerPlugin
|
|
8030
|
+
enableAv1SlidesSupport: this.config.enableAv1SlidesSupport,
|
|
7267
8031
|
stopIceGatheringAfterFirstRelayCandidate:
|
|
7268
8032
|
// @ts-ignore - config coming from registerPlugin
|
|
7269
8033
|
this.config.stopIceGatheringAfterFirstRelayCandidate
|
|
@@ -7272,6 +8036,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7272
8036
|
this.setupMediaConnectionListeners();
|
|
7273
8037
|
if (this.isMultistream) {
|
|
7274
8038
|
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;
|
|
8039
|
+
this.sendSlotManager.reset();
|
|
7275
8040
|
this.sendSlotManager.createSlot(mc, _internalMediaCore.MediaType.VideoMain, videoEnabled);
|
|
7276
8041
|
this.sendSlotManager.createSlot(mc, _internalMediaCore.MediaType.AudioMain, audioEnabled);
|
|
7277
8042
|
this.sendSlotManager.createSlot(mc, _internalMediaCore.MediaType.VideoSlides, shareEnabled);
|
|
@@ -7280,42 +8045,42 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7280
8045
|
|
|
7281
8046
|
// publish the streams
|
|
7282
8047
|
if (!this.mediaProperties.audioStream) {
|
|
7283
|
-
|
|
8048
|
+
_context25.next = 1;
|
|
7284
8049
|
break;
|
|
7285
8050
|
}
|
|
7286
8051
|
this.setSendNamedMediaGroup(_internalMediaCore.MediaType.AudioMain);
|
|
7287
|
-
|
|
8052
|
+
_context25.next = 1;
|
|
7288
8053
|
return this.publishStream(_internalMediaCore.MediaType.AudioMain, this.mediaProperties.audioStream);
|
|
7289
8054
|
case 1:
|
|
7290
8055
|
if (!this.mediaProperties.videoStream) {
|
|
7291
|
-
|
|
8056
|
+
_context25.next = 2;
|
|
7292
8057
|
break;
|
|
7293
8058
|
}
|
|
7294
|
-
|
|
8059
|
+
_context25.next = 2;
|
|
7295
8060
|
return this.publishStream(_internalMediaCore.MediaType.VideoMain, this.mediaProperties.videoStream);
|
|
7296
8061
|
case 2:
|
|
7297
8062
|
if (!this.mediaProperties.shareVideoStream) {
|
|
7298
|
-
|
|
8063
|
+
_context25.next = 3;
|
|
7299
8064
|
break;
|
|
7300
8065
|
}
|
|
7301
|
-
|
|
8066
|
+
_context25.next = 3;
|
|
7302
8067
|
return this.publishStream(_internalMediaCore.MediaType.VideoSlides, this.mediaProperties.shareVideoStream);
|
|
7303
8068
|
case 3:
|
|
7304
8069
|
if (!(this.isMultistream && this.mediaProperties.shareAudioStream)) {
|
|
7305
|
-
|
|
8070
|
+
_context25.next = 4;
|
|
7306
8071
|
break;
|
|
7307
8072
|
}
|
|
7308
|
-
|
|
8073
|
+
_context25.next = 4;
|
|
7309
8074
|
return this.publishStream(_internalMediaCore.MediaType.AudioSlides, this.mediaProperties.shareAudioStream);
|
|
7310
8075
|
case 4:
|
|
7311
|
-
return
|
|
8076
|
+
return _context25.abrupt("return", mc);
|
|
7312
8077
|
case 5:
|
|
7313
8078
|
case "end":
|
|
7314
|
-
return
|
|
8079
|
+
return _context25.stop();
|
|
7315
8080
|
}
|
|
7316
|
-
},
|
|
8081
|
+
}, _callee25, this);
|
|
7317
8082
|
}));
|
|
7318
|
-
function createMediaConnection(
|
|
8083
|
+
function createMediaConnection(_x17, _x18, _x19) {
|
|
7319
8084
|
return _createMediaConnection.apply(this, arguments);
|
|
7320
8085
|
}
|
|
7321
8086
|
return createMediaConnection;
|
|
@@ -7353,11 +8118,11 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7353
8118
|
}, {
|
|
7354
8119
|
key: "setUpLocalStreamReferences",
|
|
7355
8120
|
value: (function () {
|
|
7356
|
-
var _setUpLocalStreamReferences = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
8121
|
+
var _setUpLocalStreamReferences = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee26(localStreams) {
|
|
7357
8122
|
var _localStreams$microph, _localStreams$camera, _localStreams$screenS, _localStreams$screenS2, _localStreams$screenS3, _localStreams$screenS4, _localStreams$screenS5, _localStreams$screenS6;
|
|
7358
|
-
var setUpStreamPromises,
|
|
7359
|
-
return _regenerator.default.wrap(function (
|
|
7360
|
-
while (1) switch (
|
|
8123
|
+
var setUpStreamPromises, _t16;
|
|
8124
|
+
return _regenerator.default.wrap(function (_context26) {
|
|
8125
|
+
while (1) switch (_context26.prev = _context26.next) {
|
|
7361
8126
|
case 0:
|
|
7362
8127
|
setUpStreamPromises = [];
|
|
7363
8128
|
if (localStreams !== null && localStreams !== void 0 && localStreams.microphone && (localStreams === null || localStreams === void 0 ? void 0 : (_localStreams$microph = localStreams.microphone) === null || _localStreams$microph === void 0 ? void 0 : _localStreams$microph.readyState) !== 'ended') {
|
|
@@ -7372,24 +8137,24 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7372
8137
|
if (localStreams !== null && localStreams !== void 0 && (_localStreams$screenS4 = localStreams.screenShare) !== null && _localStreams$screenS4 !== void 0 && _localStreams$screenS4.audio && (localStreams === null || localStreams === void 0 ? void 0 : (_localStreams$screenS5 = localStreams.screenShare) === null || _localStreams$screenS5 === void 0 ? void 0 : (_localStreams$screenS6 = _localStreams$screenS5.audio) === null || _localStreams$screenS6 === void 0 ? void 0 : _localStreams$screenS6.readyState) !== 'ended') {
|
|
7373
8138
|
setUpStreamPromises.push(this.setLocalShareAudioStream(localStreams.screenShare.audio));
|
|
7374
8139
|
}
|
|
7375
|
-
|
|
7376
|
-
|
|
8140
|
+
_context26.prev = 1;
|
|
8141
|
+
_context26.next = 2;
|
|
7377
8142
|
return _promise.default.all(setUpStreamPromises);
|
|
7378
8143
|
case 2:
|
|
7379
|
-
|
|
8144
|
+
_context26.next = 4;
|
|
7380
8145
|
break;
|
|
7381
8146
|
case 3:
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
_loggerProxy.default.logger.error("Meeting:index#addMedia():setUpLocalStreamReferences --> Error , ",
|
|
7385
|
-
throw
|
|
8147
|
+
_context26.prev = 3;
|
|
8148
|
+
_t16 = _context26["catch"](1);
|
|
8149
|
+
_loggerProxy.default.logger.error("Meeting:index#addMedia():setUpLocalStreamReferences --> Error , ", _t16);
|
|
8150
|
+
throw _t16;
|
|
7386
8151
|
case 4:
|
|
7387
8152
|
case "end":
|
|
7388
|
-
return
|
|
8153
|
+
return _context26.stop();
|
|
7389
8154
|
}
|
|
7390
|
-
},
|
|
8155
|
+
}, _callee26, this, [[1, 3]]);
|
|
7391
8156
|
}));
|
|
7392
|
-
function setUpLocalStreamReferences(
|
|
8157
|
+
function setUpLocalStreamReferences(_x20) {
|
|
7393
8158
|
return _setUpLocalStreamReferences.apply(this, arguments);
|
|
7394
8159
|
}
|
|
7395
8160
|
return setUpLocalStreamReferences;
|
|
@@ -7404,72 +8169,71 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7404
8169
|
}, {
|
|
7405
8170
|
key: "waitForMediaConnectionConnected",
|
|
7406
8171
|
value: (function () {
|
|
7407
|
-
var _waitForMediaConnectionConnected = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
7408
|
-
var iceConnected, _this$mediaProperties9, _this$mediaProperties0, _this$mediaProperties1, _this$mediaProperties10, _this$mediaProperties11, _this$mediaProperties12, _this$mediaProperties13,
|
|
7409
|
-
return _regenerator.default.wrap(function (
|
|
7410
|
-
while (1) switch (
|
|
8172
|
+
var _waitForMediaConnectionConnected = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee27() {
|
|
8173
|
+
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;
|
|
8174
|
+
return _regenerator.default.wrap(function (_context27) {
|
|
8175
|
+
while (1) switch (_context27.prev = _context27.next) {
|
|
7411
8176
|
case 0:
|
|
7412
|
-
|
|
7413
|
-
|
|
8177
|
+
_context27.prev = 0;
|
|
8178
|
+
_context27.next = 1;
|
|
7414
8179
|
return this.mediaProperties.waitForMediaConnectionConnected(this.correlationId);
|
|
7415
8180
|
case 1:
|
|
7416
|
-
|
|
8181
|
+
_context27.next = 5;
|
|
7417
8182
|
break;
|
|
7418
8183
|
case 2:
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
iceConnected =
|
|
8184
|
+
_context27.prev = 2;
|
|
8185
|
+
_t17 = _context27["catch"](0);
|
|
8186
|
+
_ref44 = _t17, iceConnected = _ref44.iceConnected;
|
|
7422
8187
|
if (this.hasMediaConnectionConnectedAtLeastOnce) {
|
|
7423
|
-
|
|
8188
|
+
_context27.next = 4;
|
|
7424
8189
|
break;
|
|
7425
8190
|
}
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
8191
|
+
_t18 = this.webex.internal.newMetrics;
|
|
8192
|
+
_t19 = !this.turnServerUsed;
|
|
8193
|
+
_t20 = this.addMediaData.icePhaseCallback();
|
|
8194
|
+
_t21 = this.webex.internal.newMetrics.callDiagnosticMetrics;
|
|
8195
|
+
_t22 = _internalPluginMetrics.CallDiagnosticUtils;
|
|
8196
|
+
_t23 = ((_this$mediaProperties9 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties9 === void 0 ? void 0 : (_this$mediaProperties0 = _this$mediaProperties9.multistreamConnection) === null || _this$mediaProperties0 === void 0 ? void 0 : (_this$mediaProperties1 = _this$mediaProperties0.pc) === null || _this$mediaProperties1 === void 0 ? void 0 : (_this$mediaProperties10 = _this$mediaProperties1.pc) === null || _this$mediaProperties10 === void 0 ? void 0 : _this$mediaProperties10.signalingState) || ((_this$mediaProperties11 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties11 === void 0 ? void 0 : (_this$mediaProperties12 = _this$mediaProperties11.mediaConnection) === null || _this$mediaProperties12 === void 0 ? void 0 : (_this$mediaProperties13 = _this$mediaProperties12.pc) === null || _this$mediaProperties13 === void 0 ? void 0 : _this$mediaProperties13.signalingState) || 'unknown';
|
|
8197
|
+
_t24 = iceConnected;
|
|
8198
|
+
_t25 = this.turnServerUsed;
|
|
8199
|
+
_context27.next = 3;
|
|
7435
8200
|
return this.webex.meetings.reachability.isWebexMediaBackendUnreachable().catch(function () {
|
|
7436
8201
|
return false;
|
|
7437
8202
|
});
|
|
7438
8203
|
case 3:
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
signalingState:
|
|
7442
|
-
iceConnected:
|
|
7443
|
-
turnServerUsed:
|
|
7444
|
-
unreachable:
|
|
8204
|
+
_t26 = _context27.sent;
|
|
8205
|
+
_t27 = _t22.generateClientErrorCodeForIceFailure.call(_t22, {
|
|
8206
|
+
signalingState: _t23,
|
|
8207
|
+
iceConnected: _t24,
|
|
8208
|
+
turnServerUsed: _t25,
|
|
8209
|
+
unreachable: _t26
|
|
7445
8210
|
});
|
|
7446
|
-
|
|
7447
|
-
clientErrorCode:
|
|
8211
|
+
_t28 = _t21.getErrorPayloadForClientErrorCode.call(_t21, {
|
|
8212
|
+
clientErrorCode: _t27
|
|
7448
8213
|
});
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
canProceed:
|
|
7452
|
-
icePhase:
|
|
7453
|
-
errors:
|
|
8214
|
+
_t29 = [_t28];
|
|
8215
|
+
_t30 = {
|
|
8216
|
+
canProceed: _t19,
|
|
8217
|
+
icePhase: _t20,
|
|
8218
|
+
errors: _t29
|
|
7454
8219
|
};
|
|
7455
|
-
|
|
8220
|
+
_t31 = {
|
|
7456
8221
|
meetingId: this.id,
|
|
7457
|
-
rawError:
|
|
8222
|
+
rawError: _t17
|
|
7458
8223
|
};
|
|
7459
|
-
|
|
8224
|
+
_t18.submitClientEvent.call(_t18, {
|
|
7460
8225
|
name: 'client.ice.end',
|
|
7461
|
-
payload:
|
|
7462
|
-
options:
|
|
8226
|
+
payload: _t30,
|
|
8227
|
+
options: _t31
|
|
7463
8228
|
});
|
|
7464
8229
|
case 4:
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
throw timedOutError;
|
|
8230
|
+
throw new _webexErrors.MediaConnectionTimedOutError("Timed out waiting for media connection to be connected, correlationId=".concat(this.correlationId), iceConnected, // keep reference to the original rejected result (which is the object the SDK reports to CA as rawError above)
|
|
8231
|
+
_t17);
|
|
7468
8232
|
case 5:
|
|
7469
8233
|
case "end":
|
|
7470
|
-
return
|
|
8234
|
+
return _context27.stop();
|
|
7471
8235
|
}
|
|
7472
|
-
},
|
|
8236
|
+
}, _callee27, this, [[0, 2]]);
|
|
7473
8237
|
}));
|
|
7474
8238
|
function waitForMediaConnectionConnected() {
|
|
7475
8239
|
return _waitForMediaConnectionConnected.apply(this, arguments);
|
|
@@ -7515,8 +8279,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7515
8279
|
var atLeastOneUnmutedOtherMember = (0, _values.default)(_this43.members.membersCollection.getAll()).find(function (member) {
|
|
7516
8280
|
return !member.isSelf && !member.isPairedWithSelf && !member.isAudioMuted;
|
|
7517
8281
|
});
|
|
7518
|
-
|
|
7519
|
-
|
|
8282
|
+
|
|
8283
|
+
// we also ignore any issues while we're waiting in the lobby, as we're not receiving any audio yet
|
|
8284
|
+
if (atLeastOneUnmutedOtherMember && !_this43.isUserUnadmitted) {
|
|
8285
|
+
_this43.mediaProperties.sendMediaIssueMetric('inbound_audio', data.issueSubType, {
|
|
8286
|
+
correlationId: _this43.correlationId,
|
|
8287
|
+
isMultistream: _this43.isMultistream
|
|
8288
|
+
});
|
|
7520
8289
|
_triggerProxy.default.trigger(_this43, {
|
|
7521
8290
|
file: 'meeting/index',
|
|
7522
8291
|
function: 'createStatsAnalyzer'
|
|
@@ -7536,19 +8305,19 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7536
8305
|
}, {
|
|
7537
8306
|
key: "waitForRemoteSDPAnswer",
|
|
7538
8307
|
value: (function () {
|
|
7539
|
-
var _waitForRemoteSDPAnswer = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
8308
|
+
var _waitForRemoteSDPAnswer = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee28() {
|
|
7540
8309
|
var _this44 = this;
|
|
7541
8310
|
var LOG_HEADER, deferSDPAnswer;
|
|
7542
|
-
return _regenerator.default.wrap(function (
|
|
7543
|
-
while (1) switch (
|
|
8311
|
+
return _regenerator.default.wrap(function (_context28) {
|
|
8312
|
+
while (1) switch (_context28.prev = _context28.next) {
|
|
7544
8313
|
case 0:
|
|
7545
8314
|
LOG_HEADER = 'Meeting:index#addMedia():waitForRemoteSDPAnswer -->';
|
|
7546
8315
|
if (this.deferSDPAnswer) {
|
|
7547
|
-
|
|
8316
|
+
_context28.next = 1;
|
|
7548
8317
|
break;
|
|
7549
8318
|
}
|
|
7550
8319
|
_loggerProxy.default.logger.warn("".concat(LOG_HEADER, " offer not created yet"));
|
|
7551
|
-
return
|
|
8320
|
+
return _context28.abrupt("return", _promise.default.reject(new Error('waitForRemoteSDPAnswer() called before local sdp offer created')));
|
|
7552
8321
|
case 1:
|
|
7553
8322
|
deferSDPAnswer = this.deferSDPAnswer;
|
|
7554
8323
|
this.sdpResponseTimer = setTimeout(function () {
|
|
@@ -7574,12 +8343,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7574
8343
|
deferSDPAnswer.reject(error);
|
|
7575
8344
|
}, _constants.ROAP_OFFER_ANSWER_EXCHANGE_TIMEOUT);
|
|
7576
8345
|
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " waiting for REMOTE SDP ANSWER..."));
|
|
7577
|
-
return
|
|
8346
|
+
return _context28.abrupt("return", deferSDPAnswer.promise);
|
|
7578
8347
|
case 2:
|
|
7579
8348
|
case "end":
|
|
7580
|
-
return
|
|
8349
|
+
return _context28.stop();
|
|
7581
8350
|
}
|
|
7582
|
-
},
|
|
8351
|
+
}, _callee28, this);
|
|
7583
8352
|
}));
|
|
7584
8353
|
function waitForRemoteSDPAnswer() {
|
|
7585
8354
|
return _waitForRemoteSDPAnswer.apply(this, arguments);
|
|
@@ -7598,30 +8367,30 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7598
8367
|
}, {
|
|
7599
8368
|
key: "retryEstablishMediaConnectionWithForcedTurnDiscovery",
|
|
7600
8369
|
value: (function () {
|
|
7601
|
-
var _retryEstablishMediaConnectionWithForcedTurnDiscovery = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
7602
|
-
var LOG_HEADER,
|
|
7603
|
-
return _regenerator.default.wrap(function (
|
|
7604
|
-
while (1) switch (
|
|
8370
|
+
var _retryEstablishMediaConnectionWithForcedTurnDiscovery = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee29(remoteMediaManagerConfig, bundlePolicy) {
|
|
8371
|
+
var LOG_HEADER, _t32;
|
|
8372
|
+
return _regenerator.default.wrap(function (_context29) {
|
|
8373
|
+
while (1) switch (_context29.prev = _context29.next) {
|
|
7605
8374
|
case 0:
|
|
7606
8375
|
LOG_HEADER = 'Meeting:index#addMedia():retryEstablishMediaConnectionWithForcedTurnDiscovery -->';
|
|
7607
|
-
|
|
7608
|
-
|
|
8376
|
+
_context29.prev = 1;
|
|
8377
|
+
_context29.next = 2;
|
|
7609
8378
|
return this.establishMediaConnection(remoteMediaManagerConfig, bundlePolicy, true);
|
|
7610
8379
|
case 2:
|
|
7611
|
-
|
|
8380
|
+
_context29.next = 4;
|
|
7612
8381
|
break;
|
|
7613
8382
|
case 3:
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " retry with TURN-TLS failed, media connection unable to connect, "),
|
|
7617
|
-
throw
|
|
8383
|
+
_context29.prev = 3;
|
|
8384
|
+
_t32 = _context29["catch"](1);
|
|
8385
|
+
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " retry with TURN-TLS failed, media connection unable to connect, "), _t32);
|
|
8386
|
+
throw _t32;
|
|
7618
8387
|
case 4:
|
|
7619
8388
|
case "end":
|
|
7620
|
-
return
|
|
8389
|
+
return _context29.stop();
|
|
7621
8390
|
}
|
|
7622
|
-
},
|
|
8391
|
+
}, _callee29, this, [[1, 3]]);
|
|
7623
8392
|
}));
|
|
7624
|
-
function retryEstablishMediaConnectionWithForcedTurnDiscovery(
|
|
8393
|
+
function retryEstablishMediaConnectionWithForcedTurnDiscovery(_x21, _x22) {
|
|
7625
8394
|
return _retryEstablishMediaConnectionWithForcedTurnDiscovery.apply(this, arguments);
|
|
7626
8395
|
}
|
|
7627
8396
|
return retryEstablishMediaConnectionWithForcedTurnDiscovery;
|
|
@@ -7639,14 +8408,14 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7639
8408
|
}, {
|
|
7640
8409
|
key: "retryWithForcedTurnDiscovery",
|
|
7641
8410
|
value: (function () {
|
|
7642
|
-
var _retryWithForcedTurnDiscovery = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
8411
|
+
var _retryWithForcedTurnDiscovery = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee30(remoteMediaManagerConfig, bundlePolicy) {
|
|
7643
8412
|
var LOG_HEADER;
|
|
7644
|
-
return _regenerator.default.wrap(function (
|
|
7645
|
-
while (1) switch (
|
|
8413
|
+
return _regenerator.default.wrap(function (_context30) {
|
|
8414
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
7646
8415
|
case 0:
|
|
7647
8416
|
this.addMediaData.retriedWithTurnServer = true;
|
|
7648
8417
|
LOG_HEADER = 'Meeting:index#addMedia():retryWithForcedTurnDiscovery -->';
|
|
7649
|
-
|
|
8418
|
+
_context30.next = 1;
|
|
7650
8419
|
return this.cleanUpBeforeRetryWithTurnServer();
|
|
7651
8420
|
case 1:
|
|
7652
8421
|
_metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_RETRY, {
|
|
@@ -7656,24 +8425,24 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7656
8425
|
reason: 'forcingTurnTls'
|
|
7657
8426
|
});
|
|
7658
8427
|
if (!(this.state === _constants.MEETING_STATE.STATES.LEFT)) {
|
|
7659
|
-
|
|
8428
|
+
_context30.next = 2;
|
|
7660
8429
|
break;
|
|
7661
8430
|
}
|
|
7662
8431
|
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " meeting state was LEFT after first attempt to establish media connection. Attempting to rejoin. "));
|
|
7663
|
-
|
|
8432
|
+
_context30.next = 2;
|
|
7664
8433
|
return this.join({
|
|
7665
8434
|
rejoin: true
|
|
7666
8435
|
});
|
|
7667
8436
|
case 2:
|
|
7668
|
-
|
|
8437
|
+
_context30.next = 3;
|
|
7669
8438
|
return this.retryEstablishMediaConnectionWithForcedTurnDiscovery(remoteMediaManagerConfig, bundlePolicy);
|
|
7670
8439
|
case 3:
|
|
7671
8440
|
case "end":
|
|
7672
|
-
return
|
|
8441
|
+
return _context30.stop();
|
|
7673
8442
|
}
|
|
7674
|
-
},
|
|
8443
|
+
}, _callee30, this);
|
|
7675
8444
|
}));
|
|
7676
|
-
function retryWithForcedTurnDiscovery(
|
|
8445
|
+
function retryWithForcedTurnDiscovery(_x23, _x24) {
|
|
7677
8446
|
return _retryWithForcedTurnDiscovery.apply(this, arguments);
|
|
7678
8447
|
}
|
|
7679
8448
|
return retryWithForcedTurnDiscovery;
|
|
@@ -7693,32 +8462,46 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7693
8462
|
}, {
|
|
7694
8463
|
key: "handleWaitForMediaConnectionConnectedError",
|
|
7695
8464
|
value: (function () {
|
|
7696
|
-
var _handleWaitForMediaConnectionConnectedError = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
7697
|
-
var LOG_HEADER;
|
|
7698
|
-
return _regenerator.default.wrap(function (
|
|
7699
|
-
while (1) switch (
|
|
8465
|
+
var _handleWaitForMediaConnectionConnectedError = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee31(error, remoteMediaManagerConfig, bundlePolicy) {
|
|
8466
|
+
var LOG_HEADER, _yield$this$mediaProp, connectionType, selectedCandidatePairChanges, numTransports, iceConnected;
|
|
8467
|
+
return _regenerator.default.wrap(function (_context31) {
|
|
8468
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
7700
8469
|
case 0:
|
|
7701
8470
|
LOG_HEADER = 'Meeting:index#addMedia():handleWaitForMediaConnectionConnectedError -->'; // @ts-ignore - config coming from registerPlugin
|
|
7702
8471
|
if (this.turnServerUsed) {
|
|
7703
|
-
|
|
8472
|
+
_context31.next = 2;
|
|
7704
8473
|
break;
|
|
7705
8474
|
}
|
|
7706
8475
|
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " error waiting for media to connect on UDP, TCP, retrying using TURN-TLS, "), error);
|
|
7707
|
-
|
|
8476
|
+
_context31.next = 1;
|
|
7708
8477
|
return this.retryWithForcedTurnDiscovery(remoteMediaManagerConfig, bundlePolicy);
|
|
7709
8478
|
case 1:
|
|
7710
|
-
|
|
8479
|
+
_context31.next = 4;
|
|
7711
8480
|
break;
|
|
7712
8481
|
case 2:
|
|
7713
8482
|
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " error waiting for media to connect using UDP, TCP and TURN-TLS"), error);
|
|
7714
|
-
|
|
8483
|
+
_context31.next = 3;
|
|
8484
|
+
return this.mediaProperties.getCurrentConnectionInfo();
|
|
7715
8485
|
case 3:
|
|
8486
|
+
_yield$this$mediaProp = _context31.sent;
|
|
8487
|
+
connectionType = _yield$this$mediaProp.connectionType;
|
|
8488
|
+
selectedCandidatePairChanges = _yield$this$mediaProp.selectedCandidatePairChanges;
|
|
8489
|
+
numTransports = _yield$this$mediaProp.numTransports;
|
|
8490
|
+
iceConnected = error instanceof _webexErrors.MediaConnectionTimedOutError && error.iceConnected;
|
|
8491
|
+
throw new _webexErrors.AddMediaFailed({
|
|
8492
|
+
cause: error,
|
|
8493
|
+
connectionType: connectionType,
|
|
8494
|
+
selectedCandidatePairChanges: selectedCandidatePairChanges,
|
|
8495
|
+
numTransports: numTransports,
|
|
8496
|
+
iceConnected: iceConnected
|
|
8497
|
+
});
|
|
8498
|
+
case 4:
|
|
7716
8499
|
case "end":
|
|
7717
|
-
return
|
|
8500
|
+
return _context31.stop();
|
|
7718
8501
|
}
|
|
7719
|
-
},
|
|
8502
|
+
}, _callee31, this);
|
|
7720
8503
|
}));
|
|
7721
|
-
function handleWaitForMediaConnectionConnectedError(
|
|
8504
|
+
function handleWaitForMediaConnectionConnectedError(_x25, _x26, _x27) {
|
|
7722
8505
|
return _handleWaitForMediaConnectionConnectedError.apply(this, arguments);
|
|
7723
8506
|
}
|
|
7724
8507
|
return handleWaitForMediaConnectionConnectedError;
|
|
@@ -7734,20 +8517,20 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7734
8517
|
}, {
|
|
7735
8518
|
key: "doTurnDiscovery",
|
|
7736
8519
|
value: (function () {
|
|
7737
|
-
var _doTurnDiscovery = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
8520
|
+
var _doTurnDiscovery = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee32(isReconnecting, isForced) {
|
|
7738
8521
|
var cdl, turnDiscoveryResult;
|
|
7739
|
-
return _regenerator.default.wrap(function (
|
|
7740
|
-
while (1) switch (
|
|
8522
|
+
return _regenerator.default.wrap(function (_context32) {
|
|
8523
|
+
while (1) switch (_context32.prev = _context32.next) {
|
|
7741
8524
|
case 0:
|
|
7742
8525
|
// @ts-ignore
|
|
7743
8526
|
cdl = this.webex.internal.newMetrics.callDiagnosticLatencies; // @ts-ignore
|
|
7744
8527
|
this.webex.internal.newMetrics.submitInternalEvent({
|
|
7745
8528
|
name: 'internal.client.add-media.turn-discovery.start'
|
|
7746
8529
|
});
|
|
7747
|
-
|
|
8530
|
+
_context32.next = 1;
|
|
7748
8531
|
return this.roap.doTurnDiscovery(this, isReconnecting, isForced);
|
|
7749
8532
|
case 1:
|
|
7750
|
-
turnDiscoveryResult =
|
|
8533
|
+
turnDiscoveryResult = _context32.sent;
|
|
7751
8534
|
this.turnDiscoverySkippedReason = turnDiscoveryResult === null || turnDiscoveryResult === void 0 ? void 0 : turnDiscoveryResult.turnDiscoverySkippedReason;
|
|
7752
8535
|
this.turnServerUsed = !this.turnDiscoverySkippedReason;
|
|
7753
8536
|
|
|
@@ -7763,14 +8546,14 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7763
8546
|
retriedWithTurnServer: this.addMediaData.retriedWithTurnServer
|
|
7764
8547
|
});
|
|
7765
8548
|
}
|
|
7766
|
-
return
|
|
8549
|
+
return _context32.abrupt("return", turnDiscoveryResult);
|
|
7767
8550
|
case 2:
|
|
7768
8551
|
case "end":
|
|
7769
|
-
return
|
|
8552
|
+
return _context32.stop();
|
|
7770
8553
|
}
|
|
7771
|
-
},
|
|
8554
|
+
}, _callee32, this);
|
|
7772
8555
|
}));
|
|
7773
|
-
function doTurnDiscovery(
|
|
8556
|
+
function doTurnDiscovery(_x28, _x29) {
|
|
7774
8557
|
return _doTurnDiscovery.apply(this, arguments);
|
|
7775
8558
|
}
|
|
7776
8559
|
return doTurnDiscovery;
|
|
@@ -7789,35 +8572,40 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7789
8572
|
}, {
|
|
7790
8573
|
key: "establishMediaConnection",
|
|
7791
8574
|
value: (function () {
|
|
7792
|
-
var _establishMediaConnection = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
8575
|
+
var _establishMediaConnection = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee33(remoteMediaManagerConfig, bundlePolicy, isForced, turnServerInfo) {
|
|
7793
8576
|
var _this$locusMediaReque;
|
|
7794
|
-
var LOG_HEADER, isReconnecting, _yield$this$doTurnDis,
|
|
7795
|
-
return _regenerator.default.wrap(function (
|
|
7796
|
-
while (1) switch (
|
|
8577
|
+
var LOG_HEADER, isReconnecting, _turnServerInfo$urls, _yield$this$doTurnDis, mediaConnection, _t33, _t34;
|
|
8578
|
+
return _regenerator.default.wrap(function (_context33) {
|
|
8579
|
+
while (1) switch (_context33.prev = _context33.next) {
|
|
7797
8580
|
case 0:
|
|
7798
8581
|
LOG_HEADER = 'Meeting:index#addMedia():establishMediaConnection -->';
|
|
7799
8582
|
isReconnecting = this.isMoveToInProgress || !!((_this$locusMediaReque = this.locusMediaRequest) !== null && _this$locusMediaReque !== void 0 && _this$locusMediaReque.isConfluenceCreated()); // We are forcing turn discovery if the case is moveTo and a turn server was used already
|
|
7800
8583
|
if (this.isMoveToInProgress && this.turnServerUsed) {
|
|
7801
8584
|
isForced = true;
|
|
7802
8585
|
}
|
|
7803
|
-
|
|
8586
|
+
_context33.prev = 1;
|
|
7804
8587
|
if (turnServerInfo) {
|
|
7805
|
-
|
|
8588
|
+
_context33.next = 3;
|
|
7806
8589
|
break;
|
|
7807
8590
|
}
|
|
7808
|
-
|
|
8591
|
+
_context33.next = 2;
|
|
7809
8592
|
return this.doTurnDiscovery(isReconnecting, isForced);
|
|
7810
8593
|
case 2:
|
|
7811
|
-
_yield$this$doTurnDis =
|
|
8594
|
+
_yield$this$doTurnDis = _context33.sent;
|
|
7812
8595
|
turnServerInfo = _yield$this$doTurnDis.turnServerInfo;
|
|
7813
8596
|
case 3:
|
|
7814
|
-
|
|
7815
|
-
|
|
8597
|
+
if ((!turnServerInfo || !((_turnServerInfo$urls = turnServerInfo.urls) !== null && _turnServerInfo$urls !== void 0 && _turnServerInfo$urls.length)) && this.addMediaData.iceTransportPolicy === 'relay') {
|
|
8598
|
+
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " cannot do iceTransportPolicy=relay, because there is no turn server info available"));
|
|
8599
|
+
// drop the forced relay policy and use the default, because we don't have a TURN server
|
|
8600
|
+
this.addMediaData.iceTransportPolicy = undefined;
|
|
8601
|
+
}
|
|
8602
|
+
_context33.next = 4;
|
|
8603
|
+
return this.createMediaConnection(turnServerInfo, bundlePolicy, this.addMediaData.iceTransportPolicy);
|
|
7816
8604
|
case 4:
|
|
7817
|
-
|
|
8605
|
+
mediaConnection = _context33.sent;
|
|
7818
8606
|
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " media connection created this.isMultistream=").concat(this.isMultistream));
|
|
7819
8607
|
if (!this.isMultistream) {
|
|
7820
|
-
|
|
8608
|
+
_context33.next = 5;
|
|
7821
8609
|
break;
|
|
7822
8610
|
}
|
|
7823
8611
|
this.remoteMediaManager = new _remoteMediaManager.RemoteMediaManager(this.receiveSlotManager, this.mediaRequestManagers, remoteMediaManagerConfig);
|
|
@@ -7825,42 +8613,42 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7825
8613
|
this.forwardEvent(this.remoteMediaManager, _remoteMediaManager.Event.InterpretationAudioCreated, _constants.EVENT_TRIGGERS.REMOTE_MEDIA_INTERPRETATION_AUDIO_CREATED);
|
|
7826
8614
|
this.forwardEvent(this.remoteMediaManager, _remoteMediaManager.Event.ScreenShareAudioCreated, _constants.EVENT_TRIGGERS.REMOTE_MEDIA_SCREEN_SHARE_AUDIO_CREATED);
|
|
7827
8615
|
this.forwardEvent(this.remoteMediaManager, _remoteMediaManager.Event.VideoLayoutChanged, _constants.EVENT_TRIGGERS.REMOTE_MEDIA_VIDEO_LAYOUT_CHANGED);
|
|
7828
|
-
|
|
8616
|
+
_context33.next = 5;
|
|
7829
8617
|
return this.remoteMediaManager.start();
|
|
7830
8618
|
case 5:
|
|
7831
|
-
|
|
7832
|
-
return
|
|
8619
|
+
_context33.next = 6;
|
|
8620
|
+
return mediaConnection.initiateOffer();
|
|
7833
8621
|
case 6:
|
|
7834
|
-
|
|
8622
|
+
_context33.next = 7;
|
|
7835
8623
|
return this.waitForRemoteSDPAnswer();
|
|
7836
8624
|
case 7:
|
|
7837
8625
|
this.handleMediaLogging(this.mediaProperties);
|
|
7838
|
-
|
|
8626
|
+
_context33.next = 9;
|
|
7839
8627
|
break;
|
|
7840
8628
|
case 8:
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " error establishing media connection, "),
|
|
7844
|
-
throw
|
|
8629
|
+
_context33.prev = 8;
|
|
8630
|
+
_t33 = _context33["catch"](1);
|
|
8631
|
+
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " error establishing media connection, "), _t33);
|
|
8632
|
+
throw _t33;
|
|
7845
8633
|
case 9:
|
|
7846
|
-
|
|
7847
|
-
|
|
8634
|
+
_context33.prev = 9;
|
|
8635
|
+
_context33.next = 10;
|
|
7848
8636
|
return this.waitForMediaConnectionConnected();
|
|
7849
8637
|
case 10:
|
|
7850
|
-
|
|
8638
|
+
_context33.next = 12;
|
|
7851
8639
|
break;
|
|
7852
8640
|
case 11:
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
return this.handleWaitForMediaConnectionConnectedError(
|
|
8641
|
+
_context33.prev = 11;
|
|
8642
|
+
_t34 = _context33["catch"](9);
|
|
8643
|
+
_context33.next = 12;
|
|
8644
|
+
return this.handleWaitForMediaConnectionConnectedError(_t34, remoteMediaManagerConfig, bundlePolicy);
|
|
7857
8645
|
case 12:
|
|
7858
8646
|
case "end":
|
|
7859
|
-
return
|
|
8647
|
+
return _context33.stop();
|
|
7860
8648
|
}
|
|
7861
|
-
},
|
|
8649
|
+
}, _callee33, this, [[1, 8], [9, 11]]);
|
|
7862
8650
|
}));
|
|
7863
|
-
function establishMediaConnection(
|
|
8651
|
+
function establishMediaConnection(_x30, _x31, _x32, _x33) {
|
|
7864
8652
|
return _establishMediaConnection.apply(this, arguments);
|
|
7865
8653
|
}
|
|
7866
8654
|
return establishMediaConnection;
|
|
@@ -7875,16 +8663,16 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7875
8663
|
}, {
|
|
7876
8664
|
key: "cleanUpOnAddMediaFailure",
|
|
7877
8665
|
value: (function () {
|
|
7878
|
-
var _cleanUpOnAddMediaFailure = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
8666
|
+
var _cleanUpOnAddMediaFailure = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee34() {
|
|
7879
8667
|
var _this$networkQualityM, _this$statsMonitor;
|
|
7880
|
-
return _regenerator.default.wrap(function (
|
|
7881
|
-
while (1) switch (
|
|
8668
|
+
return _regenerator.default.wrap(function (_context34) {
|
|
8669
|
+
while (1) switch (_context34.prev = _context34.next) {
|
|
7882
8670
|
case 0:
|
|
7883
8671
|
if (!this.statsAnalyzer) {
|
|
7884
|
-
|
|
8672
|
+
_context34.next = 1;
|
|
7885
8673
|
break;
|
|
7886
8674
|
}
|
|
7887
|
-
|
|
8675
|
+
_context34.next = 1;
|
|
7888
8676
|
return this.statsAnalyzer.stopAnalyzer();
|
|
7889
8677
|
case 1:
|
|
7890
8678
|
this.statsAnalyzer = null;
|
|
@@ -7895,7 +8683,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7895
8683
|
|
|
7896
8684
|
// when media fails, we want to upload a webrtc dump to see whats going on
|
|
7897
8685
|
// this function is async, but returns once the stats have been gathered
|
|
7898
|
-
|
|
8686
|
+
_context34.next = 2;
|
|
7899
8687
|
return this.forceSendStatsReport({
|
|
7900
8688
|
callFrom: 'addMedia'
|
|
7901
8689
|
});
|
|
@@ -7906,9 +8694,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7906
8694
|
}
|
|
7907
8695
|
case 3:
|
|
7908
8696
|
case "end":
|
|
7909
|
-
return
|
|
8697
|
+
return _context34.stop();
|
|
7910
8698
|
}
|
|
7911
|
-
},
|
|
8699
|
+
}, _callee34, this);
|
|
7912
8700
|
}));
|
|
7913
8701
|
function cleanUpOnAddMediaFailure() {
|
|
7914
8702
|
return _cleanUpOnAddMediaFailure.apply(this, arguments);
|
|
@@ -7926,16 +8714,16 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7926
8714
|
}, {
|
|
7927
8715
|
key: "downgradeFromMultistreamToTranscoded",
|
|
7928
8716
|
value: (function () {
|
|
7929
|
-
var _downgradeFromMultistreamToTranscoded = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
8717
|
+
var _downgradeFromMultistreamToTranscoded = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee35() {
|
|
7930
8718
|
var _this$networkQualityM2, _this$statsMonitor2, _this$locusMediaReque2;
|
|
7931
|
-
return _regenerator.default.wrap(function (
|
|
7932
|
-
while (1) switch (
|
|
8719
|
+
return _regenerator.default.wrap(function (_context35) {
|
|
8720
|
+
while (1) switch (_context35.prev = _context35.next) {
|
|
7933
8721
|
case 0:
|
|
7934
8722
|
if (!this.statsAnalyzer) {
|
|
7935
|
-
|
|
8723
|
+
_context35.next = 1;
|
|
7936
8724
|
break;
|
|
7937
8725
|
}
|
|
7938
|
-
|
|
8726
|
+
_context35.next = 1;
|
|
7939
8727
|
return this.statsAnalyzer.stopAnalyzer();
|
|
7940
8728
|
case 1:
|
|
7941
8729
|
this.statsAnalyzer = null;
|
|
@@ -7944,6 +8732,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7944
8732
|
(_this$statsMonitor2 = this.statsMonitor) === null || _this$statsMonitor2 === void 0 ? void 0 : _this$statsMonitor2.removeAllListeners();
|
|
7945
8733
|
this.statsMonitor = null;
|
|
7946
8734
|
this.isMultistream = false;
|
|
8735
|
+
|
|
8736
|
+
// reset iceTransportPolicy, because it's only applied for multistream media connections
|
|
8737
|
+
this.addMediaData.iceTransportPolicy = undefined;
|
|
7947
8738
|
if (this.mediaProperties.webrtcMediaConnection) {
|
|
7948
8739
|
// close peer connection, but don't reset mute state information, because we will want to use it on the retry
|
|
7949
8740
|
this.closePeerConnections(false);
|
|
@@ -7953,9 +8744,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7953
8744
|
this.createStatsAnalyzer();
|
|
7954
8745
|
case 2:
|
|
7955
8746
|
case "end":
|
|
7956
|
-
return
|
|
8747
|
+
return _context35.stop();
|
|
7957
8748
|
}
|
|
7958
|
-
},
|
|
8749
|
+
}, _callee35, this);
|
|
7959
8750
|
}));
|
|
7960
8751
|
function downgradeFromMultistreamToTranscoded() {
|
|
7961
8752
|
return _downgradeFromMultistreamToTranscoded.apply(this, arguments);
|
|
@@ -7973,11 +8764,11 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7973
8764
|
}, {
|
|
7974
8765
|
key: "cleanUpBeforeRetryWithTurnServer",
|
|
7975
8766
|
value: (function () {
|
|
7976
|
-
var _cleanUpBeforeRetryWithTurnServer = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
7977
|
-
return _regenerator.default.wrap(function (
|
|
7978
|
-
while (1) switch (
|
|
8767
|
+
var _cleanUpBeforeRetryWithTurnServer = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee36() {
|
|
8768
|
+
return _regenerator.default.wrap(function (_context36) {
|
|
8769
|
+
while (1) switch (_context36.prev = _context36.next) {
|
|
7979
8770
|
case 0:
|
|
7980
|
-
|
|
8771
|
+
_context36.next = 1;
|
|
7981
8772
|
return this.forceSendStatsReport({
|
|
7982
8773
|
callFrom: 'cleanUpBeforeRetryWithTurnServer'
|
|
7983
8774
|
});
|
|
@@ -7997,9 +8788,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7997
8788
|
}
|
|
7998
8789
|
case 2:
|
|
7999
8790
|
case "end":
|
|
8000
|
-
return
|
|
8791
|
+
return _context36.stop();
|
|
8001
8792
|
}
|
|
8002
|
-
},
|
|
8793
|
+
}, _callee36, this);
|
|
8003
8794
|
}));
|
|
8004
8795
|
function cleanUpBeforeRetryWithTurnServer() {
|
|
8005
8796
|
return _cleanUpBeforeRetryWithTurnServer.apply(this, arguments);
|
|
@@ -8009,35 +8800,35 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8009
8800
|
}, {
|
|
8010
8801
|
key: "cleanUpBeforeReconnection",
|
|
8011
8802
|
value: function () {
|
|
8012
|
-
var _cleanUpBeforeReconnection = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
8013
|
-
var
|
|
8014
|
-
return _regenerator.default.wrap(function (
|
|
8015
|
-
while (1) switch (
|
|
8803
|
+
var _cleanUpBeforeReconnection = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee37() {
|
|
8804
|
+
var _t35;
|
|
8805
|
+
return _regenerator.default.wrap(function (_context37) {
|
|
8806
|
+
while (1) switch (_context37.prev = _context37.next) {
|
|
8016
8807
|
case 0:
|
|
8017
|
-
|
|
8018
|
-
|
|
8808
|
+
_context37.prev = 0;
|
|
8809
|
+
_context37.next = 1;
|
|
8019
8810
|
return this.forceSendStatsReport({
|
|
8020
8811
|
callFrom: 'cleanUpBeforeReconnection'
|
|
8021
8812
|
});
|
|
8022
8813
|
case 1:
|
|
8023
8814
|
if (!this.statsAnalyzer) {
|
|
8024
|
-
|
|
8815
|
+
_context37.next = 2;
|
|
8025
8816
|
break;
|
|
8026
8817
|
}
|
|
8027
|
-
|
|
8818
|
+
_context37.next = 2;
|
|
8028
8819
|
return this.statsAnalyzer.stopAnalyzer();
|
|
8029
8820
|
case 2:
|
|
8030
|
-
|
|
8821
|
+
_context37.next = 4;
|
|
8031
8822
|
break;
|
|
8032
8823
|
case 3:
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
_loggerProxy.default.logger.error('Meeting:index#cleanUpBeforeReconnection --> Error during cleanup: ',
|
|
8824
|
+
_context37.prev = 3;
|
|
8825
|
+
_t35 = _context37["catch"](0);
|
|
8826
|
+
_loggerProxy.default.logger.error('Meeting:index#cleanUpBeforeReconnection --> Error during cleanup: ', _t35);
|
|
8036
8827
|
case 4:
|
|
8037
8828
|
case "end":
|
|
8038
|
-
return
|
|
8829
|
+
return _context37.stop();
|
|
8039
8830
|
}
|
|
8040
|
-
},
|
|
8831
|
+
}, _callee37, this, [[0, 3]]);
|
|
8041
8832
|
}));
|
|
8042
8833
|
function cleanUpBeforeReconnection() {
|
|
8043
8834
|
return _cleanUpBeforeReconnection.apply(this, arguments);
|
|
@@ -8053,7 +8844,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8053
8844
|
}, {
|
|
8054
8845
|
key: "setupLocusMediaRequest",
|
|
8055
8846
|
value: function setupLocusMediaRequest() {
|
|
8056
|
-
var _this$webex$meetings$2,
|
|
8847
|
+
var _this$webex$meetings$2,
|
|
8848
|
+
_this$webex$meetings$3,
|
|
8849
|
+
_this45 = this;
|
|
8057
8850
|
this.locusMediaRequest = new _locusMediaRequest.LocusMediaRequest({
|
|
8058
8851
|
correlationId: this.correlationId,
|
|
8059
8852
|
meetingId: this.id,
|
|
@@ -8066,13 +8859,50 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8066
8859
|
// @ts-ignore
|
|
8067
8860
|
regionCode: (_this$webex$meetings$3 = this.webex.meetings.geoHintInfo) === null || _this$webex$meetings$3 === void 0 ? void 0 : _this$webex$meetings$3.regionCode
|
|
8068
8861
|
},
|
|
8069
|
-
preferTranscoding: !this.isMultistream
|
|
8862
|
+
preferTranscoding: !this.isMultistream,
|
|
8863
|
+
getCurrentSelfUrl: function getCurrentSelfUrl() {
|
|
8864
|
+
return _this45.selfUrl;
|
|
8865
|
+
},
|
|
8866
|
+
waitForSelfUrlChange: function waitForSelfUrlChange() {
|
|
8867
|
+
return _this45.waitForSelfUrlChange();
|
|
8868
|
+
}
|
|
8070
8869
|
}, {
|
|
8071
8870
|
// @ts-ignore
|
|
8072
8871
|
parent: this.webex
|
|
8073
8872
|
});
|
|
8074
8873
|
}
|
|
8075
8874
|
|
|
8875
|
+
/**
|
|
8876
|
+
* Waits for LocusInfo to update meeting.selfUrl, with a timeout fallback.
|
|
8877
|
+
* @returns {Promise<void>}
|
|
8878
|
+
* @private
|
|
8879
|
+
* @memberof Meeting
|
|
8880
|
+
*/
|
|
8881
|
+
}, {
|
|
8882
|
+
key: "waitForSelfUrlChange",
|
|
8883
|
+
value: function waitForSelfUrlChange() {
|
|
8884
|
+
var _this46 = this;
|
|
8885
|
+
if (this.joinWithMediaRetryInfo.retryCount > 0) {
|
|
8886
|
+
/* During joinWithMedia() retries we can get 403/409 from Locus and it doesn't mean
|
|
8887
|
+
* that the selfUrl will change, it is usually caused by Locus dropping us as a result of
|
|
8888
|
+
* media connection failure during joinWithMedia's earlier media connection attempt,
|
|
8889
|
+
* so we don't want to wait for selfUrl change as this would only slow down the join process. */
|
|
8890
|
+
_loggerProxy.default.logger.info('Meeting:index#waitForSelfUrlChange --> joinWithMedia retry in progress, will not wait for selfUrl change');
|
|
8891
|
+
return _promise.default.resolve();
|
|
8892
|
+
}
|
|
8893
|
+
if (!this.promisesWaitingForPropUpdate.selfUrl) {
|
|
8894
|
+
var pendingSelfUrlUpdate = new _common.Defer();
|
|
8895
|
+
this.promisesWaitingForPropUpdate.selfUrl = pendingSelfUrlUpdate;
|
|
8896
|
+
setTimeout(function () {
|
|
8897
|
+
if (_this46.promisesWaitingForPropUpdate.selfUrl === pendingSelfUrlUpdate) {
|
|
8898
|
+
delete _this46.promisesWaitingForPropUpdate.selfUrl;
|
|
8899
|
+
pendingSelfUrlUpdate.resolve();
|
|
8900
|
+
}
|
|
8901
|
+
}, 5000);
|
|
8902
|
+
}
|
|
8903
|
+
return this.promisesWaitingForPropUpdate.selfUrl.promise;
|
|
8904
|
+
}
|
|
8905
|
+
|
|
8076
8906
|
/**
|
|
8077
8907
|
* Creates a media connection to the server. Media connection is required for sending or receiving any audio/video.
|
|
8078
8908
|
*
|
|
@@ -8084,19 +8914,20 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8084
8914
|
}, {
|
|
8085
8915
|
key: "addMedia",
|
|
8086
8916
|
value: function addMedia() {
|
|
8087
|
-
var
|
|
8917
|
+
var _this47 = this;
|
|
8088
8918
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8089
8919
|
return this.addMediaInternal(function () {
|
|
8090
|
-
return
|
|
8091
|
-
},
|
|
8920
|
+
return _this47.turnServerUsed ? 'JOIN_MEETING_FINAL' : 'JOIN_MEETING_RETRY';
|
|
8921
|
+
}, false, undefined /* turnServerInfo - it will be fetched via doTurnDiscovery() */, undefined /* iceTransportPolicy - we're relying on the default value */, options);
|
|
8092
8922
|
}
|
|
8093
8923
|
|
|
8094
8924
|
/**
|
|
8095
8925
|
* Internal version of addMedia() with some more arguments for finer control of its behavior
|
|
8096
8926
|
*
|
|
8097
8927
|
* @param {Function} icePhaseCallback - callback to determine the icePhase for CA "client.ice.end" failure events
|
|
8098
|
-
* @param {TurnServerInfo} turnServerInfo - TURN server information
|
|
8099
8928
|
* @param {boolean} forceTurnDiscovery - if true, TURN discovery will be done
|
|
8929
|
+
* @param {TurnServerInfo} turnServerInfo - TURN server information
|
|
8930
|
+
* @param {RTCIceTransportPolicy} [iceTransportPolicy] - ICE transport policy override
|
|
8100
8931
|
* @param {AddMediaOptions} options - same as options of the public addMedia() method
|
|
8101
8932
|
* @returns {Promise<void>}
|
|
8102
8933
|
* @protected
|
|
@@ -8105,9 +8936,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8105
8936
|
}, {
|
|
8106
8937
|
key: "addMediaInternal",
|
|
8107
8938
|
value: (function () {
|
|
8108
|
-
var _addMediaInternal = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
8939
|
+
var _addMediaInternal = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee38(icePhaseCallback, forceTurnDiscovery, turnServerInfo, iceTransportPolicy) {
|
|
8109
8940
|
var options,
|
|
8110
8941
|
LOG_HEADER,
|
|
8942
|
+
optionsForLogging,
|
|
8111
8943
|
localStreams,
|
|
8112
8944
|
_options$audioEnabled,
|
|
8113
8945
|
audioEnabled,
|
|
@@ -8134,7 +8966,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8134
8966
|
receiveAudio,
|
|
8135
8967
|
ipver,
|
|
8136
8968
|
_this$remoteMediaMana,
|
|
8137
|
-
_yield$this$
|
|
8969
|
+
_yield$this$mediaProp2,
|
|
8138
8970
|
connectionType,
|
|
8139
8971
|
ipVersion,
|
|
8140
8972
|
selectedCandidatePairChanges,
|
|
@@ -8163,30 +8995,36 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8163
8995
|
_this$mediaProperties33,
|
|
8164
8996
|
_this$mediaProperties34,
|
|
8165
8997
|
_reachabilityMetrics,
|
|
8166
|
-
|
|
8998
|
+
_ref45,
|
|
8999
|
+
_connectionType,
|
|
8167
9000
|
_selectedCandidatePairChanges,
|
|
8168
9001
|
_numTransports,
|
|
8169
9002
|
_iceCandidateErrors,
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
9003
|
+
_args38 = arguments,
|
|
9004
|
+
_t36,
|
|
9005
|
+
_t37,
|
|
9006
|
+
_t38;
|
|
9007
|
+
return _regenerator.default.wrap(function (_context38) {
|
|
9008
|
+
while (1) switch (_context38.prev = _context38.next) {
|
|
8175
9009
|
case 0:
|
|
8176
|
-
options =
|
|
9010
|
+
options = _args38.length > 4 && _args38[4] !== undefined ? _args38[4] : {};
|
|
8177
9011
|
this.addMediaData.retriedWithTurnServer = false;
|
|
8178
9012
|
this.addMediaData.icePhaseCallback = icePhaseCallback;
|
|
9013
|
+
this.addMediaData.iceTransportPolicy = iceTransportPolicy;
|
|
8179
9014
|
this.hasMediaConnectionConnectedAtLeastOnce = false;
|
|
8180
9015
|
LOG_HEADER = 'Meeting:index#addMedia -->';
|
|
8181
|
-
|
|
9016
|
+
optionsForLogging = _objectSpread(_objectSpread({}, options), {}, {
|
|
9017
|
+
remoteMediaManagerConfig: (0, _remoteMediaManager.getRemoteMediaManagerConfigForLogging)(options.remoteMediaManagerConfig)
|
|
9018
|
+
});
|
|
9019
|
+
_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));
|
|
8182
9020
|
if (!(options.allowMediaInLobby !== true && this.meetingState !== _constants.FULL_STATE.ACTIVE)) {
|
|
8183
|
-
|
|
9021
|
+
_context38.next = 1;
|
|
8184
9022
|
break;
|
|
8185
9023
|
}
|
|
8186
9024
|
throw new _webexErrors.MeetingNotActiveError();
|
|
8187
9025
|
case 1:
|
|
8188
9026
|
if (!_util2.default.isUserInLeftState(this.locusInfo)) {
|
|
8189
|
-
|
|
9027
|
+
_context38.next = 2;
|
|
8190
9028
|
break;
|
|
8191
9029
|
}
|
|
8192
9030
|
throw new _webexErrors.UserNotJoinedError();
|
|
@@ -8203,7 +9041,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8203
9041
|
ipver = _util2.default.getIpVersion(this.webex); // used just for metrics
|
|
8204
9042
|
// If the user is unjoined or guest waiting in lobby dont allow the user to addMedia
|
|
8205
9043
|
if (!(this.isUserUnadmitted && !this.wirelessShare && !this.allowMediaInLobby)) {
|
|
8206
|
-
|
|
9044
|
+
_context38.next = 3;
|
|
8207
9045
|
break;
|
|
8208
9046
|
}
|
|
8209
9047
|
throw new _webexErrors.UserInLobbyError();
|
|
@@ -8247,62 +9085,62 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8247
9085
|
this.audio = (0, _muteState.createMuteState)(_constants.AUDIO, this, audioEnabled);
|
|
8248
9086
|
this.video = (0, _muteState.createMuteState)(_constants.VIDEO, this, videoEnabled);
|
|
8249
9087
|
this.brbState = (0, _brbState.createBrbState)(this, false);
|
|
8250
|
-
|
|
9088
|
+
_context38.prev = 4;
|
|
8251
9089
|
if (!(allowPublishMediaInLobby || !this.isUserUnadmitted)) {
|
|
8252
|
-
|
|
9090
|
+
_context38.next = 5;
|
|
8253
9091
|
break;
|
|
8254
9092
|
}
|
|
8255
|
-
|
|
9093
|
+
_context38.next = 5;
|
|
8256
9094
|
return this.setUpLocalStreamReferences(localStreams);
|
|
8257
9095
|
case 5:
|
|
8258
9096
|
this.setMercuryListener();
|
|
8259
9097
|
this.createStatsAnalyzer();
|
|
8260
|
-
|
|
8261
|
-
|
|
9098
|
+
_context38.prev = 6;
|
|
9099
|
+
_context38.next = 7;
|
|
8262
9100
|
return this.establishMediaConnection(remoteMediaManagerConfig, bundlePolicy, forceTurnDiscovery, turnServerInfo);
|
|
8263
9101
|
case 7:
|
|
8264
|
-
|
|
9102
|
+
_context38.next = 12;
|
|
8265
9103
|
break;
|
|
8266
9104
|
case 8:
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
if (!(
|
|
8270
|
-
|
|
9105
|
+
_context38.prev = 8;
|
|
9106
|
+
_t36 = _context38["catch"](6);
|
|
9107
|
+
if (!(_t36 instanceof _multistreamNotSupportedError.default)) {
|
|
9108
|
+
_context38.next = 11;
|
|
8271
9109
|
break;
|
|
8272
9110
|
}
|
|
8273
9111
|
_loggerProxy.default.logger.warn("".concat(LOG_HEADER, " we asked for multistream backend (Homer), but got transcoded backend, recreating media connection..."));
|
|
8274
|
-
|
|
9112
|
+
_context38.next = 9;
|
|
8275
9113
|
return this.downgradeFromMultistreamToTranscoded();
|
|
8276
9114
|
case 9:
|
|
8277
|
-
|
|
8278
|
-
return this.establishMediaConnection(remoteMediaManagerConfig, bundlePolicy, true
|
|
9115
|
+
_context38.next = 10;
|
|
9116
|
+
return this.establishMediaConnection(remoteMediaManagerConfig, bundlePolicy, true);
|
|
8279
9117
|
case 10:
|
|
8280
|
-
|
|
9118
|
+
_context38.next = 12;
|
|
8281
9119
|
break;
|
|
8282
9120
|
case 11:
|
|
8283
|
-
throw
|
|
9121
|
+
throw _t36;
|
|
8284
9122
|
case 12:
|
|
8285
9123
|
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " media connected, finalizing..."));
|
|
8286
9124
|
if (!this.mediaProperties.hasLocalShareStream()) {
|
|
8287
|
-
|
|
9125
|
+
_context38.next = 13;
|
|
8288
9126
|
break;
|
|
8289
9127
|
}
|
|
8290
|
-
|
|
9128
|
+
_context38.next = 13;
|
|
8291
9129
|
return this.enqueueScreenShareFloorRequest();
|
|
8292
9130
|
case 13:
|
|
8293
|
-
|
|
9131
|
+
_context38.next = 14;
|
|
8294
9132
|
return this.mediaProperties.getCurrentConnectionInfo();
|
|
8295
9133
|
case 14:
|
|
8296
|
-
_yield$this$
|
|
8297
|
-
connectionType = _yield$this$
|
|
8298
|
-
ipVersion = _yield$this$
|
|
8299
|
-
selectedCandidatePairChanges = _yield$this$
|
|
8300
|
-
numTransports = _yield$this$
|
|
9134
|
+
_yield$this$mediaProp2 = _context38.sent;
|
|
9135
|
+
connectionType = _yield$this$mediaProp2.connectionType;
|
|
9136
|
+
ipVersion = _yield$this$mediaProp2.ipVersion;
|
|
9137
|
+
selectedCandidatePairChanges = _yield$this$mediaProp2.selectedCandidatePairChanges;
|
|
9138
|
+
numTransports = _yield$this$mediaProp2.numTransports;
|
|
8301
9139
|
iceCandidateErrors = Object.fromEntries(this.iceCandidateErrors);
|
|
8302
|
-
|
|
9140
|
+
_context38.next = 15;
|
|
8303
9141
|
return this.getMediaReachabilityMetricFields();
|
|
8304
9142
|
case 15:
|
|
8305
|
-
reachabilityMetrics =
|
|
9143
|
+
reachabilityMetrics = _context38.sent;
|
|
8306
9144
|
_metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_SUCCESS, _objectSpread(_objectSpread(_objectSpread({
|
|
8307
9145
|
correlation_id: this.correlationId,
|
|
8308
9146
|
locus_id: this.locusUrl.split('/').pop(),
|
|
@@ -8313,7 +9151,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8313
9151
|
numTransports: numTransports,
|
|
8314
9152
|
isMultistream: this.isMultistream,
|
|
8315
9153
|
retriedWithTurnServer: this.addMediaData.retriedWithTurnServer,
|
|
8316
|
-
isJoinWithMediaRetry: this.joinWithMediaRetryInfo.
|
|
9154
|
+
isJoinWithMediaRetry: this.joinWithMediaRetryInfo.retryCount > 0,
|
|
9155
|
+
iceTransportPolicy: this.addMediaData.iceTransportPolicy || 'all'
|
|
8317
9156
|
}, reachabilityMetrics), iceCandidateErrors), {}, {
|
|
8318
9157
|
iceCandidatesCount: this.iceCandidatesCount
|
|
8319
9158
|
}));
|
|
@@ -8332,70 +9171,83 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8332
9171
|
// We can log ReceiveSlot SSRCs only after the SDP exchange, so doing it here:
|
|
8333
9172
|
(_this$remoteMediaMana = this.remoteMediaManager) === null || _this$remoteMediaMana === void 0 ? void 0 : _this$remoteMediaMana.logAllReceiveSlots();
|
|
8334
9173
|
this.startPeriodicLogUpload();
|
|
8335
|
-
|
|
9174
|
+
_context38.next = 22;
|
|
8336
9175
|
break;
|
|
8337
9176
|
case 16:
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " failed to establish media connection: "),
|
|
9177
|
+
_context38.prev = 16;
|
|
9178
|
+
_t37 = _context38["catch"](4);
|
|
9179
|
+
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " failed to establish media connection: "), _t37);
|
|
8341
9180
|
|
|
8342
9181
|
// @ts-ignore
|
|
8343
|
-
|
|
9182
|
+
_context38.next = 17;
|
|
8344
9183
|
return this.getMediaReachabilityMetricFields();
|
|
8345
9184
|
case 17:
|
|
8346
|
-
_reachabilityMetrics =
|
|
8347
|
-
|
|
8348
|
-
|
|
9185
|
+
_reachabilityMetrics = _context38.sent;
|
|
9186
|
+
if (!(_t37 instanceof _webexErrors.AddMediaFailed)) {
|
|
9187
|
+
_context38.next = 18;
|
|
9188
|
+
break;
|
|
9189
|
+
}
|
|
9190
|
+
_t38 = _t37;
|
|
9191
|
+
_context38.next = 20;
|
|
9192
|
+
break;
|
|
8349
9193
|
case 18:
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
9194
|
+
_context38.next = 19;
|
|
9195
|
+
return this.mediaProperties.getCurrentConnectionInfo();
|
|
9196
|
+
case 19:
|
|
9197
|
+
_t38 = _context38.sent;
|
|
9198
|
+
case 20:
|
|
9199
|
+
_ref45 = _t38;
|
|
9200
|
+
_connectionType = _ref45.connectionType;
|
|
9201
|
+
_selectedCandidatePairChanges = _ref45.selectedCandidatePairChanges;
|
|
9202
|
+
_numTransports = _ref45.numTransports;
|
|
8353
9203
|
_iceCandidateErrors = Object.fromEntries(this.iceCandidateErrors);
|
|
8354
9204
|
_metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_FAILURE, _objectSpread(_objectSpread(_objectSpread({
|
|
8355
9205
|
correlation_id: this.correlationId,
|
|
8356
9206
|
locus_id: this.locusUrl.split('/').pop(),
|
|
8357
|
-
reason:
|
|
8358
|
-
stack:
|
|
8359
|
-
code:
|
|
9207
|
+
reason: _t37.message,
|
|
9208
|
+
stack: _t37.stack,
|
|
9209
|
+
code: _t37.code,
|
|
8360
9210
|
selectedCandidatePairChanges: _selectedCandidatePairChanges,
|
|
8361
9211
|
numTransports: _numTransports,
|
|
8362
9212
|
turnDiscoverySkippedReason: this.turnDiscoverySkippedReason,
|
|
8363
9213
|
turnServerUsed: this.turnServerUsed,
|
|
8364
9214
|
retriedWithTurnServer: this.addMediaData.retriedWithTurnServer,
|
|
8365
9215
|
isMultistream: this.isMultistream,
|
|
8366
|
-
isJoinWithMediaRetry: this.joinWithMediaRetryInfo.
|
|
9216
|
+
isJoinWithMediaRetry: this.joinWithMediaRetryInfo.retryCount > 0,
|
|
9217
|
+
iceTransportPolicy: this.addMediaData.iceTransportPolicy || 'all',
|
|
8367
9218
|
signalingState: ((_this$mediaProperties14 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties14 === void 0 ? void 0 : (_this$mediaProperties15 = _this$mediaProperties14.multistreamConnection) === null || _this$mediaProperties15 === void 0 ? void 0 : (_this$mediaProperties16 = _this$mediaProperties15.pc) === null || _this$mediaProperties16 === void 0 ? void 0 : (_this$mediaProperties17 = _this$mediaProperties16.pc) === null || _this$mediaProperties17 === void 0 ? void 0 : _this$mediaProperties17.signalingState) || ((_this$mediaProperties18 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties18 === void 0 ? void 0 : (_this$mediaProperties19 = _this$mediaProperties18.mediaConnection) === null || _this$mediaProperties19 === void 0 ? void 0 : (_this$mediaProperties20 = _this$mediaProperties19.pc) === null || _this$mediaProperties20 === void 0 ? void 0 : _this$mediaProperties20.signalingState) || 'unknown',
|
|
8368
9219
|
connectionState: ((_this$mediaProperties21 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties21 === void 0 ? void 0 : (_this$mediaProperties22 = _this$mediaProperties21.multistreamConnection) === null || _this$mediaProperties22 === void 0 ? void 0 : (_this$mediaProperties23 = _this$mediaProperties22.pc) === null || _this$mediaProperties23 === void 0 ? void 0 : (_this$mediaProperties24 = _this$mediaProperties23.pc) === null || _this$mediaProperties24 === void 0 ? void 0 : _this$mediaProperties24.connectionState) || ((_this$mediaProperties25 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties25 === void 0 ? void 0 : (_this$mediaProperties26 = _this$mediaProperties25.mediaConnection) === null || _this$mediaProperties26 === void 0 ? void 0 : (_this$mediaProperties27 = _this$mediaProperties26.pc) === null || _this$mediaProperties27 === void 0 ? void 0 : _this$mediaProperties27.connectionState) || 'unknown',
|
|
8369
|
-
iceConnectionState: ((_this$mediaProperties28 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties28 === void 0 ? void 0 : (_this$mediaProperties29 = _this$mediaProperties28.multistreamConnection) === null || _this$mediaProperties29 === void 0 ? void 0 : (_this$mediaProperties30 = _this$mediaProperties29.pc) === null || _this$mediaProperties30 === void 0 ? void 0 : (_this$mediaProperties31 = _this$mediaProperties30.pc) === null || _this$mediaProperties31 === void 0 ? void 0 : _this$mediaProperties31.iceConnectionState) || ((_this$mediaProperties32 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties32 === void 0 ? void 0 : (_this$mediaProperties33 = _this$mediaProperties32.mediaConnection) === null || _this$mediaProperties33 === void 0 ? void 0 : (_this$mediaProperties34 = _this$mediaProperties33.pc) === null || _this$mediaProperties34 === void 0 ? void 0 : _this$mediaProperties34.iceConnectionState) || 'unknown'
|
|
9220
|
+
iceConnectionState: ((_this$mediaProperties28 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties28 === void 0 ? void 0 : (_this$mediaProperties29 = _this$mediaProperties28.multistreamConnection) === null || _this$mediaProperties29 === void 0 ? void 0 : (_this$mediaProperties30 = _this$mediaProperties29.pc) === null || _this$mediaProperties30 === void 0 ? void 0 : (_this$mediaProperties31 = _this$mediaProperties30.pc) === null || _this$mediaProperties31 === void 0 ? void 0 : _this$mediaProperties31.iceConnectionState) || ((_this$mediaProperties32 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties32 === void 0 ? void 0 : (_this$mediaProperties33 = _this$mediaProperties32.mediaConnection) === null || _this$mediaProperties33 === void 0 ? void 0 : (_this$mediaProperties34 = _this$mediaProperties33.pc) === null || _this$mediaProperties34 === void 0 ? void 0 : _this$mediaProperties34.iceConnectionState) || 'unknown',
|
|
9221
|
+
connectionType: _connectionType
|
|
8370
9222
|
}, _reachabilityMetrics), _iceCandidateErrors), {}, {
|
|
8371
9223
|
iceCandidatesCount: this.iceCandidatesCount,
|
|
8372
9224
|
ipver: ipver
|
|
8373
9225
|
}));
|
|
8374
|
-
|
|
9226
|
+
_context38.next = 21;
|
|
8375
9227
|
return this.cleanUpOnAddMediaFailure();
|
|
8376
|
-
case
|
|
9228
|
+
case 21:
|
|
8377
9229
|
// Upload logs on error while adding media
|
|
8378
9230
|
_triggerProxy.default.trigger(this, {
|
|
8379
9231
|
file: 'meeting/index',
|
|
8380
9232
|
function: 'addMedia'
|
|
8381
9233
|
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, this);
|
|
8382
|
-
if (
|
|
9234
|
+
if (_t37 instanceof _internalMediaCore.Errors.SdpError) {
|
|
8383
9235
|
this.leave({
|
|
8384
9236
|
reason: _constants.MEETING_REMOVED_REASON.MEETING_CONNECTION_FAILED
|
|
8385
9237
|
});
|
|
8386
9238
|
}
|
|
8387
|
-
throw
|
|
8388
|
-
case
|
|
8389
|
-
|
|
9239
|
+
throw _t37;
|
|
9240
|
+
case 22:
|
|
9241
|
+
_context38.prev = 22;
|
|
8390
9242
|
this.addMediaData.icePhaseCallback = DEFAULT_ICE_PHASE_CALLBACK;
|
|
8391
|
-
return
|
|
8392
|
-
case
|
|
9243
|
+
return _context38.finish(22);
|
|
9244
|
+
case 23:
|
|
8393
9245
|
case "end":
|
|
8394
|
-
return
|
|
9246
|
+
return _context38.stop();
|
|
8395
9247
|
}
|
|
8396
|
-
},
|
|
9248
|
+
}, _callee38, this, [[4, 16, 22, 23], [6, 8]]);
|
|
8397
9249
|
}));
|
|
8398
|
-
function addMediaInternal(
|
|
9250
|
+
function addMediaInternal(_x34, _x35, _x36, _x37) {
|
|
8399
9251
|
return _addMediaInternal.apply(this, arguments);
|
|
8400
9252
|
}
|
|
8401
9253
|
return addMediaInternal;
|
|
@@ -8425,7 +9277,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8425
9277
|
* @memberof Meeting
|
|
8426
9278
|
*/
|
|
8427
9279
|
function enqueueMediaUpdate(mediaUpdateType) {
|
|
8428
|
-
var
|
|
9280
|
+
var _this48 = this;
|
|
8429
9281
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8430
9282
|
var canUpdateMediaNow = this.canUpdateMedia();
|
|
8431
9283
|
return new _promise.default(function (resolve, reject) {
|
|
@@ -8436,9 +9288,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8436
9288
|
options: options
|
|
8437
9289
|
};
|
|
8438
9290
|
_loggerProxy.default.logger.log("Meeting:index#enqueueMediaUpdate --> enqueuing media update type=".concat(mediaUpdateType));
|
|
8439
|
-
|
|
9291
|
+
_this48.queuedMediaUpdates.push(queueItem);
|
|
8440
9292
|
if (canUpdateMediaNow) {
|
|
8441
|
-
|
|
9293
|
+
_this48.processNextQueuedMediaUpdate();
|
|
8442
9294
|
}
|
|
8443
9295
|
});
|
|
8444
9296
|
}
|
|
@@ -8461,35 +9313,35 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8461
9313
|
* @memberof Meeting
|
|
8462
9314
|
*/
|
|
8463
9315
|
function () {
|
|
8464
|
-
var _updateMedia = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
9316
|
+
var _updateMedia = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee39(options) {
|
|
8465
9317
|
var audioEnabled, videoEnabled, shareAudioEnabled, shareVideoEnabled, _this$audio3, _this$video3;
|
|
8466
|
-
return _regenerator.default.wrap(function (
|
|
8467
|
-
while (1) switch (
|
|
9318
|
+
return _regenerator.default.wrap(function (_context39) {
|
|
9319
|
+
while (1) switch (_context39.prev = _context39.next) {
|
|
8468
9320
|
case 0:
|
|
8469
9321
|
this.checkMediaConnection();
|
|
8470
9322
|
audioEnabled = options.audioEnabled, videoEnabled = options.videoEnabled, shareAudioEnabled = options.shareAudioEnabled, shareVideoEnabled = options.shareVideoEnabled;
|
|
8471
9323
|
_loggerProxy.default.logger.log("Meeting:index#updateMedia --> called with options=".concat((0, _stringify.default)(options)));
|
|
8472
9324
|
if (this.canUpdateMedia()) {
|
|
8473
|
-
|
|
9325
|
+
_context39.next = 1;
|
|
8474
9326
|
break;
|
|
8475
9327
|
}
|
|
8476
|
-
return
|
|
9328
|
+
return _context39.abrupt("return", this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.UPDATE_MEDIA, options));
|
|
8477
9329
|
case 1:
|
|
8478
9330
|
if (!this.isMultistream) {
|
|
8479
|
-
|
|
9331
|
+
_context39.next = 3;
|
|
8480
9332
|
break;
|
|
8481
9333
|
}
|
|
8482
9334
|
if (!(shareAudioEnabled !== undefined || shareVideoEnabled !== undefined)) {
|
|
8483
|
-
|
|
9335
|
+
_context39.next = 2;
|
|
8484
9336
|
break;
|
|
8485
9337
|
}
|
|
8486
9338
|
throw new Error('toggling shareAudioEnabled or shareVideoEnabled in a multistream meeting is not supported, to control receiving screen share call meeting.remoteMediaManager.setLayout() with appropriate layout');
|
|
8487
9339
|
case 2:
|
|
8488
|
-
|
|
9340
|
+
_context39.next = 4;
|
|
8489
9341
|
break;
|
|
8490
9342
|
case 3:
|
|
8491
9343
|
if (!(shareAudioEnabled !== undefined)) {
|
|
8492
|
-
|
|
9344
|
+
_context39.next = 4;
|
|
8493
9345
|
break;
|
|
8494
9346
|
}
|
|
8495
9347
|
throw new Error('toggling shareAudioEnabled in a transcoded meeting is not supported as of now');
|
|
@@ -8514,20 +9366,20 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8514
9366
|
this.mediaProperties.mediaDirection.receiveShare = !!(shareAudioEnabled || shareVideoEnabled);
|
|
8515
9367
|
}
|
|
8516
9368
|
if (this.isMultistream) {
|
|
8517
|
-
|
|
9369
|
+
_context39.next = 5;
|
|
8518
9370
|
break;
|
|
8519
9371
|
}
|
|
8520
|
-
|
|
9372
|
+
_context39.next = 5;
|
|
8521
9373
|
return this.updateTranscodedMediaConnection();
|
|
8522
9374
|
case 5:
|
|
8523
|
-
return
|
|
9375
|
+
return _context39.abrupt("return", undefined);
|
|
8524
9376
|
case 6:
|
|
8525
9377
|
case "end":
|
|
8526
|
-
return
|
|
9378
|
+
return _context39.stop();
|
|
8527
9379
|
}
|
|
8528
|
-
},
|
|
9380
|
+
}, _callee39, this);
|
|
8529
9381
|
}));
|
|
8530
|
-
function updateMedia(
|
|
9382
|
+
function updateMedia(_x38) {
|
|
8531
9383
|
return _updateMedia.apply(this, arguments);
|
|
8532
9384
|
}
|
|
8533
9385
|
return updateMedia;
|
|
@@ -8543,7 +9395,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8543
9395
|
}, {
|
|
8544
9396
|
key: "acknowledge",
|
|
8545
9397
|
value: function acknowledge(type) {
|
|
8546
|
-
var
|
|
9398
|
+
var _this49 = this;
|
|
8547
9399
|
if (!type) {
|
|
8548
9400
|
return _promise.default.reject(new _parameter.default('Type must be set to acknowledge the meeting.'));
|
|
8549
9401
|
}
|
|
@@ -8555,12 +9407,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8555
9407
|
}).then(function (response) {
|
|
8556
9408
|
return _promise.default.resolve(response);
|
|
8557
9409
|
}).then(function (response) {
|
|
8558
|
-
|
|
9410
|
+
_this49.meetingFiniteStateMachine.ring(type);
|
|
8559
9411
|
// @ts-ignore
|
|
8560
|
-
|
|
9412
|
+
_this49.webex.internal.newMetrics.submitClientEvent({
|
|
8561
9413
|
name: 'client.alert.displayed',
|
|
8562
9414
|
options: {
|
|
8563
|
-
meetingId:
|
|
9415
|
+
meetingId: _this49.id
|
|
8564
9416
|
}
|
|
8565
9417
|
});
|
|
8566
9418
|
return _promise.default.resolve({
|
|
@@ -8585,12 +9437,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8585
9437
|
}, {
|
|
8586
9438
|
key: "decline",
|
|
8587
9439
|
value: function decline(reason) {
|
|
8588
|
-
var
|
|
9440
|
+
var _this50 = this;
|
|
8589
9441
|
return _util2.default.declineMeeting(this, reason).then(function (decline) {
|
|
8590
|
-
|
|
9442
|
+
_this50.meetingFiniteStateMachine.decline();
|
|
8591
9443
|
return _promise.default.resolve(decline);
|
|
8592
9444
|
}).catch(function (error) {
|
|
8593
|
-
|
|
9445
|
+
_this50.meetingFiniteStateMachine.fail(error);
|
|
8594
9446
|
return _promise.default.reject(error);
|
|
8595
9447
|
});
|
|
8596
9448
|
}
|
|
@@ -8641,7 +9493,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8641
9493
|
}, {
|
|
8642
9494
|
key: "leave",
|
|
8643
9495
|
value: function leave() {
|
|
8644
|
-
var
|
|
9496
|
+
var _this51 = this;
|
|
8645
9497
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8646
9498
|
var leaveReason = options.reason || _constants.MEETING_REMOVED_REASON.CLIENT_LEAVE_REQUEST;
|
|
8647
9499
|
|
|
@@ -8653,7 +9505,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8653
9505
|
var payload = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8654
9506
|
return (
|
|
8655
9507
|
// @ts-ignore
|
|
8656
|
-
|
|
9508
|
+
_this51.webex.internal.newMetrics.submitClientEvent({
|
|
8657
9509
|
name: 'client.call.leave',
|
|
8658
9510
|
payload: _objectSpread({
|
|
8659
9511
|
trigger: 'user-interaction',
|
|
@@ -8661,50 +9513,51 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8661
9513
|
leaveReason: options.clientEventLeaveReason
|
|
8662
9514
|
}, payload),
|
|
8663
9515
|
options: {
|
|
8664
|
-
meetingId:
|
|
9516
|
+
meetingId: _this51.id
|
|
8665
9517
|
}
|
|
8666
9518
|
})
|
|
8667
9519
|
);
|
|
8668
9520
|
};
|
|
8669
9521
|
_loggerProxy.default.logger.log('Meeting:index#leave --> Leaving a meeting');
|
|
9522
|
+
this.stopListeningForMeetingEvents();
|
|
8670
9523
|
return _util2.default.leaveMeeting(this, options).then(/*#__PURE__*/function () {
|
|
8671
|
-
var
|
|
8672
|
-
return _regenerator.default.wrap(function (
|
|
8673
|
-
while (1) switch (
|
|
9524
|
+
var _ref46 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee40(leave) {
|
|
9525
|
+
return _regenerator.default.wrap(function (_context40) {
|
|
9526
|
+
while (1) switch (_context40.prev = _context40.next) {
|
|
8674
9527
|
case 0:
|
|
8675
9528
|
// CA team recommends submitting this *after* locus /leave
|
|
8676
9529
|
submitLeaveMetric();
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
return
|
|
9530
|
+
_this51.meetingFiniteStateMachine.leave();
|
|
9531
|
+
_context40.next = 1;
|
|
9532
|
+
return _this51.clearMeetingData();
|
|
8680
9533
|
case 1:
|
|
8681
9534
|
// upload logs on leave irrespective of meeting delete
|
|
8682
|
-
_triggerProxy.default.trigger(
|
|
9535
|
+
_triggerProxy.default.trigger(_this51, {
|
|
8683
9536
|
file: 'meeting/index',
|
|
8684
9537
|
function: 'leave'
|
|
8685
|
-
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS,
|
|
9538
|
+
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this51);
|
|
8686
9539
|
|
|
8687
9540
|
// TODO: more testing before we remove this code, we are not sure the scenarios for destroy here
|
|
8688
|
-
if (
|
|
9541
|
+
if (_this51.wirelessShare || _this51.guest) {
|
|
8689
9542
|
// If screen sharing clean the meeting object
|
|
8690
|
-
_triggerProxy.default.trigger(
|
|
9543
|
+
_triggerProxy.default.trigger(_this51, {
|
|
8691
9544
|
file: 'meeting/index',
|
|
8692
9545
|
function: 'leave'
|
|
8693
9546
|
}, _constants.EVENTS.DESTROY_MEETING, {
|
|
8694
9547
|
reason: options.reason,
|
|
8695
|
-
meetingId:
|
|
9548
|
+
meetingId: _this51.id
|
|
8696
9549
|
});
|
|
8697
9550
|
}
|
|
8698
9551
|
_loggerProxy.default.logger.log('Meeting:index#leave --> LEAVE REASON ', leaveReason);
|
|
8699
|
-
return
|
|
9552
|
+
return _context40.abrupt("return", leave);
|
|
8700
9553
|
case 2:
|
|
8701
9554
|
case "end":
|
|
8702
|
-
return
|
|
9555
|
+
return _context40.stop();
|
|
8703
9556
|
}
|
|
8704
|
-
},
|
|
9557
|
+
}, _callee40);
|
|
8705
9558
|
}));
|
|
8706
|
-
return function (
|
|
8707
|
-
return
|
|
9559
|
+
return function (_x39) {
|
|
9560
|
+
return _ref46.apply(this, arguments);
|
|
8708
9561
|
};
|
|
8709
9562
|
}()).catch(function (error) {
|
|
8710
9563
|
// CA team recommends submitting this *after* locus /leave
|
|
@@ -8718,16 +9571,16 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8718
9571
|
shownToUser: false
|
|
8719
9572
|
}]
|
|
8720
9573
|
});
|
|
8721
|
-
|
|
9574
|
+
_this51.meetingFiniteStateMachine.fail(error);
|
|
8722
9575
|
_loggerProxy.default.logger.error('Meeting:index#leave --> Failed to leave ', error);
|
|
8723
9576
|
// upload logs on leave irrespective of meeting delete
|
|
8724
|
-
_triggerProxy.default.trigger(
|
|
9577
|
+
_triggerProxy.default.trigger(_this51, {
|
|
8725
9578
|
file: 'meeting/index',
|
|
8726
9579
|
function: 'leave'
|
|
8727
|
-
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS,
|
|
9580
|
+
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this51);
|
|
8728
9581
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_LEAVE_FAILURE, {
|
|
8729
|
-
correlation_id:
|
|
8730
|
-
locus_id:
|
|
9582
|
+
correlation_id: _this51.correlationId,
|
|
9583
|
+
locus_id: _this51.locusUrl.split('/').pop(),
|
|
8731
9584
|
reason: error.message,
|
|
8732
9585
|
stack: error.stack,
|
|
8733
9586
|
code: error.code
|
|
@@ -8747,7 +9600,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8747
9600
|
}, {
|
|
8748
9601
|
key: "startWhiteboardShare",
|
|
8749
9602
|
value: function startWhiteboardShare(channelUrl, resourceToken) {
|
|
8750
|
-
var
|
|
9603
|
+
var _this52 = this;
|
|
8751
9604
|
var whiteboard = this.locusInfo.mediaShares.find(function (element) {
|
|
8752
9605
|
return element.name === 'whiteboard';
|
|
8753
9606
|
});
|
|
@@ -8780,13 +9633,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8780
9633
|
body.resourceToken = resourceToken;
|
|
8781
9634
|
}
|
|
8782
9635
|
return this.meetingRequest.changeMeetingFloor(body).then(function () {
|
|
8783
|
-
|
|
9636
|
+
_this52.screenShareFloorState = ScreenShareFloorStatus.RELEASED;
|
|
8784
9637
|
return _promise.default.resolve();
|
|
8785
9638
|
}).catch(function (error) {
|
|
8786
9639
|
_loggerProxy.default.logger.error('Meeting:index#startWhiteboardShare --> Error ', error);
|
|
8787
9640
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_START_WHITEBOARD_SHARE_FAILURE, {
|
|
8788
|
-
correlation_id:
|
|
8789
|
-
locus_id:
|
|
9641
|
+
correlation_id: _this52.correlationId,
|
|
9642
|
+
locus_id: _this52.locusUrl.split('/').pop(),
|
|
8790
9643
|
reason: error.message,
|
|
8791
9644
|
stack: error.stack,
|
|
8792
9645
|
board: {
|
|
@@ -8809,7 +9662,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8809
9662
|
}, {
|
|
8810
9663
|
key: "stopWhiteboardShare",
|
|
8811
9664
|
value: function stopWhiteboardShare(channelUrl) {
|
|
8812
|
-
var
|
|
9665
|
+
var _this53 = this;
|
|
8813
9666
|
var whiteboard = this.locusInfo.mediaShares.find(function (element) {
|
|
8814
9667
|
return element.name === 'whiteboard';
|
|
8815
9668
|
});
|
|
@@ -8838,8 +9691,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8838
9691
|
}).catch(function (error) {
|
|
8839
9692
|
_loggerProxy.default.logger.error('Meeting:index#stopWhiteboardShare --> Error ', error);
|
|
8840
9693
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_STOP_WHITEBOARD_SHARE_FAILURE, {
|
|
8841
|
-
correlation_id:
|
|
8842
|
-
locus_id:
|
|
9694
|
+
correlation_id: _this53.correlationId,
|
|
9695
|
+
locus_id: _this53.locusUrl.split('/').pop(),
|
|
8843
9696
|
reason: error.message,
|
|
8844
9697
|
stack: error.stack,
|
|
8845
9698
|
board: {
|
|
@@ -8861,7 +9714,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8861
9714
|
}, {
|
|
8862
9715
|
key: "requestScreenShareFloor",
|
|
8863
9716
|
value: function requestScreenShareFloor() {
|
|
8864
|
-
var
|
|
9717
|
+
var _this54 = this;
|
|
8865
9718
|
if (!this.mediaProperties.hasLocalShareStream() || !this.mediaProperties.mediaDirection.sendShare) {
|
|
8866
9719
|
_loggerProxy.default.logger.log("Meeting:index#requestScreenShareFloor --> NOT requesting floor, because we don't have the share stream anymore (shareStream=".concat(this.mediaProperties.shareVideoStream ? 'yes' : 'no', ", sendShare=").concat(this.mediaProperties.mediaDirection.sendShare, ")"));
|
|
8867
9720
|
this.screenShareFloorState = ScreenShareFloorStatus.RELEASED;
|
|
@@ -8892,34 +9745,34 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8892
9745
|
resourceUrl: this.resourceUrl,
|
|
8893
9746
|
shareInstanceId: this.localShareInstanceId
|
|
8894
9747
|
}).then(function () {
|
|
8895
|
-
|
|
9748
|
+
_this54.screenShareFloorState = ScreenShareFloorStatus.GRANTED;
|
|
8896
9749
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_SHARE_SUCCESS, {
|
|
8897
|
-
correlation_id:
|
|
8898
|
-
locus_id:
|
|
9750
|
+
correlation_id: _this54.correlationId,
|
|
9751
|
+
locus_id: _this54.locusUrl.split('/').pop()
|
|
8899
9752
|
});
|
|
8900
9753
|
return _promise.default.resolve();
|
|
8901
9754
|
}).catch(function (error) {
|
|
8902
9755
|
_loggerProxy.default.logger.error('Meeting:index#share --> Error ', error);
|
|
8903
9756
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_SHARE_FAILURE, {
|
|
8904
|
-
correlation_id:
|
|
8905
|
-
locus_id:
|
|
9757
|
+
correlation_id: _this54.correlationId,
|
|
9758
|
+
locus_id: _this54.locusUrl.split('/').pop(),
|
|
8906
9759
|
reason: error.message,
|
|
8907
9760
|
stack: error.stack
|
|
8908
9761
|
});
|
|
8909
9762
|
|
|
8910
9763
|
// @ts-ignore
|
|
8911
|
-
|
|
9764
|
+
_this54.webex.internal.newMetrics.submitClientEvent({
|
|
8912
9765
|
name: 'client.share.floor-granted.local',
|
|
8913
9766
|
payload: {
|
|
8914
9767
|
mediaType: 'share',
|
|
8915
9768
|
errors: _util2.default.getChangeMeetingFloorErrorPayload(error.message),
|
|
8916
|
-
shareInstanceId:
|
|
9769
|
+
shareInstanceId: _this54.localShareInstanceId
|
|
8917
9770
|
},
|
|
8918
9771
|
options: {
|
|
8919
|
-
meetingId:
|
|
9772
|
+
meetingId: _this54.id
|
|
8920
9773
|
}
|
|
8921
9774
|
});
|
|
8922
|
-
|
|
9775
|
+
_this54.screenShareFloorState = ScreenShareFloorStatus.RELEASED;
|
|
8923
9776
|
return _promise.default.reject(error);
|
|
8924
9777
|
});
|
|
8925
9778
|
}
|
|
@@ -8942,10 +9795,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8942
9795
|
}, {
|
|
8943
9796
|
key: "requestScreenShareFloorIfPending",
|
|
8944
9797
|
value: function requestScreenShareFloorIfPending() {
|
|
8945
|
-
var
|
|
9798
|
+
var _this55 = this;
|
|
8946
9799
|
if (this.floorGrantPending && this.state === _constants.MEETING_STATE.STATES.JOINED) {
|
|
8947
9800
|
this.requestScreenShareFloor().then(function () {
|
|
8948
|
-
|
|
9801
|
+
_this55.floorGrantPending = false;
|
|
8949
9802
|
});
|
|
8950
9803
|
}
|
|
8951
9804
|
}
|
|
@@ -8959,7 +9812,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
8959
9812
|
}, {
|
|
8960
9813
|
key: "releaseScreenShareFloor",
|
|
8961
9814
|
value: function releaseScreenShareFloor() {
|
|
8962
|
-
var
|
|
9815
|
+
var _this56 = this;
|
|
8963
9816
|
var content = this.locusInfo.mediaShares.find(function (element) {
|
|
8964
9817
|
return element.name === _constants.CONTENT;
|
|
8965
9818
|
});
|
|
@@ -9000,8 +9853,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9000
9853
|
}).catch(function (error) {
|
|
9001
9854
|
_loggerProxy.default.logger.error('Meeting:index#releaseScreenShareFloor --> Error ', error);
|
|
9002
9855
|
_metrics.default.sendBehavioralMetric(_constants2.default.STOP_FLOOR_REQUEST_FAILURE, {
|
|
9003
|
-
correlation_id:
|
|
9004
|
-
locus_id:
|
|
9856
|
+
correlation_id: _this56.correlationId,
|
|
9857
|
+
locus_id: _this56.locusUrl.split('/').pop(),
|
|
9005
9858
|
reason: error.message,
|
|
9006
9859
|
stack: error.stack
|
|
9007
9860
|
});
|
|
@@ -9181,7 +10034,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9181
10034
|
}, {
|
|
9182
10035
|
key: "changeVideoLayout",
|
|
9183
10036
|
value: function changeVideoLayout(layoutType) {
|
|
9184
|
-
var
|
|
10037
|
+
var _this57 = this;
|
|
9185
10038
|
var renderInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9186
10039
|
var main = renderInfo.main,
|
|
9187
10040
|
content = renderInfo.content;
|
|
@@ -9235,7 +10088,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9235
10088
|
}
|
|
9236
10089
|
this.lastVideoLayoutInfo = (0, _lodash.cloneDeep)(layoutInfo);
|
|
9237
10090
|
this.locusInfo.once(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_LAYOUT_UPDATED, function (envelope) {
|
|
9238
|
-
_triggerProxy.default.trigger(
|
|
10091
|
+
_triggerProxy.default.trigger(_this57, {
|
|
9239
10092
|
file: 'meeting/index',
|
|
9240
10093
|
function: 'changeVideoLayout'
|
|
9241
10094
|
}, _constants.EVENT_TRIGGERS.MEETING_CONTROLS_LAYOUT_UPDATE, {
|
|
@@ -9351,7 +10204,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9351
10204
|
}, {
|
|
9352
10205
|
key: "endMeetingForAll",
|
|
9353
10206
|
value: function endMeetingForAll() {
|
|
9354
|
-
var
|
|
10207
|
+
var _this58 = this;
|
|
9355
10208
|
// @ts-ignore
|
|
9356
10209
|
this.webex.internal.newMetrics.submitClientEvent({
|
|
9357
10210
|
name: 'client.call.leave',
|
|
@@ -9368,41 +10221,42 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9368
10221
|
correlation_id: this.correlationId,
|
|
9369
10222
|
locus_id: this.locusId
|
|
9370
10223
|
});
|
|
10224
|
+
this.stopListeningForMeetingEvents();
|
|
9371
10225
|
return _util2.default.endMeetingForAll(this).then(/*#__PURE__*/function () {
|
|
9372
|
-
var
|
|
9373
|
-
return _regenerator.default.wrap(function (
|
|
9374
|
-
while (1) switch (
|
|
10226
|
+
var _ref47 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee41(end) {
|
|
10227
|
+
return _regenerator.default.wrap(function (_context41) {
|
|
10228
|
+
while (1) switch (_context41.prev = _context41.next) {
|
|
9375
10229
|
case 0:
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
return
|
|
10230
|
+
_this58.meetingFiniteStateMachine.end();
|
|
10231
|
+
_context41.next = 1;
|
|
10232
|
+
return _this58.clearMeetingData();
|
|
9379
10233
|
case 1:
|
|
9380
10234
|
// upload logs on leave irrespective of meeting delete
|
|
9381
|
-
_triggerProxy.default.trigger(
|
|
10235
|
+
_triggerProxy.default.trigger(_this58, {
|
|
9382
10236
|
file: 'meeting/index',
|
|
9383
10237
|
function: 'endMeetingForAll'
|
|
9384
|
-
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS,
|
|
9385
|
-
return
|
|
10238
|
+
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this58);
|
|
10239
|
+
return _context41.abrupt("return", end);
|
|
9386
10240
|
case 2:
|
|
9387
10241
|
case "end":
|
|
9388
|
-
return
|
|
10242
|
+
return _context41.stop();
|
|
9389
10243
|
}
|
|
9390
|
-
},
|
|
10244
|
+
}, _callee41);
|
|
9391
10245
|
}));
|
|
9392
|
-
return function (
|
|
9393
|
-
return
|
|
10246
|
+
return function (_x40) {
|
|
10247
|
+
return _ref47.apply(this, arguments);
|
|
9394
10248
|
};
|
|
9395
10249
|
}()).catch(function (error) {
|
|
9396
|
-
|
|
10250
|
+
_this58.meetingFiniteStateMachine.fail(error);
|
|
9397
10251
|
_loggerProxy.default.logger.error('Meeting:index#endMeetingForAll --> Failed to end meeting ', error);
|
|
9398
10252
|
// upload logs on leave irrespective of meeting delete
|
|
9399
|
-
_triggerProxy.default.trigger(
|
|
10253
|
+
_triggerProxy.default.trigger(_this58, {
|
|
9400
10254
|
file: 'meeting/index',
|
|
9401
10255
|
function: 'endMeetingForAll'
|
|
9402
|
-
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS,
|
|
10256
|
+
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this58);
|
|
9403
10257
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_END_ALL_FAILURE, {
|
|
9404
|
-
correlation_id:
|
|
9405
|
-
locus_id:
|
|
10258
|
+
correlation_id: _this58.correlationId,
|
|
10259
|
+
locus_id: _this58.locusUrl.split('/').pop(),
|
|
9406
10260
|
reason: error.message,
|
|
9407
10261
|
stack: error.stack,
|
|
9408
10262
|
code: error.code
|
|
@@ -9423,13 +10277,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9423
10277
|
* @memberof Meeting
|
|
9424
10278
|
*/
|
|
9425
10279
|
function sendReaction(reactionType, skinToneType) {
|
|
9426
|
-
var _this$
|
|
9427
|
-
var reactionChannelUrl = (_this$
|
|
10280
|
+
var _this$locusInfo9, _this$locusInfo9$cont, _this$locusInfo9$cont2;
|
|
10281
|
+
var reactionChannelUrl = (_this$locusInfo9 = this.locusInfo) === null || _this$locusInfo9 === void 0 ? void 0 : (_this$locusInfo9$cont = _this$locusInfo9.controls) === null || _this$locusInfo9$cont === void 0 ? void 0 : (_this$locusInfo9$cont2 = _this$locusInfo9$cont.reactions) === null || _this$locusInfo9$cont2 === void 0 ? void 0 : _this$locusInfo9$cont2.reactionChannelUrl;
|
|
9428
10282
|
var participantId = this.members.selfId;
|
|
9429
|
-
var reactionData = _reactions.Reactions[reactionType]
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
}
|
|
10283
|
+
var reactionData = _reactions.Reactions[reactionType] || {
|
|
10284
|
+
type: reactionType
|
|
10285
|
+
};
|
|
9433
10286
|
var skinToneData = _reactions.SkinTones[skinToneType] || _reactions.SkinTones.normal;
|
|
9434
10287
|
var reaction = _objectSpread(_objectSpread({}, reactionData), {}, {
|
|
9435
10288
|
tone: skinToneData
|
|
@@ -9454,12 +10307,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9454
10307
|
*/
|
|
9455
10308
|
}, {
|
|
9456
10309
|
key: "extendMeeting",
|
|
9457
|
-
value: function extendMeeting(
|
|
9458
|
-
var meetingPolicyUrl =
|
|
9459
|
-
meetingInstanceId =
|
|
9460
|
-
participantId =
|
|
9461
|
-
|
|
9462
|
-
extensionMinutes =
|
|
10310
|
+
value: function extendMeeting(_ref48) {
|
|
10311
|
+
var meetingPolicyUrl = _ref48.meetingPolicyUrl,
|
|
10312
|
+
meetingInstanceId = _ref48.meetingInstanceId,
|
|
10313
|
+
participantId = _ref48.participantId,
|
|
10314
|
+
_ref48$extensionMinut = _ref48.extensionMinutes,
|
|
10315
|
+
extensionMinutes = _ref48$extensionMinut === void 0 ? 30 : _ref48$extensionMinut;
|
|
9463
10316
|
if (!meetingInstanceId || !participantId) {
|
|
9464
10317
|
return _promise.default.reject(new Error('Missing meetingInstanceId or participantId'));
|
|
9465
10318
|
}
|
|
@@ -9485,8 +10338,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9485
10338
|
}, {
|
|
9486
10339
|
key: "toggleReactions",
|
|
9487
10340
|
value: function toggleReactions(enable) {
|
|
9488
|
-
var _this$
|
|
9489
|
-
var isEnabled = (_this$
|
|
10341
|
+
var _this$locusInfo0, _this$locusInfo0$cont, _this$locusInfo0$cont2;
|
|
10342
|
+
var isEnabled = (_this$locusInfo0 = this.locusInfo) === null || _this$locusInfo0 === void 0 ? void 0 : (_this$locusInfo0$cont = _this$locusInfo0.controls) === null || _this$locusInfo0$cont === void 0 ? void 0 : (_this$locusInfo0$cont2 = _this$locusInfo0$cont.reactions) === null || _this$locusInfo0$cont2 === void 0 ? void 0 : _this$locusInfo0$cont2.enabled;
|
|
9490
10343
|
if (isEnabled && enable || !isEnabled && !enable) {
|
|
9491
10344
|
return _promise.default.resolve("Reactions are already ".concat(isEnabled ? 'enabled' : 'disabled', "."));
|
|
9492
10345
|
}
|
|
@@ -9540,39 +10393,39 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9540
10393
|
}, {
|
|
9541
10394
|
key: "enableMusicMode",
|
|
9542
10395
|
value: (function () {
|
|
9543
|
-
var _enableMusicMode = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
9544
|
-
return _regenerator.default.wrap(function (
|
|
9545
|
-
while (1) switch (
|
|
10396
|
+
var _enableMusicMode = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee42(shouldEnableMusicMode) {
|
|
10397
|
+
return _regenerator.default.wrap(function (_context42) {
|
|
10398
|
+
while (1) switch (_context42.prev = _context42.next) {
|
|
9546
10399
|
case 0:
|
|
9547
10400
|
this.checkMediaConnection();
|
|
9548
10401
|
if (this.isMultistream) {
|
|
9549
|
-
|
|
10402
|
+
_context42.next = 1;
|
|
9550
10403
|
break;
|
|
9551
10404
|
}
|
|
9552
10405
|
throw new Error('enableMusicMode() only supported with multistream');
|
|
9553
10406
|
case 1:
|
|
9554
10407
|
if (!shouldEnableMusicMode) {
|
|
9555
|
-
|
|
10408
|
+
_context42.next = 3;
|
|
9556
10409
|
break;
|
|
9557
10410
|
}
|
|
9558
|
-
|
|
10411
|
+
_context42.next = 2;
|
|
9559
10412
|
return this.sendSlotManager.setCustomCodecParameters(_internalMediaCore.MediaType.AudioMain, _internalMediaCore.MediaCodecMimeType.OPUS, {
|
|
9560
10413
|
maxaveragebitrate: '64000',
|
|
9561
10414
|
maxplaybackrate: '48000'
|
|
9562
10415
|
});
|
|
9563
10416
|
case 2:
|
|
9564
|
-
|
|
10417
|
+
_context42.next = 4;
|
|
9565
10418
|
break;
|
|
9566
10419
|
case 3:
|
|
9567
|
-
|
|
10420
|
+
_context42.next = 4;
|
|
9568
10421
|
return this.sendSlotManager.markCustomCodecParametersForDeletion(_internalMediaCore.MediaType.AudioMain, _internalMediaCore.MediaCodecMimeType.OPUS, ['maxaveragebitrate', 'maxplaybackrate']);
|
|
9569
10422
|
case 4:
|
|
9570
10423
|
case "end":
|
|
9571
|
-
return
|
|
10424
|
+
return _context42.stop();
|
|
9572
10425
|
}
|
|
9573
|
-
},
|
|
10426
|
+
}, _callee42, this);
|
|
9574
10427
|
}));
|
|
9575
|
-
function enableMusicMode(
|
|
10428
|
+
function enableMusicMode(_x41) {
|
|
9576
10429
|
return _enableMusicMode.apply(this, arguments);
|
|
9577
10430
|
}
|
|
9578
10431
|
return enableMusicMode;
|
|
@@ -9593,7 +10446,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9593
10446
|
_this$mediaProperties42,
|
|
9594
10447
|
_this$mediaProperties43,
|
|
9595
10448
|
_this$mediaProperties44,
|
|
9596
|
-
|
|
10449
|
+
_this59 = this;
|
|
9597
10450
|
var LOG_HEADER = 'Meeting:index#updateTranscodedMediaConnection -->';
|
|
9598
10451
|
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " starting"));
|
|
9599
10452
|
if (!this.canUpdateMedia()) {
|
|
@@ -9618,8 +10471,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9618
10471
|
}).catch(function (error) {
|
|
9619
10472
|
_loggerProxy.default.logger.error("".concat(LOG_HEADER, " Error: "), error);
|
|
9620
10473
|
_metrics.default.sendBehavioralMetric(_constants2.default.UPDATE_MEDIA_FAILURE, {
|
|
9621
|
-
correlation_id:
|
|
9622
|
-
locus_id:
|
|
10474
|
+
correlation_id: _this59.correlationId,
|
|
10475
|
+
locus_id: _this59.locusUrl.split('/').pop(),
|
|
9623
10476
|
reason: error.message,
|
|
9624
10477
|
stack: error.stack
|
|
9625
10478
|
});
|
|
@@ -9663,25 +10516,25 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9663
10516
|
}, {
|
|
9664
10517
|
key: "publishStream",
|
|
9665
10518
|
value: (function () {
|
|
9666
|
-
var _publishStream = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
9667
|
-
return _regenerator.default.wrap(function (
|
|
9668
|
-
while (1) switch (
|
|
10519
|
+
var _publishStream = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee43(mediaType, stream) {
|
|
10520
|
+
return _regenerator.default.wrap(function (_context43) {
|
|
10521
|
+
while (1) switch (_context43.prev = _context43.next) {
|
|
9669
10522
|
case 0:
|
|
9670
10523
|
if (stream) {
|
|
9671
|
-
|
|
10524
|
+
_context43.next = 1;
|
|
9672
10525
|
break;
|
|
9673
10526
|
}
|
|
9674
|
-
return
|
|
10527
|
+
return _context43.abrupt("return");
|
|
9675
10528
|
case 1:
|
|
9676
10529
|
if (!this.mediaProperties.webrtcMediaConnection) {
|
|
9677
|
-
|
|
10530
|
+
_context43.next = 3;
|
|
9678
10531
|
break;
|
|
9679
10532
|
}
|
|
9680
10533
|
if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
|
|
9681
|
-
|
|
10534
|
+
_context43.next = 2;
|
|
9682
10535
|
break;
|
|
9683
10536
|
}
|
|
9684
|
-
|
|
10537
|
+
_context43.next = 2;
|
|
9685
10538
|
return this.sendSlotManager.publishStream(mediaType, stream);
|
|
9686
10539
|
case 2:
|
|
9687
10540
|
this.emitPublishStateChangeEvent({
|
|
@@ -9692,11 +10545,11 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9692
10545
|
});
|
|
9693
10546
|
case 3:
|
|
9694
10547
|
case "end":
|
|
9695
|
-
return
|
|
10548
|
+
return _context43.stop();
|
|
9696
10549
|
}
|
|
9697
|
-
},
|
|
10550
|
+
}, _callee43, this);
|
|
9698
10551
|
}));
|
|
9699
|
-
function publishStream(
|
|
10552
|
+
function publishStream(_x42, _x43) {
|
|
9700
10553
|
return _publishStream.apply(this, arguments);
|
|
9701
10554
|
}
|
|
9702
10555
|
return publishStream;
|
|
@@ -9712,21 +10565,21 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9712
10565
|
}, {
|
|
9713
10566
|
key: "unpublishStream",
|
|
9714
10567
|
value: (function () {
|
|
9715
|
-
var _unpublishStream = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
9716
|
-
return _regenerator.default.wrap(function (
|
|
9717
|
-
while (1) switch (
|
|
10568
|
+
var _unpublishStream = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee44(mediaType, stream) {
|
|
10569
|
+
return _regenerator.default.wrap(function (_context44) {
|
|
10570
|
+
while (1) switch (_context44.prev = _context44.next) {
|
|
9718
10571
|
case 0:
|
|
9719
10572
|
if (stream) {
|
|
9720
|
-
|
|
10573
|
+
_context44.next = 1;
|
|
9721
10574
|
break;
|
|
9722
10575
|
}
|
|
9723
|
-
return
|
|
10576
|
+
return _context44.abrupt("return");
|
|
9724
10577
|
case 1:
|
|
9725
10578
|
if (!(this.isMultistream && this.mediaProperties.webrtcMediaConnection)) {
|
|
9726
|
-
|
|
10579
|
+
_context44.next = 2;
|
|
9727
10580
|
break;
|
|
9728
10581
|
}
|
|
9729
|
-
|
|
10582
|
+
_context44.next = 2;
|
|
9730
10583
|
return this.sendSlotManager.unpublishStream(mediaType);
|
|
9731
10584
|
case 2:
|
|
9732
10585
|
this.emitPublishStateChangeEvent({
|
|
@@ -9737,11 +10590,11 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9737
10590
|
});
|
|
9738
10591
|
case 3:
|
|
9739
10592
|
case "end":
|
|
9740
|
-
return
|
|
10593
|
+
return _context44.stop();
|
|
9741
10594
|
}
|
|
9742
|
-
},
|
|
10595
|
+
}, _callee44, this);
|
|
9743
10596
|
}));
|
|
9744
|
-
function unpublishStream(
|
|
10597
|
+
function unpublishStream(_x44, _x45) {
|
|
9745
10598
|
return _unpublishStream.apply(this, arguments);
|
|
9746
10599
|
}
|
|
9747
10600
|
return unpublishStream;
|
|
@@ -9756,19 +10609,19 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9756
10609
|
}, {
|
|
9757
10610
|
key: "publishStreams",
|
|
9758
10611
|
value: (function () {
|
|
9759
|
-
var _publishStreams = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
10612
|
+
var _publishStreams = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee45(streams) {
|
|
9760
10613
|
var _streams$screenShare, _streams$screenShare2, _streams$screenShare3, _streams$screenShare4, _streams$screenShare5, _streams$screenShare6;
|
|
9761
10614
|
var streamChecks, _i, _streamChecks, _streamChecks$_i, stream, name, floorRequestNeeded, _streams$screenShare7;
|
|
9762
|
-
return _regenerator.default.wrap(function (
|
|
9763
|
-
while (1) switch (
|
|
10615
|
+
return _regenerator.default.wrap(function (_context45) {
|
|
10616
|
+
while (1) switch (_context45.prev = _context45.next) {
|
|
9764
10617
|
case 0:
|
|
9765
10618
|
_loggerProxy.default.logger.info("Meeting:index#publishStreams --> called with: ".concat((0, _stringify.default)(streams)));
|
|
9766
10619
|
this.checkMediaConnection();
|
|
9767
10620
|
if (!(!streams.microphone && !streams.camera && !((_streams$screenShare = streams.screenShare) !== null && _streams$screenShare !== void 0 && _streams$screenShare.audio) && !((_streams$screenShare2 = streams.screenShare) !== null && _streams$screenShare2 !== void 0 && _streams$screenShare2.video))) {
|
|
9768
|
-
|
|
10621
|
+
_context45.next = 1;
|
|
9769
10622
|
break;
|
|
9770
10623
|
}
|
|
9771
|
-
return
|
|
10624
|
+
return _context45.abrupt("return");
|
|
9772
10625
|
case 1:
|
|
9773
10626
|
streamChecks = [{
|
|
9774
10627
|
stream: streams === null || streams === void 0 ? void 0 : streams.microphone,
|
|
@@ -9786,62 +10639,62 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9786
10639
|
_i = 0, _streamChecks = streamChecks;
|
|
9787
10640
|
case 2:
|
|
9788
10641
|
if (!(_i < _streamChecks.length)) {
|
|
9789
|
-
|
|
10642
|
+
_context45.next = 4;
|
|
9790
10643
|
break;
|
|
9791
10644
|
}
|
|
9792
10645
|
_streamChecks$_i = _streamChecks[_i], stream = _streamChecks$_i.stream, name = _streamChecks$_i.name;
|
|
9793
10646
|
if (!((stream === null || stream === void 0 ? void 0 : stream.readyState) === 'ended')) {
|
|
9794
|
-
|
|
10647
|
+
_context45.next = 3;
|
|
9795
10648
|
break;
|
|
9796
10649
|
}
|
|
9797
10650
|
throw new Error("Attempted to publish ".concat(name, " stream with ended readyState, correlationId=").concat(this.correlationId));
|
|
9798
10651
|
case 3:
|
|
9799
10652
|
_i++;
|
|
9800
|
-
|
|
10653
|
+
_context45.next = 2;
|
|
9801
10654
|
break;
|
|
9802
10655
|
case 4:
|
|
9803
10656
|
floorRequestNeeded = false; // Screenshare Audio is supported only in multi stream. So we check for screenshare audio presence only if it's a multi stream meeting
|
|
9804
10657
|
if (!(this.isMultistream && (_streams$screenShare5 = streams.screenShare) !== null && _streams$screenShare5 !== void 0 && _streams$screenShare5.audio)) {
|
|
9805
|
-
|
|
10658
|
+
_context45.next = 6;
|
|
9806
10659
|
break;
|
|
9807
10660
|
}
|
|
9808
|
-
|
|
10661
|
+
_context45.next = 5;
|
|
9809
10662
|
return this.setLocalShareAudioStream(streams.screenShare.audio);
|
|
9810
10663
|
case 5:
|
|
9811
10664
|
floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
|
|
9812
10665
|
case 6:
|
|
9813
10666
|
if (!((_streams$screenShare6 = streams.screenShare) !== null && _streams$screenShare6 !== void 0 && _streams$screenShare6.video)) {
|
|
9814
|
-
|
|
10667
|
+
_context45.next = 8;
|
|
9815
10668
|
break;
|
|
9816
10669
|
}
|
|
9817
|
-
|
|
10670
|
+
_context45.next = 7;
|
|
9818
10671
|
return this.setLocalShareVideoStream((_streams$screenShare7 = streams.screenShare) === null || _streams$screenShare7 === void 0 ? void 0 : _streams$screenShare7.video);
|
|
9819
10672
|
case 7:
|
|
9820
10673
|
floorRequestNeeded = this.screenShareFloorState === ScreenShareFloorStatus.RELEASED;
|
|
9821
10674
|
case 8:
|
|
9822
10675
|
if (!streams.microphone) {
|
|
9823
|
-
|
|
10676
|
+
_context45.next = 9;
|
|
9824
10677
|
break;
|
|
9825
10678
|
}
|
|
9826
|
-
|
|
10679
|
+
_context45.next = 9;
|
|
9827
10680
|
return this.setLocalAudioStream(streams.microphone);
|
|
9828
10681
|
case 9:
|
|
9829
10682
|
if (!streams.camera) {
|
|
9830
|
-
|
|
10683
|
+
_context45.next = 10;
|
|
9831
10684
|
break;
|
|
9832
10685
|
}
|
|
9833
|
-
|
|
10686
|
+
_context45.next = 10;
|
|
9834
10687
|
return this.setLocalVideoStream(streams.camera);
|
|
9835
10688
|
case 10:
|
|
9836
10689
|
if (this.isMultistream) {
|
|
9837
|
-
|
|
10690
|
+
_context45.next = 11;
|
|
9838
10691
|
break;
|
|
9839
10692
|
}
|
|
9840
|
-
|
|
10693
|
+
_context45.next = 11;
|
|
9841
10694
|
return this.updateTranscodedMediaConnection();
|
|
9842
10695
|
case 11:
|
|
9843
10696
|
if (!floorRequestNeeded) {
|
|
9844
|
-
|
|
10697
|
+
_context45.next = 12;
|
|
9845
10698
|
break;
|
|
9846
10699
|
}
|
|
9847
10700
|
this.localShareInstanceId = _uuid.default.v4();
|
|
@@ -9872,15 +10725,15 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9872
10725
|
// we're sending the http request to Locus to request the screen share floor
|
|
9873
10726
|
// only after the SDP update, because that's how it's always been done for transcoded meetings
|
|
9874
10727
|
// and also if sharing from the start, we need confluence to have been created
|
|
9875
|
-
|
|
10728
|
+
_context45.next = 12;
|
|
9876
10729
|
return this.enqueueScreenShareFloorRequest();
|
|
9877
10730
|
case 12:
|
|
9878
10731
|
case "end":
|
|
9879
|
-
return
|
|
10732
|
+
return _context45.stop();
|
|
9880
10733
|
}
|
|
9881
|
-
},
|
|
10734
|
+
}, _callee45, this);
|
|
9882
10735
|
}));
|
|
9883
|
-
function publishStreams(
|
|
10736
|
+
function publishStreams(_x46) {
|
|
9884
10737
|
return _publishStreams.apply(this, arguments);
|
|
9885
10738
|
}
|
|
9886
10739
|
return publishStreams;
|
|
@@ -9895,20 +10748,20 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9895
10748
|
}, {
|
|
9896
10749
|
key: "unpublishStreams",
|
|
9897
10750
|
value: (function () {
|
|
9898
|
-
var _unpublishStreams = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
9899
|
-
var promises,
|
|
9900
|
-
return _regenerator.default.wrap(function (
|
|
9901
|
-
while (1) switch (
|
|
10751
|
+
var _unpublishStreams = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee46(streams) {
|
|
10752
|
+
var promises, _iterator2, _step2, stream;
|
|
10753
|
+
return _regenerator.default.wrap(function (_context46) {
|
|
10754
|
+
while (1) switch (_context46.prev = _context46.next) {
|
|
9902
10755
|
case 0:
|
|
9903
10756
|
_loggerProxy.default.logger.info("Meeting:index#unpublishStreams --> called with: ".concat((0, _stringify.default)(streams)));
|
|
9904
10757
|
this.checkMediaConnection();
|
|
9905
10758
|
promises = [];
|
|
9906
|
-
|
|
10759
|
+
_iterator2 = _createForOfIteratorHelper(streams.filter(function (t) {
|
|
9907
10760
|
return !!t;
|
|
9908
10761
|
}));
|
|
9909
10762
|
try {
|
|
9910
|
-
for (
|
|
9911
|
-
stream =
|
|
10763
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
10764
|
+
stream = _step2.value;
|
|
9912
10765
|
if (stream === this.mediaProperties.shareAudioStream) {
|
|
9913
10766
|
promises.push(this.setLocalShareAudioStream(undefined));
|
|
9914
10767
|
}
|
|
@@ -9923,14 +10776,14 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9923
10776
|
}
|
|
9924
10777
|
}
|
|
9925
10778
|
} catch (err) {
|
|
9926
|
-
|
|
10779
|
+
_iterator2.e(err);
|
|
9927
10780
|
} finally {
|
|
9928
|
-
|
|
10781
|
+
_iterator2.f();
|
|
9929
10782
|
}
|
|
9930
10783
|
if (!this.isMultistream) {
|
|
9931
10784
|
promises.push(this.updateTranscodedMediaConnection());
|
|
9932
10785
|
}
|
|
9933
|
-
|
|
10786
|
+
_context46.next = 1;
|
|
9934
10787
|
return _promise.default.all(promises);
|
|
9935
10788
|
case 1:
|
|
9936
10789
|
// we're allowing for the SDK to support just audio share as well
|
|
@@ -9951,11 +10804,11 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
9951
10804
|
}
|
|
9952
10805
|
case 2:
|
|
9953
10806
|
case "end":
|
|
9954
|
-
return
|
|
10807
|
+
return _context46.stop();
|
|
9955
10808
|
}
|
|
9956
|
-
},
|
|
10809
|
+
}, _callee46, this);
|
|
9957
10810
|
}));
|
|
9958
|
-
function unpublishStreams(
|
|
10811
|
+
function unpublishStreams(_x47) {
|
|
9959
10812
|
return _unpublishStreams.apply(this, arguments);
|
|
9960
10813
|
}
|
|
9961
10814
|
return unpublishStreams;
|
|
@@ -10021,16 +10874,16 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
10021
10874
|
}, {
|
|
10022
10875
|
key: "getMediaReachabilityMetricFields",
|
|
10023
10876
|
value: (function () {
|
|
10024
|
-
var _getMediaReachabilityMetricFields = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
10877
|
+
var _getMediaReachabilityMetricFields = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee47() {
|
|
10025
10878
|
var _this$mediaServerIp, _this$mediaConnection, _this$mediaConnection2, _this$mediaConnection3;
|
|
10026
10879
|
var reachabilityMetrics, successKeys, totalSuccessCases, selectedSubnetFirstOctet, isSubnetReachable, selectedCluster;
|
|
10027
|
-
return _regenerator.default.wrap(function (
|
|
10028
|
-
while (1) switch (
|
|
10880
|
+
return _regenerator.default.wrap(function (_context47) {
|
|
10881
|
+
while (1) switch (_context47.prev = _context47.next) {
|
|
10029
10882
|
case 0:
|
|
10030
|
-
|
|
10883
|
+
_context47.next = 1;
|
|
10031
10884
|
return this.webex.meetings.reachability.getReachabilityMetrics();
|
|
10032
10885
|
case 1:
|
|
10033
|
-
reachabilityMetrics =
|
|
10886
|
+
reachabilityMetrics = _context47.sent;
|
|
10034
10887
|
successKeys = ['reachability_public_udp_success', 'reachability_public_tcp_success', 'reachability_public_xtls_success', 'reachability_vmn_udp_success', 'reachability_vmn_tcp_success', 'reachability_vmn_xtls_success'];
|
|
10035
10888
|
totalSuccessCases = successKeys.reduce(function (total, key) {
|
|
10036
10889
|
var value = reachabilityMetrics[key];
|
|
@@ -10047,16 +10900,16 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
10047
10900
|
this.webex.meetings.reachability.isSubnetReachable(selectedSubnetFirstOctet);
|
|
10048
10901
|
}
|
|
10049
10902
|
selectedCluster = (_this$mediaConnection = (_this$mediaConnection2 = this.mediaConnections) === null || _this$mediaConnection2 === void 0 ? void 0 : (_this$mediaConnection3 = _this$mediaConnection2[0]) === null || _this$mediaConnection3 === void 0 ? void 0 : _this$mediaConnection3.mediaAgentCluster) !== null && _this$mediaConnection !== void 0 ? _this$mediaConnection : null;
|
|
10050
|
-
return
|
|
10903
|
+
return _context47.abrupt("return", _objectSpread(_objectSpread({}, reachabilityMetrics), {}, {
|
|
10051
10904
|
subnet_reachable: isSubnetReachable,
|
|
10052
10905
|
selected_cluster: selectedCluster,
|
|
10053
10906
|
selected_subnet: selectedSubnetFirstOctet ? "".concat(selectedSubnetFirstOctet, ".X.X.X") : null
|
|
10054
10907
|
}));
|
|
10055
10908
|
case 2:
|
|
10056
10909
|
case "end":
|
|
10057
|
-
return
|
|
10910
|
+
return _context47.stop();
|
|
10058
10911
|
}
|
|
10059
|
-
},
|
|
10912
|
+
}, _callee47, this);
|
|
10060
10913
|
}));
|
|
10061
10914
|
function getMediaReachabilityMetricFields() {
|
|
10062
10915
|
return _getMediaReachabilityMetricFields.apply(this, arguments);
|
|
@@ -10073,17 +10926,17 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
10073
10926
|
}, {
|
|
10074
10927
|
key: "setStage",
|
|
10075
10928
|
value: function setStage() {
|
|
10076
|
-
var
|
|
10077
|
-
|
|
10078
|
-
activeSpeakerProportion =
|
|
10079
|
-
customBackground =
|
|
10080
|
-
customLogo =
|
|
10081
|
-
customNameLabel =
|
|
10082
|
-
importantParticipants =
|
|
10083
|
-
|
|
10084
|
-
lockAttendeeViewOnStage =
|
|
10085
|
-
|
|
10086
|
-
showActiveSpeaker =
|
|
10929
|
+
var _ref49 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
10930
|
+
_ref49$activeSpeakerP = _ref49.activeSpeakerProportion,
|
|
10931
|
+
activeSpeakerProportion = _ref49$activeSpeakerP === void 0 ? 0.5 : _ref49$activeSpeakerP,
|
|
10932
|
+
customBackground = _ref49.customBackground,
|
|
10933
|
+
customLogo = _ref49.customLogo,
|
|
10934
|
+
customNameLabel = _ref49.customNameLabel,
|
|
10935
|
+
importantParticipants = _ref49.importantParticipants,
|
|
10936
|
+
_ref49$lockAttendeeVi = _ref49.lockAttendeeViewOnStage,
|
|
10937
|
+
lockAttendeeViewOnStage = _ref49$lockAttendeeVi === void 0 ? false : _ref49$lockAttendeeVi,
|
|
10938
|
+
_ref49$showActiveSpea = _ref49.showActiveSpeaker,
|
|
10939
|
+
showActiveSpeaker = _ref49$showActiveSpea === void 0 ? false : _ref49$showActiveSpea;
|
|
10087
10940
|
var videoLayout = {
|
|
10088
10941
|
overrideDefault: true,
|
|
10089
10942
|
lockAttendeeViewOnStageOnly: lockAttendeeViewOnStage,
|
|
@@ -10187,41 +11040,41 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
10187
11040
|
}, {
|
|
10188
11041
|
key: "refreshDataChannelToken",
|
|
10189
11042
|
value: (function () {
|
|
10190
|
-
var _refreshDataChannelToken = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
10191
|
-
var isPracticeSession, dataChannelTokenType, res, msg,
|
|
10192
|
-
return _regenerator.default.wrap(function (
|
|
10193
|
-
while (1) switch (
|
|
11043
|
+
var _refreshDataChannelToken = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee48() {
|
|
11044
|
+
var isPracticeSession, dataChannelTokenType, res, msg, _t39;
|
|
11045
|
+
return _regenerator.default.wrap(function (_context48) {
|
|
11046
|
+
while (1) switch (_context48.prev = _context48.next) {
|
|
10194
11047
|
case 0:
|
|
10195
11048
|
isPracticeSession = this.webinar.isJoinPracticeSessionDataChannel();
|
|
10196
11049
|
dataChannelTokenType = this.getDataChannelTokenType();
|
|
10197
|
-
|
|
10198
|
-
|
|
11050
|
+
_context48.prev = 1;
|
|
11051
|
+
_context48.next = 2;
|
|
10199
11052
|
return this.meetingRequest.fetchDatachannelToken({
|
|
10200
11053
|
locusUrl: this.locusUrl,
|
|
10201
11054
|
requestingParticipantId: this.members.selfId,
|
|
10202
11055
|
isPracticeSession: isPracticeSession
|
|
10203
11056
|
});
|
|
10204
11057
|
case 2:
|
|
10205
|
-
res =
|
|
10206
|
-
return
|
|
11058
|
+
res = _context48.sent;
|
|
11059
|
+
return _context48.abrupt("return", {
|
|
10207
11060
|
body: {
|
|
10208
11061
|
datachannelToken: res.body.datachannelToken,
|
|
10209
11062
|
dataChannelTokenType: dataChannelTokenType
|
|
10210
11063
|
}
|
|
10211
11064
|
});
|
|
10212
11065
|
case 3:
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
msg = (
|
|
11066
|
+
_context48.prev = 3;
|
|
11067
|
+
_t39 = _context48["catch"](1);
|
|
11068
|
+
msg = (_t39 === null || _t39 === void 0 ? void 0 : _t39.message) || String(_t39);
|
|
10216
11069
|
_loggerProxy.default.logger.warn("Meeting:index#refreshDataChannelToken --> DataChannel token refresh failed (likely locus changed or participant left): ".concat(msg), {
|
|
10217
|
-
statusCode:
|
|
11070
|
+
statusCode: _t39 === null || _t39 === void 0 ? void 0 : _t39.statusCode
|
|
10218
11071
|
});
|
|
10219
|
-
return
|
|
11072
|
+
return _context48.abrupt("return", null);
|
|
10220
11073
|
case 4:
|
|
10221
11074
|
case "end":
|
|
10222
|
-
return
|
|
11075
|
+
return _context48.stop();
|
|
10223
11076
|
}
|
|
10224
|
-
},
|
|
11077
|
+
}, _callee48, this, [[1, 3]]);
|
|
10225
11078
|
}));
|
|
10226
11079
|
function refreshDataChannelToken() {
|
|
10227
11080
|
return _refreshDataChannelToken.apply(this, arguments);
|