@webex/plugin-meetings 3.8.0-next.52 → 3.8.0-next.53

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.52"
212
+ version: "3.8.0-next.53"
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.52"
1049
+ version: "3.8.0-next.53"
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.52"
376
+ version: "3.8.0-next.53"
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.52"
21
+ version: "3.8.0-next.53"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -617,10 +617,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
617
617
  /**
618
618
  * Handles ROAP_FAILURE event from the webrtc media connection
619
619
  *
620
- * @param {Error} roapError
620
+ * @param {Error} error
621
621
  * @returns {void}
622
622
  */
623
- (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "handleRoapFailure", function (roapError) {
623
+ (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "handleRoapFailure", function (error) {
624
624
  // eslint-disable-next-line @typescript-eslint/no-shadow
625
625
  var sendBehavioralMetric = function sendBehavioralMetric(metricName, error, correlationId) {
626
626
  var _error$cause;
@@ -635,7 +635,6 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
635
635
  };
636
636
  _metrics.default.sendBehavioralMetric(metricName, data, metadata);
637
637
  };
638
- var error = _util2.default.markErrorAsHandledBySdk(roapError);
639
638
  if (error instanceof _internalMediaCore.Errors.SdpOfferCreationError) {
640
639
  sendBehavioralMetric(_constants2.default.PEERCONNECTION_FAILURE, error, _this.correlationId);
641
640
 
@@ -681,7 +680,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
681
680
  if (_this.deferSDPAnswer) {
682
681
  clearTimeout(_this.sdpResponseTimer);
683
682
  _this.sdpResponseTimer = undefined;
684
- _this.deferSDPAnswer.reject(error);
683
+ _this.deferSDPAnswer.reject();
685
684
  }
686
685
  } else if (error instanceof _internalMediaCore.Errors.SdpError) {
687
686
  // this covers also the case of Errors.IceGatheringError which extends Errors.SdpError
@@ -808,8 +807,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
808
807
  }
809
808
  }), {
810
809
  logText: "".concat(LOG_HEADER, " Roap Offer")
811
- }).catch(function (originalError) {
812
- var error = _util2.default.markErrorAsHandledBySdk(originalError);
810
+ }).catch(function (error) {
813
811
  var multistreamNotSupported = error instanceof _multistreamNotSupportedError.default;
814
812
 
815
813
  // @ts-ignore
@@ -2305,6 +2303,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
2305
2303
  */
2306
2304
  (0, _classPrivateFieldSet2.default)((0, _assertThisInitialized2.default)(_this), _isoLocalClientMeetingJoinTime, undefined);
2307
2305
 
2306
+ // We clear the error cache of CA events on every new meeting instance
2307
+ // @ts-ignore - Fix type
2308
+ _this.webex.internal.newMetrics.callDiagnosticMetrics.clearErrorCache();
2309
+
2308
2310
  /**
2309
2311
  * IP Address of the remote media server
2310
2312
  * @instance
@@ -6288,10 +6290,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6288
6290
  file: 'meeting/index',
6289
6291
  function: 'join'
6290
6292
  }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this36);
6291
- var proxyError = _util2.default.markErrorAsHandledBySdk(error);
6292
- joinFailed(proxyError);
6293
+ joinFailed(error);
6293
6294
  _this36.deferJoin = undefined;
6294
- return _promise.default.reject(proxyError);
6295
+ return _promise.default.reject(error);
6295
6296
  }).then(function (join) {
6296
6297
  // @ts-ignore - config coming from registerPlugin
6297
6298
  if (_this36.config.enableAutomaticLLM) {
@@ -6876,7 +6877,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6876
6877
  key: "waitForMediaConnectionConnected",
6877
6878
  value: (function () {
6878
6879
  var _waitForMediaConnectionConnected = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24() {
6879
- var iceConnected, handledBySdk, _this$mediaProperties8, _this$mediaProperties9, _this$mediaProperties10, _this$mediaProperties11, _this$mediaProperties12, _this$mediaProperties13, _this$mediaProperties14, caError, timedOutError;
6880
+ var iceConnected, _this$mediaProperties8, _this$mediaProperties9, _this$mediaProperties10, _this$mediaProperties11, _this$mediaProperties12, _this$mediaProperties13, _this$mediaProperties14;
6880
6881
  return _regenerator.default.wrap(function _callee24$(_context24) {
6881
6882
  while (1) switch (_context24.prev = _context24.next) {
6882
6883
  case 0:
@@ -6884,61 +6885,59 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6884
6885
  _context24.next = 3;
6885
6886
  return this.mediaProperties.waitForMediaConnectionConnected();
6886
6887
  case 3:
6887
- _context24.next = 27;
6888
+ _context24.next = 30;
6888
6889
  break;
6889
6890
  case 5:
6890
6891
  _context24.prev = 5;
6891
6892
  _context24.t0 = _context24["catch"](0);
6892
6893
  iceConnected = _context24.t0.iceConnected;
6893
- handledBySdk = false;
6894
6894
  if (this.hasMediaConnectionConnectedAtLeastOnce) {
6895
- _context24.next = 24;
6895
+ _context24.next = 29;
6896
6896
  break;
6897
6897
  }
6898
- _context24.t1 = this.webex.internal.newMetrics.callDiagnosticMetrics;
6899
- _context24.t2 = _internalPluginMetrics.CallDiagnosticUtils;
6900
- _context24.t3 = ((_this$mediaProperties8 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties8 === void 0 ? void 0 : (_this$mediaProperties9 = _this$mediaProperties8.multistreamConnection) === null || _this$mediaProperties9 === void 0 ? void 0 : (_this$mediaProperties10 = _this$mediaProperties9.pc) === null || _this$mediaProperties10 === void 0 ? void 0 : (_this$mediaProperties11 = _this$mediaProperties10.pc) === null || _this$mediaProperties11 === void 0 ? void 0 : _this$mediaProperties11.signalingState) || ((_this$mediaProperties12 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties12 === void 0 ? void 0 : (_this$mediaProperties13 = _this$mediaProperties12.mediaConnection) === null || _this$mediaProperties13 === void 0 ? void 0 : (_this$mediaProperties14 = _this$mediaProperties13.pc) === null || _this$mediaProperties14 === void 0 ? void 0 : _this$mediaProperties14.signalingState) || 'unknown';
6901
- _context24.t4 = iceConnected;
6902
- _context24.t5 = this.turnServerUsed;
6903
- _context24.next = 17;
6898
+ _context24.t1 = this.webex.internal.newMetrics;
6899
+ _context24.t2 = !this.turnServerUsed;
6900
+ _context24.t3 = this.addMediaData.icePhaseCallback();
6901
+ _context24.t4 = this.webex.internal.newMetrics.callDiagnosticMetrics;
6902
+ _context24.t5 = _internalPluginMetrics.CallDiagnosticUtils;
6903
+ _context24.t6 = ((_this$mediaProperties8 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties8 === void 0 ? void 0 : (_this$mediaProperties9 = _this$mediaProperties8.multistreamConnection) === null || _this$mediaProperties9 === void 0 ? void 0 : (_this$mediaProperties10 = _this$mediaProperties9.pc) === null || _this$mediaProperties10 === void 0 ? void 0 : (_this$mediaProperties11 = _this$mediaProperties10.pc) === null || _this$mediaProperties11 === void 0 ? void 0 : _this$mediaProperties11.signalingState) || ((_this$mediaProperties12 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties12 === void 0 ? void 0 : (_this$mediaProperties13 = _this$mediaProperties12.mediaConnection) === null || _this$mediaProperties13 === void 0 ? void 0 : (_this$mediaProperties14 = _this$mediaProperties13.pc) === null || _this$mediaProperties14 === void 0 ? void 0 : _this$mediaProperties14.signalingState) || 'unknown';
6904
+ _context24.t7 = iceConnected;
6905
+ _context24.t8 = this.turnServerUsed;
6906
+ _context24.next = 19;
6904
6907
  return this.webex.meetings.reachability.isWebexMediaBackendUnreachable().catch(function () {
6905
6908
  return false;
6906
6909
  });
6907
- case 17:
6908
- _context24.t6 = _context24.sent;
6909
- _context24.t7 = {
6910
- signalingState: _context24.t3,
6911
- iceConnected: _context24.t4,
6912
- turnServerUsed: _context24.t5,
6913
- unreachable: _context24.t6
6910
+ case 19:
6911
+ _context24.t9 = _context24.sent;
6912
+ _context24.t10 = {
6913
+ signalingState: _context24.t6,
6914
+ iceConnected: _context24.t7,
6915
+ turnServerUsed: _context24.t8,
6916
+ unreachable: _context24.t9
6914
6917
  };
6915
- _context24.t8 = _context24.t2.generateClientErrorCodeForIceFailure.call(_context24.t2, _context24.t7);
6916
- _context24.t9 = {
6917
- clientErrorCode: _context24.t8
6918
+ _context24.t11 = _context24.t5.generateClientErrorCodeForIceFailure.call(_context24.t5, _context24.t10);
6919
+ _context24.t12 = {
6920
+ clientErrorCode: _context24.t11
6918
6921
  };
6919
- caError = _context24.t1.getErrorPayloadForClientErrorCode.call(_context24.t1, _context24.t9);
6920
- // Only send CA event for join flow if we haven't successfully connected media yet
6921
- // @ts-ignore
6922
- this.webex.internal.newMetrics.submitClientEvent({
6922
+ _context24.t13 = _context24.t4.getErrorPayloadForClientErrorCode.call(_context24.t4, _context24.t12);
6923
+ _context24.t14 = [_context24.t13];
6924
+ _context24.t15 = {
6925
+ canProceed: _context24.t2,
6926
+ icePhase: _context24.t3,
6927
+ errors: _context24.t14
6928
+ };
6929
+ _context24.t16 = {
6930
+ meetingId: this.id
6931
+ };
6932
+ _context24.t17 = {
6923
6933
  name: 'client.ice.end',
6924
- payload: {
6925
- canProceed: !this.turnServerUsed,
6926
- // If we haven't done turn tls retry yet we will proceed with join attempt
6927
- icePhase: this.addMediaData.icePhaseCallback(),
6928
- errors: [caError]
6929
- },
6930
- options: {
6931
- meetingId: this.id
6932
- }
6933
- });
6934
- handledBySdk = true;
6935
- case 24:
6936
- timedOutError = new Error("Timed out waiting for media connection to be connected, correlationId=".concat(this.correlationId));
6937
- if (handledBySdk) {
6938
- timedOutError = _util2.default.markErrorAsHandledBySdk(timedOutError);
6939
- }
6940
- throw timedOutError;
6941
- case 27:
6934
+ payload: _context24.t15,
6935
+ options: _context24.t16
6936
+ };
6937
+ _context24.t1.submitClientEvent.call(_context24.t1, _context24.t17);
6938
+ case 29:
6939
+ throw new Error("Timed out waiting for media connection to be connected, correlationId=".concat(this.correlationId));
6940
+ case 30:
6942
6941
  case "end":
6943
6942
  return _context24.stop();
6944
6943
  }
@@ -7007,9 +7006,6 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7007
7006
  deferSDPAnswer = this.deferSDPAnswer;
7008
7007
  this.sdpResponseTimer = setTimeout(function () {
7009
7008
  _loggerProxy.default.logger.warn("".concat(LOG_HEADER, " timeout! no REMOTE SDP ANSWER received within ").concat(_constants.ROAP_OFFER_ANSWER_EXCHANGE_TIMEOUT / 1000, " seconds"));
7010
- var timeoutError = new Error('Timeout waiting for SDP answer');
7011
- var timeoutErrorProxy = _util2.default.markErrorAsHandledBySdk(timeoutError);
7012
-
7013
7009
  // @ts-ignore
7014
7010
  _this43.webex.internal.newMetrics.submitClientEvent({
7015
7011
  name: 'client.media-engine.remote-sdp-received',
@@ -7023,7 +7019,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7023
7019
  },
7024
7020
  options: {
7025
7021
  meetingId: _this43.id,
7026
- rawError: timeoutErrorProxy
7022
+ rawError: new Error('Timeout waiting for SDP answer')
7027
7023
  }
7028
7024
  });
7029
7025
  deferSDPAnswer.reject(new Error('Timed out waiting for REMOTE SDP ANSWER'));
@@ -7149,7 +7145,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7149
7145
  key: "handleWaitForMediaConnectionConnectedError",
7150
7146
  value: (function () {
7151
7147
  var _handleWaitForMediaConnectionConnectedError = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee28(error, remoteMediaManagerConfig, bundlePolicy) {
7152
- var LOG_HEADER, addMediaFailedError;
7148
+ var LOG_HEADER;
7153
7149
  return _regenerator.default.wrap(function _callee28$(_context28) {
7154
7150
  while (1) switch (_context28.prev = _context28.next) {
7155
7151
  case 0:
@@ -7162,16 +7158,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7162
7158
  _context28.next = 5;
7163
7159
  return this.retryWithForcedTurnDiscovery(remoteMediaManagerConfig, bundlePolicy);
7164
7160
  case 5:
7165
- _context28.next = 11;
7161
+ _context28.next = 9;
7166
7162
  break;
7167
7163
  case 7:
7168
7164
  _loggerProxy.default.logger.error("".concat(LOG_HEADER, " error waiting for media to connect using UDP, TCP and TURN-TLS"), error);
7169
- addMediaFailedError = new _webexErrors.AddMediaFailed(); // @ts-ignore - handledBySdk is added by a proxy
7170
- if (error.handledBySdk) {
7171
- addMediaFailedError = _util2.default.markErrorAsHandledBySdk(addMediaFailedError);
7172
- }
7173
- throw addMediaFailedError;
7174
- case 11:
7165
+ throw new _webexErrors.AddMediaFailed();
7166
+ case 9:
7175
7167
  case "end":
7176
7168
  return _context28.stop();
7177
7169
  }