@webex/plugin-meetings 3.8.0-next.49 → 3.8.0-next.50

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.
@@ -209,7 +209,7 @@ var Breakout = _webexCore.WebexPlugin.extend({
209
209
  sessionId: this.sessionId
210
210
  });
211
211
  },
212
- version: "3.8.0-next.49"
212
+ version: "3.8.0-next.50"
213
213
  });
214
214
  var _default = exports.default = Breakout;
215
215
  //# sourceMappingURL=breakout.js.map
@@ -1046,7 +1046,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
1046
1046
  this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
1047
1047
  }
1048
1048
  },
1049
- version: "3.8.0-next.49"
1049
+ version: "3.8.0-next.50"
1050
1050
  });
1051
1051
  var _default = exports.default = Breakouts;
1052
1052
  //# sourceMappingURL=index.js.map
@@ -373,7 +373,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
373
373
  throw error;
374
374
  });
375
375
  },
376
- version: "3.8.0-next.49"
376
+ version: "3.8.0-next.50"
377
377
  });
378
378
  var _default = exports.default = SimultaneousInterpretation;
379
379
  //# sourceMappingURL=index.js.map
@@ -18,7 +18,7 @@ var SILanguage = _webexCore.WebexPlugin.extend({
18
18
  languageCode: 'number',
19
19
  languageName: 'string'
20
20
  },
21
- version: "3.8.0-next.49"
21
+ version: "3.8.0-next.50"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -562,6 +562,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
562
562
  (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "rtcMetrics", void 0);
563
563
  (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "uploadLogsTimer", void 0);
564
564
  (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "logUploadIntervalIndex", void 0);
565
+ (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "mediaServerIp", void 0);
565
566
  /**
566
567
  * Callback called when a relay event is received from meeting LLM Connection
567
568
  * @param {RelayEvent} e Event object coming from LLM Connection
@@ -707,6 +708,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
707
708
  */
708
709
  (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "roapMessageReceived", function (roapMessage) {
709
710
  var mediaServer = roapMessage.messageType === 'ANSWER' ? _util3.default.getMediaServer(roapMessage.sdp) : undefined;
711
+ var mediaServerIp = roapMessage.messageType === 'ANSWER' ? _util3.default.getMediaServerIp(roapMessage.sdp) : undefined;
710
712
  if (_this.isMultistream && mediaServer && mediaServer !== 'homer') {
711
713
  throw new _multistreamNotSupportedError.default("Client asked for multistream backend (Homer), but got ".concat(mediaServer, " instead"));
712
714
  }
@@ -714,6 +716,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
714
716
  if (mediaServer) {
715
717
  _this.mediaProperties.webrtcMediaConnection.mediaServer = mediaServer;
716
718
  }
719
+ if (_this.isMultistream && mediaServerIp) {
720
+ _this.mediaServerIp = mediaServerIp;
721
+ }
717
722
  });
718
723
  /**
719
724
  * This function makes sure we send the right metrics when local and remote SDPs are processed/generated
@@ -2299,6 +2304,15 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
2299
2304
  * @memberof Meeting
2300
2305
  */
2301
2306
  (0, _classPrivateFieldSet2.default)((0, _assertThisInitialized2.default)(_this), _isoLocalClientMeetingJoinTime, undefined);
2307
+
2308
+ /**
2309
+ * IP Address of the remote media server
2310
+ * @instance
2311
+ * @type {string}
2312
+ * @private
2313
+ * @memberof Meeting
2314
+ */
2315
+ _this.mediaServerIp = undefined;
2302
2316
  return _this;
2303
2317
  }
2304
2318
 
@@ -7562,6 +7576,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7562
7576
  numTransports,
7563
7577
  reachabilityStats,
7564
7578
  iceCandidateErrors,
7579
+ isSubnetReachable,
7565
7580
  _this$mediaProperties15,
7566
7581
  _this$mediaProperties16,
7567
7582
  _this$mediaProperties17,
@@ -7588,6 +7603,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7588
7603
  _selectedCandidatePairChanges,
7589
7604
  _numTransports,
7590
7605
  _iceCandidateErrors,
7606
+ _isSubnetReachable,
7591
7607
  _args35 = arguments;
7592
7608
  return _regenerator.default.wrap(function _callee35$(_context35) {
7593
7609
  while (1) switch (_context35.prev = _context35.next) {
@@ -7710,7 +7726,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7710
7726
  return this.webex.meetings.reachability.getReachabilityMetrics();
7711
7727
  case 52:
7712
7728
  reachabilityStats = _context35.sent;
7713
- iceCandidateErrors = Object.fromEntries(this.iceCandidateErrors);
7729
+ iceCandidateErrors = Object.fromEntries(this.iceCandidateErrors); // @ts-ignore
7730
+ isSubnetReachable = this.webex.meetings.reachability.isSubnetReachable(this.mediaServerIp);
7714
7731
  _metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_SUCCESS, _objectSpread(_objectSpread(_objectSpread({
7715
7732
  correlation_id: this.correlationId,
7716
7733
  locus_id: this.locusUrl.split('/').pop(),
@@ -7719,7 +7736,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7719
7736
  numTransports: numTransports,
7720
7737
  isMultistream: this.isMultistream,
7721
7738
  retriedWithTurnServer: this.addMediaData.retriedWithTurnServer,
7722
- isJoinWithMediaRetry: this.joinWithMediaRetryInfo.isRetry
7739
+ isJoinWithMediaRetry: this.joinWithMediaRetryInfo.isRetry,
7740
+ isSubnetReachable: isSubnetReachable
7723
7741
  }, reachabilityStats), iceCandidateErrors), {}, {
7724
7742
  iceCandidatesCount: this.iceCandidatesCount
7725
7743
  }));
@@ -7735,25 +7753,26 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7735
7753
  // We can log ReceiveSlot SSRCs only after the SDP exchange, so doing it here:
7736
7754
  (_this$remoteMediaMana = this.remoteMediaManager) === null || _this$remoteMediaMana === void 0 ? void 0 : _this$remoteMediaMana.logAllReceiveSlots();
7737
7755
  this.startPeriodicLogUpload();
7738
- _context35.next = 79;
7756
+ _context35.next = 81;
7739
7757
  break;
7740
- case 61:
7741
- _context35.prev = 61;
7758
+ case 62:
7759
+ _context35.prev = 62;
7742
7760
  _context35.t1 = _context35["catch"](19);
7743
7761
  _loggerProxy.default.logger.error("".concat(LOG_HEADER, " failed to establish media connection: "), _context35.t1);
7744
7762
 
7745
7763
  // @ts-ignore
7746
- _context35.next = 66;
7764
+ _context35.next = 67;
7747
7765
  return this.webex.meetings.reachability.getReachabilityMetrics();
7748
- case 66:
7766
+ case 67:
7749
7767
  reachabilityMetrics = _context35.sent;
7750
- _context35.next = 69;
7768
+ _context35.next = 70;
7751
7769
  return this.mediaProperties.getCurrentConnectionInfo();
7752
- case 69:
7770
+ case 70:
7753
7771
  _yield$this$mediaProp2 = _context35.sent;
7754
7772
  _selectedCandidatePairChanges = _yield$this$mediaProp2.selectedCandidatePairChanges;
7755
7773
  _numTransports = _yield$this$mediaProp2.numTransports;
7756
- _iceCandidateErrors = Object.fromEntries(this.iceCandidateErrors);
7774
+ _iceCandidateErrors = Object.fromEntries(this.iceCandidateErrors); // @ts-ignore
7775
+ _isSubnetReachable = this.webex.meetings.reachability.isSubnetReachable(this.mediaServerIp);
7757
7776
  _metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_FAILURE, _objectSpread(_objectSpread(_objectSpread({
7758
7777
  correlation_id: this.correlationId,
7759
7778
  locus_id: this.locusUrl.split('/').pop(),
@@ -7770,12 +7789,14 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7770
7789
  signalingState: ((_this$mediaProperties15 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties15 === void 0 ? void 0 : (_this$mediaProperties16 = _this$mediaProperties15.multistreamConnection) === null || _this$mediaProperties16 === void 0 ? void 0 : (_this$mediaProperties17 = _this$mediaProperties16.pc) === null || _this$mediaProperties17 === void 0 ? void 0 : (_this$mediaProperties18 = _this$mediaProperties17.pc) === null || _this$mediaProperties18 === void 0 ? void 0 : _this$mediaProperties18.signalingState) || ((_this$mediaProperties19 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties19 === void 0 ? void 0 : (_this$mediaProperties20 = _this$mediaProperties19.mediaConnection) === null || _this$mediaProperties20 === void 0 ? void 0 : (_this$mediaProperties21 = _this$mediaProperties20.pc) === null || _this$mediaProperties21 === void 0 ? void 0 : _this$mediaProperties21.signalingState) || 'unknown',
7771
7790
  connectionState: ((_this$mediaProperties22 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties22 === void 0 ? void 0 : (_this$mediaProperties23 = _this$mediaProperties22.multistreamConnection) === null || _this$mediaProperties23 === void 0 ? void 0 : (_this$mediaProperties24 = _this$mediaProperties23.pc) === null || _this$mediaProperties24 === void 0 ? void 0 : (_this$mediaProperties25 = _this$mediaProperties24.pc) === null || _this$mediaProperties25 === void 0 ? void 0 : _this$mediaProperties25.connectionState) || ((_this$mediaProperties26 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties26 === void 0 ? void 0 : (_this$mediaProperties27 = _this$mediaProperties26.mediaConnection) === null || _this$mediaProperties27 === void 0 ? void 0 : (_this$mediaProperties28 = _this$mediaProperties27.pc) === null || _this$mediaProperties28 === void 0 ? void 0 : _this$mediaProperties28.connectionState) || 'unknown',
7772
7791
  iceConnectionState: ((_this$mediaProperties29 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties29 === void 0 ? void 0 : (_this$mediaProperties30 = _this$mediaProperties29.multistreamConnection) === null || _this$mediaProperties30 === void 0 ? void 0 : (_this$mediaProperties31 = _this$mediaProperties30.pc) === null || _this$mediaProperties31 === void 0 ? void 0 : (_this$mediaProperties32 = _this$mediaProperties31.pc) === null || _this$mediaProperties32 === void 0 ? void 0 : _this$mediaProperties32.iceConnectionState) || ((_this$mediaProperties33 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties33 === void 0 ? void 0 : (_this$mediaProperties34 = _this$mediaProperties33.mediaConnection) === null || _this$mediaProperties34 === void 0 ? void 0 : (_this$mediaProperties35 = _this$mediaProperties34.pc) === null || _this$mediaProperties35 === void 0 ? void 0 : _this$mediaProperties35.iceConnectionState) || 'unknown'
7773
- }, reachabilityMetrics), _iceCandidateErrors), {}, {
7792
+ }, reachabilityMetrics), {}, {
7793
+ isSubnetReachable: _isSubnetReachable
7794
+ }, _iceCandidateErrors), {}, {
7774
7795
  iceCandidatesCount: this.iceCandidatesCount
7775
7796
  }));
7776
- _context35.next = 76;
7797
+ _context35.next = 78;
7777
7798
  return this.cleanUpOnAddMediaFailure();
7778
- case 76:
7799
+ case 78:
7779
7800
  // Upload logs on error while adding media
7780
7801
  _triggerProxy.default.trigger(this, {
7781
7802
  file: 'meeting/index',
@@ -7787,15 +7808,15 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7787
7808
  });
7788
7809
  }
7789
7810
  throw _context35.t1;
7790
- case 79:
7791
- _context35.prev = 79;
7811
+ case 81:
7812
+ _context35.prev = 81;
7792
7813
  this.addMediaData.icePhaseCallback = DEFAULT_ICE_PHASE_CALLBACK;
7793
- return _context35.finish(79);
7794
- case 82:
7814
+ return _context35.finish(81);
7815
+ case 84:
7795
7816
  case "end":
7796
7817
  return _context35.stop();
7797
7818
  }
7798
- }, _callee35, this, [[19, 61, 79, 82], [24, 29]]);
7819
+ }, _callee35, this, [[19, 62, 81, 84], [24, 29]]);
7799
7820
  }));
7800
7821
  function addMediaInternal(_x33, _x34, _x35) {
7801
7822
  return _addMediaInternal.apply(this, arguments);