@webex/plugin-meetings 3.12.0-next.12 → 3.12.0-next.121

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.
Files changed (227) hide show
  1. package/AGENTS.md +9 -0
  2. package/dist/aiEnableRequest/index.js +15 -2
  3. package/dist/aiEnableRequest/index.js.map +1 -1
  4. package/dist/breakouts/breakout.js +8 -3
  5. package/dist/breakouts/breakout.js.map +1 -1
  6. package/dist/breakouts/events.js +29 -14
  7. package/dist/breakouts/events.js.map +1 -1
  8. package/dist/breakouts/index.js +90 -3
  9. package/dist/breakouts/index.js.map +1 -1
  10. package/dist/common/errors/webex-errors.js +49 -5
  11. package/dist/common/errors/webex-errors.js.map +1 -1
  12. package/dist/config.js +2 -2
  13. package/dist/config.js.map +1 -1
  14. package/dist/constants.js +37 -10
  15. package/dist/constants.js.map +1 -1
  16. package/dist/controls-options-manager/index.js +46 -10
  17. package/dist/controls-options-manager/index.js.map +1 -1
  18. package/dist/hashTree/constants.js +4 -1
  19. package/dist/hashTree/constants.js.map +1 -1
  20. package/dist/hashTree/hashTreeParser.js +1045 -393
  21. package/dist/hashTree/hashTreeParser.js.map +1 -1
  22. package/dist/hashTree/utils.js +20 -0
  23. package/dist/hashTree/utils.js.map +1 -1
  24. package/dist/index.js +7 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/interceptors/dataChannelAuthToken.js +75 -15
  27. package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
  28. package/dist/interceptors/locusRetry.js +23 -8
  29. package/dist/interceptors/locusRetry.js.map +1 -1
  30. package/dist/interpretation/index.js +10 -1
  31. package/dist/interpretation/index.js.map +1 -1
  32. package/dist/interpretation/interpretation.types.js +7 -0
  33. package/dist/interpretation/interpretation.types.js.map +1 -0
  34. package/dist/interpretation/siLanguage.js +1 -1
  35. package/dist/locus-info/controlsUtils.js +4 -1
  36. package/dist/locus-info/controlsUtils.js.map +1 -1
  37. package/dist/locus-info/index.js +406 -121
  38. package/dist/locus-info/index.js.map +1 -1
  39. package/dist/locus-info/infoUtils.js +36 -5
  40. package/dist/locus-info/infoUtils.js.map +1 -1
  41. package/dist/locus-info/types.js +19 -0
  42. package/dist/locus-info/types.js.map +1 -1
  43. package/dist/media/MediaConnectionAwaiter.js +15 -2
  44. package/dist/media/MediaConnectionAwaiter.js.map +1 -1
  45. package/dist/media/index.js +8 -2
  46. package/dist/media/index.js.map +1 -1
  47. package/dist/media/properties.js +4 -5
  48. package/dist/media/properties.js.map +1 -1
  49. package/dist/meeting/in-meeting-actions.js +5 -1
  50. package/dist/meeting/in-meeting-actions.js.map +1 -1
  51. package/dist/meeting/index.js +1667 -834
  52. package/dist/meeting/index.js.map +1 -1
  53. package/dist/meeting/locusMediaRequest.js +229 -82
  54. package/dist/meeting/locusMediaRequest.js.map +1 -1
  55. package/dist/meeting/muteState.js +10 -1
  56. package/dist/meeting/muteState.js.map +1 -1
  57. package/dist/meeting/request.js +5 -2
  58. package/dist/meeting/request.js.map +1 -1
  59. package/dist/meeting/util.js +34 -2
  60. package/dist/meeting/util.js.map +1 -1
  61. package/dist/meeting-info/meeting-info-v2.js +2 -2
  62. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  63. package/dist/meetings/index.js +256 -118
  64. package/dist/meetings/index.js.map +1 -1
  65. package/dist/meetings/meetings.types.js +6 -1
  66. package/dist/meetings/meetings.types.js.map +1 -1
  67. package/dist/meetings/request.js +39 -0
  68. package/dist/meetings/request.js.map +1 -1
  69. package/dist/meetings/util.js +116 -18
  70. package/dist/meetings/util.js.map +1 -1
  71. package/dist/member/index.js +10 -0
  72. package/dist/member/index.js.map +1 -1
  73. package/dist/member/types.js.map +1 -1
  74. package/dist/member/util.js +30 -0
  75. package/dist/member/util.js.map +1 -1
  76. package/dist/members/index.js +101 -43
  77. package/dist/members/index.js.map +1 -1
  78. package/dist/members/util.js +8 -1
  79. package/dist/members/util.js.map +1 -1
  80. package/dist/metrics/constants.js +7 -1
  81. package/dist/metrics/constants.js.map +1 -1
  82. package/dist/multistream/codec/constants.js +63 -0
  83. package/dist/multistream/codec/constants.js.map +1 -0
  84. package/dist/multistream/mediaRequestManager.js +62 -15
  85. package/dist/multistream/mediaRequestManager.js.map +1 -1
  86. package/dist/multistream/receiveSlot.js +9 -0
  87. package/dist/multistream/receiveSlot.js.map +1 -1
  88. package/dist/reachability/clusterReachability.js.map +1 -1
  89. package/dist/reachability/index.js +121 -83
  90. package/dist/reachability/index.js.map +1 -1
  91. package/dist/reachability/reachability.types.js +2 -0
  92. package/dist/reachability/reachability.types.js.map +1 -1
  93. package/dist/reachability/util.js +45 -0
  94. package/dist/reachability/util.js.map +1 -1
  95. package/dist/reactions/reactions.type.js.map +1 -1
  96. package/dist/recording-controller/index.js +1 -3
  97. package/dist/recording-controller/index.js.map +1 -1
  98. package/dist/roap/turnDiscovery.js +8 -1
  99. package/dist/roap/turnDiscovery.js.map +1 -1
  100. package/dist/types/common/errors/webex-errors.d.ts +32 -2
  101. package/dist/types/config.d.ts +2 -2
  102. package/dist/types/constants.d.ts +13 -1
  103. package/dist/types/controls-options-manager/index.d.ts +16 -0
  104. package/dist/types/hashTree/constants.d.ts +1 -0
  105. package/dist/types/hashTree/hashTreeParser.d.ts +189 -22
  106. package/dist/types/hashTree/utils.d.ts +7 -0
  107. package/dist/types/index.d.ts +3 -0
  108. package/dist/types/interceptors/locusRetry.d.ts +4 -4
  109. package/dist/types/interpretation/interpretation.types.d.ts +10 -0
  110. package/dist/types/locus-info/index.d.ts +61 -7
  111. package/dist/types/locus-info/infoUtils.d.ts +8 -0
  112. package/dist/types/locus-info/types.d.ts +21 -1
  113. package/dist/types/media/MediaConnectionAwaiter.d.ts +10 -1
  114. package/dist/types/media/properties.d.ts +6 -2
  115. package/dist/types/meeting/in-meeting-actions.d.ts +4 -0
  116. package/dist/types/meeting/index.d.ts +175 -11
  117. package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
  118. package/dist/types/meeting/request.d.ts +1 -0
  119. package/dist/types/meeting/util.d.ts +9 -0
  120. package/dist/types/meetings/index.d.ts +38 -18
  121. package/dist/types/meetings/meetings.types.d.ts +15 -0
  122. package/dist/types/meetings/request.d.ts +14 -0
  123. package/dist/types/member/index.d.ts +1 -0
  124. package/dist/types/member/types.d.ts +1 -0
  125. package/dist/types/member/util.d.ts +9 -0
  126. package/dist/types/members/index.d.ts +15 -2
  127. package/dist/types/members/util.d.ts +1 -5
  128. package/dist/types/metrics/constants.d.ts +6 -0
  129. package/dist/types/multistream/codec/constants.d.ts +7 -0
  130. package/dist/types/multistream/mediaRequestManager.d.ts +22 -5
  131. package/dist/types/reachability/clusterReachability.d.ts +3 -3
  132. package/dist/types/reachability/index.d.ts +10 -3
  133. package/dist/types/reachability/reachability.types.d.ts +7 -0
  134. package/dist/types/reachability/util.d.ts +17 -0
  135. package/dist/types/reactions/reactions.type.d.ts +3 -0
  136. package/dist/webinar/index.js +307 -161
  137. package/dist/webinar/index.js.map +1 -1
  138. package/package.json +23 -23
  139. package/src/aiEnableRequest/index.ts +16 -0
  140. package/src/breakouts/breakout.ts +3 -1
  141. package/src/breakouts/events.ts +33 -11
  142. package/src/breakouts/index.ts +110 -1
  143. package/src/common/errors/webex-errors.ts +50 -3
  144. package/src/config.ts +2 -2
  145. package/src/constants.ts +21 -3
  146. package/src/controls-options-manager/index.ts +62 -10
  147. package/src/hashTree/constants.ts +7 -0
  148. package/src/hashTree/hashTreeParser.ts +796 -192
  149. package/src/hashTree/utils.ts +19 -0
  150. package/src/index.ts +6 -0
  151. package/src/interceptors/dataChannelAuthToken.ts +88 -12
  152. package/src/interceptors/locusRetry.ts +25 -4
  153. package/src/interpretation/index.ts +27 -9
  154. package/src/interpretation/interpretation.types.ts +11 -0
  155. package/src/locus-info/controlsUtils.ts +3 -1
  156. package/src/locus-info/index.ts +412 -130
  157. package/src/locus-info/infoUtils.ts +41 -6
  158. package/src/locus-info/types.ts +25 -1
  159. package/src/media/MediaConnectionAwaiter.ts +21 -4
  160. package/src/media/index.ts +10 -1
  161. package/src/media/properties.ts +8 -3
  162. package/src/meeting/in-meeting-actions.ts +8 -0
  163. package/src/meeting/index.ts +922 -116
  164. package/src/meeting/locusMediaRequest.ts +106 -6
  165. package/src/meeting/muteState.ts +10 -1
  166. package/src/meeting/request.ts +11 -0
  167. package/src/meeting/util.ts +46 -5
  168. package/src/meeting-info/meeting-info-v2.ts +4 -2
  169. package/src/meetings/index.ts +168 -79
  170. package/src/meetings/meetings.types.ts +19 -0
  171. package/src/meetings/request.ts +43 -0
  172. package/src/meetings/util.ts +117 -4
  173. package/src/member/index.ts +10 -0
  174. package/src/member/types.ts +1 -0
  175. package/src/member/util.ts +29 -0
  176. package/src/members/index.ts +70 -7
  177. package/src/members/util.ts +12 -4
  178. package/src/metrics/constants.ts +6 -0
  179. package/src/multistream/codec/constants.ts +58 -0
  180. package/src/multistream/mediaRequestManager.ts +119 -28
  181. package/src/multistream/receiveSlot.ts +18 -0
  182. package/src/reachability/clusterReachability.ts +3 -2
  183. package/src/reachability/index.ts +47 -16
  184. package/src/reachability/reachability.types.ts +11 -0
  185. package/src/reachability/util.ts +36 -0
  186. package/src/reactions/reactions.type.ts +3 -0
  187. package/src/recording-controller/index.ts +1 -2
  188. package/src/roap/turnDiscovery.ts +9 -1
  189. package/src/webinar/index.ts +216 -38
  190. package/test/unit/spec/aiEnableRequest/index.ts +86 -0
  191. package/test/unit/spec/breakouts/breakout.ts +9 -3
  192. package/test/unit/spec/breakouts/events.ts +120 -2
  193. package/test/unit/spec/breakouts/index.ts +191 -2
  194. package/test/unit/spec/common/errors/webex-errors.ts +78 -0
  195. package/test/unit/spec/controls-options-manager/index.js +139 -32
  196. package/test/unit/spec/hashTree/hashTreeParser.ts +2299 -243
  197. package/test/unit/spec/hashTree/utils.ts +37 -0
  198. package/test/unit/spec/interceptors/dataChannelAuthToken.ts +196 -0
  199. package/test/unit/spec/interceptors/locusRetry.ts +205 -4
  200. package/test/unit/spec/interpretation/index.ts +26 -4
  201. package/test/unit/spec/locus-info/controlsUtils.js +172 -57
  202. package/test/unit/spec/locus-info/index.js +643 -63
  203. package/test/unit/spec/locus-info/infoUtils.js +184 -1
  204. package/test/unit/spec/media/MediaConnectionAwaiter.ts +55 -0
  205. package/test/unit/spec/media/index.ts +92 -0
  206. package/test/unit/spec/media/properties.ts +23 -23
  207. package/test/unit/spec/meeting/in-meeting-actions.ts +4 -0
  208. package/test/unit/spec/meeting/index.js +2704 -135
  209. package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
  210. package/test/unit/spec/meeting/muteState.js +81 -0
  211. package/test/unit/spec/meeting/request.js +12 -0
  212. package/test/unit/spec/meeting/utils.js +153 -1
  213. package/test/unit/spec/meeting-info/meetinginfov2.js +19 -10
  214. package/test/unit/spec/meetings/index.js +479 -48
  215. package/test/unit/spec/meetings/request.js +141 -0
  216. package/test/unit/spec/meetings/utils.js +402 -51
  217. package/test/unit/spec/member/index.js +7 -0
  218. package/test/unit/spec/member/util.js +89 -0
  219. package/test/unit/spec/members/index.js +216 -0
  220. package/test/unit/spec/members/request.js +37 -1
  221. package/test/unit/spec/members/utils.js +63 -0
  222. package/test/unit/spec/multistream/mediaRequestManager.ts +501 -37
  223. package/test/unit/spec/reachability/index.ts +128 -46
  224. package/test/unit/spec/reachability/util.ts +31 -0
  225. package/test/unit/spec/recording-controller/index.js +9 -8
  226. package/test/unit/spec/roap/turnDiscovery.ts +20 -0
  227. 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.experimental.enableTlsReachability === false,
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 _callee0() {
945
+ var _sendMetric = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee1() {
904
946
  var aborted,
905
947
  results,
906
948
  stats,
907
- _args0 = arguments;
908
- return _regenerator.default.wrap(function (_context0) {
909
- while (1) switch (_context0.prev = _context0.next) {
949
+ _args1 = arguments;
950
+ return _regenerator.default.wrap(function (_context1) {
951
+ while (1) switch (_context1.prev = _context1.next) {
910
952
  case 0:
911
- aborted = _args0.length > 0 && _args0[0] !== undefined ? _args0[0] : false;
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 _context0.stop();
985
+ return _context1.stop();
944
986
  }
945
- }, _callee0, this);
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 _callee1(results) {
1002
- return _regenerator.default.wrap(function (_context1) {
1003
- while (1) switch (_context1.prev = _context1.next) {
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
- _context1.next = 1;
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 _context1.stop();
1051
+ return _context10.stop();
1010
1052
  }
1011
- }, _callee1, this);
1053
+ }, _callee10, this);
1012
1054
  }));
1013
- function storeResults(_x4) {
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 _callee13(clusterList) {
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 (_context13) {
1078
- while (1) switch (_context13.prev = _context13.next) {
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
- _loggerProxy.default.logger.log("Reachability:index#performReachabilityChecks --> doing UDP".concat(
1125
+ protocols = (0, _util2.resolveReachabilityProtocols)(
1084
1126
  // @ts-ignore
1085
- this.webex.config.meetings.experimental.enableTcpReachability ? ',TCP' : '').concat(
1086
- // @ts-ignore
1087
- this.webex.config.meetings.experimental.enableTlsReachability ? ',TLS' : '', " reachability checks"));
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
- _context13.next = 1;
1174
+ _context14.next = 1;
1137
1175
  return this.storeResults(results);
1138
1176
  case 1:
1139
1177
  if (!(!clusterList || !(0, _keys.default)(clusterList).length)) {
1140
- _context13.next = 2;
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 _context13.abrupt("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 _callee10(data) {
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 (_context10) {
1163
- while (1) switch (_context10.prev = _context10.next) {
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
- _context10.next = 1;
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 _context10.stop();
1233
+ return _context11.stop();
1196
1234
  }
1197
- }, _callee10);
1235
+ }, _callee11);
1198
1236
  }));
1199
- return function (_x6) {
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 _callee11(data) {
1207
- return _regenerator.default.wrap(function (_context11) {
1208
- while (1) switch (_context11.prev = _context11.next) {
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
- _context11.next = 1;
1249
+ _context12.next = 1;
1212
1250
  return _this4.storeResults(results);
1213
1251
  case 1:
1214
1252
  case "end":
1215
- return _context11.stop();
1253
+ return _context12.stop();
1216
1254
  }
1217
- }, _callee11);
1255
+ }, _callee12);
1218
1256
  }));
1219
- return function (_x7) {
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 _callee12(data) {
1225
- return _regenerator.default.wrap(function (_context12) {
1226
- while (1) switch (_context12.prev = _context12.next) {
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 _context12.stop();
1269
+ return _context13.stop();
1232
1270
  }
1233
- }, _callee12);
1271
+ }, _callee13);
1234
1272
  }));
1235
- return function (_x8) {
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 _context13.stop();
1281
+ return _context14.stop();
1244
1282
  }
1245
- }, _callee13, this);
1283
+ }, _callee14, this);
1246
1284
  }));
1247
- function performReachabilityChecks(_x5) {
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 _callee14(isMultistream, ipver) {
1265
- var reachabilityReport, _t6, _t7, _t8;
1266
- return _regenerator.default.wrap(function (_context14) {
1267
- while (1) switch (_context14.prev = _context14.next) {
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
- _context14.next = 2;
1308
+ _context15.next = 2;
1271
1309
  break;
1272
1310
  }
1273
- _t6 = ipver;
1274
- _context14.next = 1;
1311
+ _t7 = ipver;
1312
+ _context15.next = 1;
1275
1313
  return this.getJoinCookie();
1276
1314
  case 1:
1277
- _t7 = _context14.sent;
1278
- _t8 = !isMultistream;
1279
- return _context14.abrupt("return", {
1280
- ipver: _t6,
1281
- joinCookie: _t7,
1282
- preferTranscoding: _t8
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
- _context14.next = 3;
1323
+ _context15.next = 3;
1286
1324
  return this.getReachabilityReport();
1287
1325
  case 3:
1288
- reachabilityReport = _context14.sent;
1289
- return _context14.abrupt("return", _objectSpread({
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 _context14.stop();
1333
+ return _context15.stop();
1296
1334
  }
1297
- }, _callee14, this);
1335
+ }, _callee15, this);
1298
1336
  }));
1299
- function getClientMediaPreferences(_x9, _x0) {
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 _callee15() {
1316
- return _regenerator.default.wrap(function (_context15) {
1317
- while (1) switch (_context15.prev = _context15.next) {
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
- _context15.next = 1;
1358
+ _context16.next = 1;
1321
1359
  break;
1322
1360
  }
1323
- return _context15.abrupt("return", this.getReachabilityResults());
1361
+ return _context16.abrupt("return", this.getReachabilityResults());
1324
1362
  case 1:
1325
- return _context15.abrupt("return", undefined);
1363
+ return _context16.abrupt("return", undefined);
1326
1364
  case 2:
1327
1365
  case "end":
1328
- return _context15.stop();
1366
+ return _context16.stop();
1329
1367
  }
1330
- }, _callee15, this);
1368
+ }, _callee16, this);
1331
1369
  }));
1332
1370
  function getReachabilityReportToAttachToRoap() {
1333
1371
  return _getReachabilityReportToAttachToRoap.apply(this, arguments);