@webex/plugin-meetings 3.12.0-next.13 → 3.12.0-next.131
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/AGENTS.md +9 -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 +1045 -393
- 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 +23 -8
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interpretation/index.js +10 -1
- 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 +409 -122
- 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 +19 -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 +5 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +1669 -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 +34 -2
- package/dist/meeting/util.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 +281 -124
- 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/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 +189 -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 +61 -7
- package/dist/types/locus-info/infoUtils.d.ts +8 -0
- package/dist/types/locus-info/types.d.ts +21 -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 +4 -0
- package/dist/types/meeting/index.d.ts +175 -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 +38 -18
- 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/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/index.ts +16 -0
- package/src/annotation/index.ts +6 -4
- 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/index.ts +62 -10
- package/src/hashTree/constants.ts +7 -0
- package/src/hashTree/hashTreeParser.ts +796 -192
- package/src/hashTree/utils.ts +19 -0
- package/src/index.ts +6 -0
- package/src/interceptors/dataChannelAuthToken.ts +88 -12
- package/src/interceptors/locusRetry.ts +25 -4
- package/src/interpretation/index.ts +27 -9
- package/src/interpretation/interpretation.types.ts +11 -0
- package/src/locus-info/controlsUtils.ts +3 -1
- package/src/locus-info/index.ts +413 -130
- package/src/locus-info/infoUtils.ts +41 -6
- package/src/locus-info/types.ts +25 -1
- package/src/media/MediaConnectionAwaiter.ts +21 -4
- package/src/media/index.ts +10 -1
- package/src/media/properties.ts +8 -3
- package/src/meeting/in-meeting-actions.ts +8 -0
- package/src/meeting/index.ts +923 -117
- 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 +46 -5
- package/src/meeting-info/meeting-info-v2.ts +10 -4
- package/src/meetings/index.ts +178 -78
- 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/index.ts +10 -0
- package/src/member/types.ts +1 -0
- package/src/member/util.ts +29 -0
- package/src/members/index.ts +70 -7
- package/src/members/util.ts +12 -4
- package/src/metrics/constants.ts +6 -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/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/reactions.type.ts +3 -0
- package/src/recording-controller/index.ts +1 -2
- package/src/roap/turnDiscovery.ts +9 -1
- 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 +2299 -243
- 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 +205 -4
- package/test/unit/spec/interpretation/index.ts +26 -4
- package/test/unit/spec/locus-info/controlsUtils.js +172 -57
- package/test/unit/spec/locus-info/index.js +671 -63
- 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 +4 -0
- package/test/unit/spec/meeting/index.js +2733 -116
- 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 +153 -1
- package/test/unit/spec/meeting-info/meetinginfov2.js +76 -10
- package/test/unit/spec/meetings/index.js +486 -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/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
|
@@ -37,6 +37,7 @@ var _constants = require("../constants");
|
|
|
37
37
|
var _request = _interopRequireDefault(require("./request"));
|
|
38
38
|
var _reachability = require("./reachability.types");
|
|
39
39
|
var _clusterReachability = require("./clusterReachability");
|
|
40
|
+
var _util2 = require("./util");
|
|
40
41
|
var _eventsScope = _interopRequireDefault(require("../common/events/events-scope"));
|
|
41
42
|
var _constants2 = _interopRequireDefault(require("../metrics/constants"));
|
|
42
43
|
var _metrics = _interopRequireDefault(require("../metrics"));
|
|
@@ -227,7 +228,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
227
228
|
return _regenerator.default.wrap(function (_context2) {
|
|
228
229
|
while (1) switch (_context2.prev = _context2.next) {
|
|
229
230
|
case 0:
|
|
230
|
-
if (this.webex.config.meetings.enableReachabilityChecks) {
|
|
231
|
+
if ((0, _util2.isReachabilityEnabled)(this.webex.config.meetings.enableReachabilityChecks)) {
|
|
231
232
|
_context2.next = 1;
|
|
232
233
|
break;
|
|
233
234
|
}
|
|
@@ -652,7 +653,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
652
653
|
* Returns true only if ALL protocols (UDP, TCP and TLS) have been tested and none
|
|
653
654
|
* of the media clusters where reachable with any of the protocols. This is done
|
|
654
655
|
* irrespective of the config, so for example:
|
|
655
|
-
* if config.meetings.
|
|
656
|
+
* if config.meetings.enableReachabilityChecks disables TLS,
|
|
656
657
|
* it will return false, because TLS reachability won't be tested,
|
|
657
658
|
* so we can't say for sure that media backend is unreachable over TLS.
|
|
658
659
|
*
|
|
@@ -721,6 +722,47 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
721
722
|
}
|
|
722
723
|
return isWebexMediaBackendUnreachable;
|
|
723
724
|
}()
|
|
725
|
+
/**
|
|
726
|
+
* Checks if any cluster is reachable via the given protocol based on stored reachability results.
|
|
727
|
+
*
|
|
728
|
+
* @param {string} protocol - the protocol to check ('udp', 'tcp', or 'xtls')
|
|
729
|
+
* @returns {Promise<boolean>} true if at least one cluster has a 'reachable' result for the given protocol
|
|
730
|
+
*/
|
|
731
|
+
)
|
|
732
|
+
}, {
|
|
733
|
+
key: "isAnyClusterReachableViaProtocol",
|
|
734
|
+
value: (function () {
|
|
735
|
+
var _isAnyClusterReachableViaProtocol = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee0(protocol) {
|
|
736
|
+
var resultsJson, results, _t6;
|
|
737
|
+
return _regenerator.default.wrap(function (_context0) {
|
|
738
|
+
while (1) switch (_context0.prev = _context0.next) {
|
|
739
|
+
case 0:
|
|
740
|
+
_context0.prev = 0;
|
|
741
|
+
_context0.next = 1;
|
|
742
|
+
return this.webex.boundedStorage.get(this.namespace, _constants.REACHABILITY.localStorageResult);
|
|
743
|
+
case 1:
|
|
744
|
+
resultsJson = _context0.sent;
|
|
745
|
+
results = JSON.parse(resultsJson);
|
|
746
|
+
return _context0.abrupt("return", (0, _values.default)(results).some(function (result) {
|
|
747
|
+
var _result$protocol3;
|
|
748
|
+
return ((_result$protocol3 = result[protocol]) === null || _result$protocol3 === void 0 ? void 0 : _result$protocol3.result) === 'reachable';
|
|
749
|
+
}));
|
|
750
|
+
case 2:
|
|
751
|
+
_context0.prev = 2;
|
|
752
|
+
_t6 = _context0["catch"](0);
|
|
753
|
+
_loggerProxy.default.logger.warn("Reachability:index#isAnyClusterReachableViaProtocol --> Error reading reachability data: ".concat(_t6));
|
|
754
|
+
return _context0.abrupt("return", false);
|
|
755
|
+
case 3:
|
|
756
|
+
case "end":
|
|
757
|
+
return _context0.stop();
|
|
758
|
+
}
|
|
759
|
+
}, _callee0, this, [[0, 2]]);
|
|
760
|
+
}));
|
|
761
|
+
function isAnyClusterReachableViaProtocol(_x4) {
|
|
762
|
+
return _isAnyClusterReachableViaProtocol.apply(this, arguments);
|
|
763
|
+
}
|
|
764
|
+
return isAnyClusterReachableViaProtocol;
|
|
765
|
+
}()
|
|
724
766
|
/**
|
|
725
767
|
* Get list of all unreachable clusters
|
|
726
768
|
* @returns {array} Unreachable clusters
|
|
@@ -900,15 +942,15 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
900
942
|
}, {
|
|
901
943
|
key: "sendMetric",
|
|
902
944
|
value: (function () {
|
|
903
|
-
var _sendMetric = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
945
|
+
var _sendMetric = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee1() {
|
|
904
946
|
var aborted,
|
|
905
947
|
results,
|
|
906
948
|
stats,
|
|
907
|
-
|
|
908
|
-
return _regenerator.default.wrap(function (
|
|
909
|
-
while (1) switch (
|
|
949
|
+
_args1 = arguments;
|
|
950
|
+
return _regenerator.default.wrap(function (_context1) {
|
|
951
|
+
while (1) switch (_context1.prev = _context1.next) {
|
|
910
952
|
case 0:
|
|
911
|
-
aborted =
|
|
953
|
+
aborted = _args1.length > 0 && _args1[0] !== undefined ? _args1[0] : false;
|
|
912
954
|
results = [];
|
|
913
955
|
(0, _values.default)(this.clusterReachability).forEach(function (clusterReachability) {
|
|
914
956
|
results.push(_objectSpread(_objectSpread({}, clusterReachability.getResult()), {}, {
|
|
@@ -940,9 +982,9 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
940
982
|
_metrics.default.sendBehavioralMetric(_constants2.default.REACHABILITY_COMPLETED, _metrics.default.prepareMetricFields(stats));
|
|
941
983
|
case 1:
|
|
942
984
|
case "end":
|
|
943
|
-
return
|
|
985
|
+
return _context1.stop();
|
|
944
986
|
}
|
|
945
|
-
},
|
|
987
|
+
}, _callee1, this);
|
|
946
988
|
}));
|
|
947
989
|
function sendMetric() {
|
|
948
990
|
return _sendMetric.apply(this, arguments);
|
|
@@ -998,19 +1040,19 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
998
1040
|
}, {
|
|
999
1041
|
key: "storeResults",
|
|
1000
1042
|
value: (function () {
|
|
1001
|
-
var _storeResults = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
1002
|
-
return _regenerator.default.wrap(function (
|
|
1003
|
-
while (1) switch (
|
|
1043
|
+
var _storeResults = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee10(results) {
|
|
1044
|
+
return _regenerator.default.wrap(function (_context10) {
|
|
1045
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
1004
1046
|
case 0:
|
|
1005
|
-
|
|
1047
|
+
_context10.next = 1;
|
|
1006
1048
|
return this.webex.boundedStorage.put(this.namespace, _constants.REACHABILITY.localStorageResult, (0, _stringify.default)(results));
|
|
1007
1049
|
case 1:
|
|
1008
1050
|
case "end":
|
|
1009
|
-
return
|
|
1051
|
+
return _context10.stop();
|
|
1010
1052
|
}
|
|
1011
|
-
},
|
|
1053
|
+
}, _callee10, this);
|
|
1012
1054
|
}));
|
|
1013
|
-
function storeResults(
|
|
1055
|
+
function storeResults(_x5) {
|
|
1014
1056
|
return _storeResults.apply(this, arguments);
|
|
1015
1057
|
}
|
|
1016
1058
|
return storeResults;
|
|
@@ -1071,20 +1113,20 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1071
1113
|
}, {
|
|
1072
1114
|
key: "performReachabilityChecks",
|
|
1073
1115
|
value: (function () {
|
|
1074
|
-
var _performReachabilityChecks = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
1116
|
+
var _performReachabilityChecks = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee14(clusterList) {
|
|
1075
1117
|
var _this4 = this;
|
|
1076
|
-
var results, isFirstResult;
|
|
1077
|
-
return _regenerator.default.wrap(function (
|
|
1078
|
-
while (1) switch (
|
|
1118
|
+
var results, protocols, enabledProtocols, isFirstResult;
|
|
1119
|
+
return _regenerator.default.wrap(function (_context14) {
|
|
1120
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
1079
1121
|
case 0:
|
|
1080
1122
|
results = {};
|
|
1081
1123
|
this.clusterReachability = {};
|
|
1082
1124
|
this.startTime = performance.now();
|
|
1083
|
-
|
|
1125
|
+
protocols = (0, _util2.resolveReachabilityProtocols)(
|
|
1084
1126
|
// @ts-ignore
|
|
1085
|
-
this.webex.config.meetings.
|
|
1086
|
-
|
|
1087
|
-
|
|
1127
|
+
this.webex.config.meetings.enableReachabilityChecks);
|
|
1128
|
+
enabledProtocols = [protocols.udp && 'UDP', protocols.tcp && 'TCP', protocols.tls && 'TLS'].filter(Boolean);
|
|
1129
|
+
_loggerProxy.default.logger.log("Reachability:index#performReachabilityChecks --> doing ".concat(enabledProtocols.join(','), " reachability checks"));
|
|
1088
1130
|
this.resetResultCounters();
|
|
1089
1131
|
|
|
1090
1132
|
// sanitize the urls in the clusterList
|
|
@@ -1092,17 +1134,13 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1092
1134
|
var cluster = clusterList[key];
|
|
1093
1135
|
|
|
1094
1136
|
// Linus doesn't support TCP reachability checks on video mesh nodes
|
|
1095
|
-
var includeTcpReachability =
|
|
1096
|
-
// @ts-ignore
|
|
1097
|
-
_this4.webex.config.meetings.experimental.enableTcpReachability && !cluster.isVideoMesh;
|
|
1137
|
+
var includeTcpReachability = protocols.tcp && !cluster.isVideoMesh;
|
|
1098
1138
|
if (!includeTcpReachability) {
|
|
1099
1139
|
cluster.tcp = [];
|
|
1100
1140
|
}
|
|
1101
1141
|
|
|
1102
1142
|
// Linus doesn't support xTLS reachability checks on video mesh nodes
|
|
1103
|
-
var includeTlsReachability =
|
|
1104
|
-
// @ts-ignore
|
|
1105
|
-
_this4.webex.config.meetings.experimental.enableTlsReachability && !cluster.isVideoMesh;
|
|
1143
|
+
var includeTlsReachability = protocols.tls && !cluster.isVideoMesh;
|
|
1106
1144
|
if (!includeTlsReachability) {
|
|
1107
1145
|
cluster.xtls = [];
|
|
1108
1146
|
}
|
|
@@ -1133,11 +1171,11 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1133
1171
|
tcp: true,
|
|
1134
1172
|
xtls: true
|
|
1135
1173
|
}; // save the initialized results (in case we don't get any "resultReady" events at all)
|
|
1136
|
-
|
|
1174
|
+
_context14.next = 1;
|
|
1137
1175
|
return this.storeResults(results);
|
|
1138
1176
|
case 1:
|
|
1139
1177
|
if (!(!clusterList || !(0, _keys.default)(clusterList).length)) {
|
|
1140
|
-
|
|
1178
|
+
_context14.next = 2;
|
|
1141
1179
|
break;
|
|
1142
1180
|
}
|
|
1143
1181
|
// nothing to do, finish immediately
|
|
@@ -1146,7 +1184,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1146
1184
|
file: 'reachability',
|
|
1147
1185
|
function: 'performReachabilityChecks'
|
|
1148
1186
|
}, 'reachability:done', {});
|
|
1149
|
-
return
|
|
1187
|
+
return _context14.abrupt("return");
|
|
1150
1188
|
case 2:
|
|
1151
1189
|
this.startTimers();
|
|
1152
1190
|
|
|
@@ -1157,10 +1195,10 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1157
1195
|
// @ts-ignore
|
|
1158
1196
|
_this4.webex.config.meetings.enablePerUdpUrlReachability);
|
|
1159
1197
|
_this4.clusterReachability[key].on(_clusterReachability.Events.resultReady, /*#__PURE__*/function () {
|
|
1160
|
-
var _ref6 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
1198
|
+
var _ref6 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee11(data) {
|
|
1161
1199
|
var protocol, result, clientMediaIPs, latencyInMilliseconds, areAllResultsReady;
|
|
1162
|
-
return _regenerator.default.wrap(function (
|
|
1163
|
-
while (1) switch (
|
|
1200
|
+
return _regenerator.default.wrap(function (_context11) {
|
|
1201
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
1164
1202
|
case 0:
|
|
1165
1203
|
protocol = data.protocol, result = data.result, clientMediaIPs = data.clientMediaIPs, latencyInMilliseconds = data.latencyInMilliseconds;
|
|
1166
1204
|
if (isFirstResult[protocol]) {
|
|
@@ -1177,7 +1215,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1177
1215
|
results[key][protocol].result = result;
|
|
1178
1216
|
results[key][protocol].clientMediaIPs = clientMediaIPs;
|
|
1179
1217
|
results[key][protocol].latencyInMilliseconds = latencyInMilliseconds;
|
|
1180
|
-
|
|
1218
|
+
_context11.next = 1;
|
|
1181
1219
|
return _this4.storeResults(results);
|
|
1182
1220
|
case 1:
|
|
1183
1221
|
if (areAllResultsReady) {
|
|
@@ -1192,47 +1230,47 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1192
1230
|
}
|
|
1193
1231
|
case 2:
|
|
1194
1232
|
case "end":
|
|
1195
|
-
return
|
|
1233
|
+
return _context11.stop();
|
|
1196
1234
|
}
|
|
1197
|
-
},
|
|
1235
|
+
}, _callee11);
|
|
1198
1236
|
}));
|
|
1199
|
-
return function (
|
|
1237
|
+
return function (_x7) {
|
|
1200
1238
|
return _ref6.apply(this, arguments);
|
|
1201
1239
|
};
|
|
1202
1240
|
}());
|
|
1203
1241
|
|
|
1204
1242
|
// clientMediaIps can be updated independently from the results, so we need to listen for them too
|
|
1205
1243
|
_this4.clusterReachability[key].on(_clusterReachability.Events.clientMediaIpsUpdated, /*#__PURE__*/function () {
|
|
1206
|
-
var _ref7 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
1207
|
-
return _regenerator.default.wrap(function (
|
|
1208
|
-
while (1) switch (
|
|
1244
|
+
var _ref7 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee12(data) {
|
|
1245
|
+
return _regenerator.default.wrap(function (_context12) {
|
|
1246
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
1209
1247
|
case 0:
|
|
1210
1248
|
results[key][data.protocol].clientMediaIPs = data.clientMediaIPs;
|
|
1211
|
-
|
|
1249
|
+
_context12.next = 1;
|
|
1212
1250
|
return _this4.storeResults(results);
|
|
1213
1251
|
case 1:
|
|
1214
1252
|
case "end":
|
|
1215
|
-
return
|
|
1253
|
+
return _context12.stop();
|
|
1216
1254
|
}
|
|
1217
|
-
},
|
|
1255
|
+
}, _callee12);
|
|
1218
1256
|
}));
|
|
1219
|
-
return function (
|
|
1257
|
+
return function (_x8) {
|
|
1220
1258
|
return _ref7.apply(this, arguments);
|
|
1221
1259
|
};
|
|
1222
1260
|
}());
|
|
1223
1261
|
_this4.clusterReachability[key].on(_clusterReachability.Events.natTypeUpdated, /*#__PURE__*/function () {
|
|
1224
|
-
var _ref8 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
1225
|
-
return _regenerator.default.wrap(function (
|
|
1226
|
-
while (1) switch (
|
|
1262
|
+
var _ref8 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee13(data) {
|
|
1263
|
+
return _regenerator.default.wrap(function (_context13) {
|
|
1264
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
1227
1265
|
case 0:
|
|
1228
1266
|
_this4.natType = data.natType;
|
|
1229
1267
|
case 1:
|
|
1230
1268
|
case "end":
|
|
1231
|
-
return
|
|
1269
|
+
return _context13.stop();
|
|
1232
1270
|
}
|
|
1233
|
-
},
|
|
1271
|
+
}, _callee13);
|
|
1234
1272
|
}));
|
|
1235
|
-
return function (
|
|
1273
|
+
return function (_x9) {
|
|
1236
1274
|
return _ref8.apply(this, arguments);
|
|
1237
1275
|
};
|
|
1238
1276
|
}());
|
|
@@ -1240,11 +1278,11 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1240
1278
|
});
|
|
1241
1279
|
case 3:
|
|
1242
1280
|
case "end":
|
|
1243
|
-
return
|
|
1281
|
+
return _context14.stop();
|
|
1244
1282
|
}
|
|
1245
|
-
},
|
|
1283
|
+
}, _callee14, this);
|
|
1246
1284
|
}));
|
|
1247
|
-
function performReachabilityChecks(
|
|
1285
|
+
function performReachabilityChecks(_x6) {
|
|
1248
1286
|
return _performReachabilityChecks.apply(this, arguments);
|
|
1249
1287
|
}
|
|
1250
1288
|
return performReachabilityChecks;
|
|
@@ -1261,42 +1299,42 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1261
1299
|
}, {
|
|
1262
1300
|
key: "getClientMediaPreferences",
|
|
1263
1301
|
value: (function () {
|
|
1264
|
-
var _getClientMediaPreferences = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
1265
|
-
var reachabilityReport,
|
|
1266
|
-
return _regenerator.default.wrap(function (
|
|
1267
|
-
while (1) switch (
|
|
1302
|
+
var _getClientMediaPreferences = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee15(isMultistream, ipver) {
|
|
1303
|
+
var reachabilityReport, _t7, _t8, _t9;
|
|
1304
|
+
return _regenerator.default.wrap(function (_context15) {
|
|
1305
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
1268
1306
|
case 0:
|
|
1269
1307
|
if (this.orpheusApiVersion) {
|
|
1270
|
-
|
|
1308
|
+
_context15.next = 2;
|
|
1271
1309
|
break;
|
|
1272
1310
|
}
|
|
1273
|
-
|
|
1274
|
-
|
|
1311
|
+
_t7 = ipver;
|
|
1312
|
+
_context15.next = 1;
|
|
1275
1313
|
return this.getJoinCookie();
|
|
1276
1314
|
case 1:
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
return
|
|
1280
|
-
ipver:
|
|
1281
|
-
joinCookie:
|
|
1282
|
-
preferTranscoding:
|
|
1315
|
+
_t8 = _context15.sent;
|
|
1316
|
+
_t9 = !isMultistream;
|
|
1317
|
+
return _context15.abrupt("return", {
|
|
1318
|
+
ipver: _t7,
|
|
1319
|
+
joinCookie: _t8,
|
|
1320
|
+
preferTranscoding: _t9
|
|
1283
1321
|
});
|
|
1284
1322
|
case 2:
|
|
1285
|
-
|
|
1323
|
+
_context15.next = 3;
|
|
1286
1324
|
return this.getReachabilityReport();
|
|
1287
1325
|
case 3:
|
|
1288
|
-
reachabilityReport =
|
|
1289
|
-
return
|
|
1326
|
+
reachabilityReport = _context15.sent;
|
|
1327
|
+
return _context15.abrupt("return", _objectSpread({
|
|
1290
1328
|
ipver: ipver,
|
|
1291
1329
|
preferTranscoding: !isMultistream
|
|
1292
1330
|
}, reachabilityReport));
|
|
1293
1331
|
case 4:
|
|
1294
1332
|
case "end":
|
|
1295
|
-
return
|
|
1333
|
+
return _context15.stop();
|
|
1296
1334
|
}
|
|
1297
|
-
},
|
|
1335
|
+
}, _callee15, this);
|
|
1298
1336
|
}));
|
|
1299
|
-
function getClientMediaPreferences(
|
|
1337
|
+
function getClientMediaPreferences(_x0, _x1) {
|
|
1300
1338
|
return _getClientMediaPreferences.apply(this, arguments);
|
|
1301
1339
|
}
|
|
1302
1340
|
return getClientMediaPreferences;
|
|
@@ -1312,22 +1350,22 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1312
1350
|
}, {
|
|
1313
1351
|
key: "getReachabilityReportToAttachToRoap",
|
|
1314
1352
|
value: (function () {
|
|
1315
|
-
var _getReachabilityReportToAttachToRoap = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function
|
|
1316
|
-
return _regenerator.default.wrap(function (
|
|
1317
|
-
while (1) switch (
|
|
1353
|
+
var _getReachabilityReportToAttachToRoap = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee16() {
|
|
1354
|
+
return _regenerator.default.wrap(function (_context16) {
|
|
1355
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
1318
1356
|
case 0:
|
|
1319
1357
|
if (this.orpheusApiVersion) {
|
|
1320
|
-
|
|
1358
|
+
_context16.next = 1;
|
|
1321
1359
|
break;
|
|
1322
1360
|
}
|
|
1323
|
-
return
|
|
1361
|
+
return _context16.abrupt("return", this.getReachabilityResults());
|
|
1324
1362
|
case 1:
|
|
1325
|
-
return
|
|
1363
|
+
return _context16.abrupt("return", undefined);
|
|
1326
1364
|
case 2:
|
|
1327
1365
|
case "end":
|
|
1328
|
-
return
|
|
1366
|
+
return _context16.stop();
|
|
1329
1367
|
}
|
|
1330
|
-
},
|
|
1368
|
+
}, _callee16, this);
|
|
1331
1369
|
}));
|
|
1332
1370
|
function getReachabilityReportToAttachToRoap() {
|
|
1333
1371
|
return _getReachabilityReportToAttachToRoap.apply(this, arguments);
|