@webex/plugin-meetings 3.1.0-next.4 → 3.1.0-next.6

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.1.0-next.4"
212
+ version: "3.1.0-next.6"
213
213
  });
214
214
  var _default = exports.default = Breakout;
215
215
  //# sourceMappingURL=breakout.js.map
@@ -1041,7 +1041,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
1041
1041
  this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
1042
1042
  }
1043
1043
  },
1044
- version: "3.1.0-next.4"
1044
+ version: "3.1.0-next.6"
1045
1045
  });
1046
1046
  var _default = exports.default = Breakouts;
1047
1047
  //# sourceMappingURL=index.js.map
@@ -373,7 +373,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
373
373
  throw error;
374
374
  });
375
375
  },
376
- version: "3.1.0-next.4"
376
+ version: "3.1.0-next.6"
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.1.0-next.4"
21
+ version: "3.1.0-next.6"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -529,6 +529,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
529
529
  // used for waiting for a response
530
530
  (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "sdpResponseTimer", void 0);
531
531
  (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "hasMediaConnectionConnectedAtLeastOnce", void 0);
532
+ (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "joinWithMediaRetryInfo", void 0);
532
533
  /**
533
534
  * Callback called when a relay event is received from meeting LLM Connection
534
535
  * @param {RelayEvent} e Event object coming from LLM Connection
@@ -2041,6 +2042,18 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
2041
2042
  * @memberof Meeting
2042
2043
  */
2043
2044
  _this.hasMediaConnectionConnectedAtLeastOnce = false;
2045
+
2046
+ /**
2047
+ * Information needed for a retry of a call to joinWithMedia
2048
+ * @instance
2049
+ * @type {{isRetry: boolean; prevJoinResponse?: any}}
2050
+ * @private
2051
+ * @memberof Meeting
2052
+ */
2053
+ _this.joinWithMediaRetryInfo = {
2054
+ isRetry: false,
2055
+ prevJoinResponse: undefined
2056
+ };
2044
2057
  return _this;
2045
2058
  }
2046
2059
 
@@ -4898,11 +4911,14 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
4898
4911
  mediaOptions,
4899
4912
  _options$joinOptions,
4900
4913
  joinOptions,
4914
+ _this$joinWithMediaRe,
4915
+ isRetry,
4916
+ prevJoinResponse,
4901
4917
  joined,
4918
+ joinResponse,
4902
4919
  turnServerInfo,
4903
4920
  turnDiscoverySkippedReason,
4904
4921
  turnDiscoveryRequest,
4905
- joinResponse,
4906
4922
  _yield$this$roap$hand,
4907
4923
  mediaResponse,
4908
4924
  _this$locusUrl,
@@ -4914,38 +4930,46 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
4914
4930
  case 0:
4915
4931
  options = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
4916
4932
  mediaOptions = options.mediaOptions, _options$joinOptions = options.joinOptions, joinOptions = _options$joinOptions === void 0 ? {} : _options$joinOptions;
4933
+ _this$joinWithMediaRe = this.joinWithMediaRetryInfo, isRetry = _this$joinWithMediaRe.isRetry, prevJoinResponse = _this$joinWithMediaRe.prevJoinResponse;
4917
4934
  if (mediaOptions !== null && mediaOptions !== void 0 && mediaOptions.allowMediaInLobby) {
4918
- _context15.next = 4;
4935
+ _context15.next = 5;
4919
4936
  break;
4920
4937
  }
4921
4938
  return _context15.abrupt("return", _promise.default.reject(new _parameter.default('joinWithMedia() can only be used with allowMediaInLobby set to true')));
4922
- case 4:
4939
+ case 5:
4923
4940
  this.allowMediaInLobby = true;
4924
4941
  _loggerProxy.default.logger.info('Meeting:index#joinWithMedia called');
4925
4942
  joined = false;
4926
- _context15.prev = 7;
4927
- _context15.next = 10;
4943
+ joinResponse = prevJoinResponse;
4944
+ _context15.prev = 9;
4945
+ _context15.next = 12;
4928
4946
  return this.webex.meetings.reachability.getReachabilityResults();
4929
- case 10:
4947
+ case 12:
4930
4948
  joinOptions.reachability = _context15.sent;
4931
- _context15.next = 13;
4949
+ _context15.next = 15;
4932
4950
  return this.roap.generateTurnDiscoveryRequestMessage(this, true);
4933
- case 13:
4951
+ case 15:
4934
4952
  turnDiscoveryRequest = _context15.sent;
4935
4953
  turnDiscoverySkippedReason = turnDiscoveryRequest.turnDiscoverySkippedReason;
4936
4954
  joinOptions.roapMessage = turnDiscoveryRequest.roapMessage;
4937
- _context15.next = 18;
4955
+ if (joinResponse) {
4956
+ _context15.next = 23;
4957
+ break;
4958
+ }
4959
+ _loggerProxy.default.logger.info('Meeting:index#joinWithMedia ---> calling join with joinOptions, ', joinOptions);
4960
+ _context15.next = 22;
4938
4961
  return this.join(joinOptions);
4939
- case 18:
4962
+ case 22:
4940
4963
  joinResponse = _context15.sent;
4964
+ case 23:
4941
4965
  joined = true;
4942
4966
  if (!joinOptions.roapMessage) {
4943
- _context15.next = 29;
4967
+ _context15.next = 33;
4944
4968
  break;
4945
4969
  }
4946
- _context15.next = 23;
4970
+ _context15.next = 27;
4947
4971
  return this.roap.handleTurnDiscoveryHttpResponse(this, joinResponse);
4948
- case 23:
4972
+ case 27:
4949
4973
  _yield$this$roap$hand = _context15.sent;
4950
4974
  turnServerInfo = _yield$this$roap$hand.turnServerInfo;
4951
4975
  turnDiscoverySkippedReason = _yield$this$roap$hand.turnDiscoverySkippedReason;
@@ -4954,55 +4978,73 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
4954
4978
  if (turnServerInfo === undefined) {
4955
4979
  this.roap.abortTurnDiscovery();
4956
4980
  }
4957
- case 29:
4958
- _context15.next = 31;
4981
+ case 33:
4982
+ _context15.next = 35;
4959
4983
  return this.addMedia(mediaOptions, turnServerInfo);
4960
- case 31:
4984
+ case 35:
4961
4985
  mediaResponse = _context15.sent;
4986
+ this.joinWithMediaRetryInfo = {
4987
+ isRetry: false,
4988
+ prevJoinResponse: undefined
4989
+ };
4962
4990
  return _context15.abrupt("return", {
4963
4991
  join: joinResponse,
4964
4992
  media: mediaResponse
4965
4993
  });
4966
- case 35:
4967
- _context15.prev = 35;
4968
- _context15.t0 = _context15["catch"](7);
4994
+ case 40:
4995
+ _context15.prev = 40;
4996
+ _context15.t0 = _context15["catch"](9);
4969
4997
  _loggerProxy.default.logger.error('Meeting:index#joinWithMedia --> ', _context15.t0);
4970
4998
  this.roap.abortTurnDiscovery();
4971
- if (!joined) {
4972
- _context15.next = 49;
4999
+ if (!(joined && isRetry)) {
5000
+ _context15.next = 54;
4973
5001
  break;
4974
5002
  }
4975
- _context15.prev = 40;
4976
- _context15.next = 43;
5003
+ _context15.prev = 45;
5004
+ _context15.next = 48;
4977
5005
  return this.leave({
4978
5006
  resourceId: joinOptions === null || joinOptions === void 0 ? void 0 : joinOptions.resourceId,
4979
5007
  reason: 'joinWithMedia failure'
4980
5008
  });
4981
- case 43:
4982
- _context15.next = 49;
5009
+ case 48:
5010
+ _context15.next = 54;
4983
5011
  break;
4984
- case 45:
4985
- _context15.prev = 45;
4986
- _context15.t1 = _context15["catch"](40);
5012
+ case 50:
5013
+ _context15.prev = 50;
5014
+ _context15.t1 = _context15["catch"](45);
4987
5015
  _loggerProxy.default.logger.error('Meeting:index#joinWithMedia --> leave error', _context15.t1);
4988
5016
  leaveError = _context15.t1;
4989
- case 49:
5017
+ case 54:
4990
5018
  _metrics.default.sendBehavioralMetric(_constants2.default.JOIN_WITH_MEDIA_FAILURE, {
4991
5019
  correlation_id: this.correlationId,
4992
5020
  locus_id: (_this$locusUrl = this.locusUrl) === null || _this$locusUrl === void 0 ? void 0 : _this$locusUrl.split('/').pop(),
4993
5021
  // if join fails, we may end up with no locusUrl
4994
5022
  reason: _context15.t0.message,
4995
5023
  stack: _context15.t0.stack,
4996
- leaveErrorReason: (_leaveError = leaveError) === null || _leaveError === void 0 ? void 0 : _leaveError.message
5024
+ leaveErrorReason: (_leaveError = leaveError) === null || _leaveError === void 0 ? void 0 : _leaveError.message,
5025
+ isRetry: isRetry
4997
5026
  }, {
4998
5027
  type: _context15.t0.name
4999
5028
  });
5029
+ if (isRetry) {
5030
+ _context15.next = 60;
5031
+ break;
5032
+ }
5033
+ _loggerProxy.default.logger.warn('Meeting:index#joinWithMedia --> retrying call to joinWithMedia');
5034
+ this.joinWithMediaRetryInfo.isRetry = true;
5035
+ this.joinWithMediaRetryInfo.prevJoinResponse = joinResponse;
5036
+ return _context15.abrupt("return", this.joinWithMedia(options));
5037
+ case 60:
5038
+ this.joinWithMediaRetryInfo = {
5039
+ isRetry: false,
5040
+ prevJoinResponse: undefined
5041
+ };
5000
5042
  throw _context15.t0;
5001
- case 51:
5043
+ case 62:
5002
5044
  case "end":
5003
5045
  return _context15.stop();
5004
5046
  }
5005
- }, _callee15, this, [[7, 35], [40, 45]]);
5047
+ }, _callee15, this, [[9, 40], [45, 50]]);
5006
5048
  }));
5007
5049
  function joinWithMedia() {
5008
5050
  return _joinWithMedia.apply(this, arguments);
@@ -5232,7 +5274,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5232
5274
  break;
5233
5275
  }
5234
5276
  _context16.next = 7;
5235
- return this.webex.internal.voicea.toggleTranscribing(true, options === null || options === void 0 ? void 0 : options.spokenLanguage);
5277
+ return this.webex.internal.voicea.turnOnCaptions(options === null || options === void 0 ? void 0 : options.spokenLanguage);
5236
5278
  case 7:
5237
5279
  _context16.next = 13;
5238
5280
  break;
@@ -6720,7 +6762,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6720
6762
  locus_id: this.locusUrl.split('/').pop(),
6721
6763
  connectionType: connectionType,
6722
6764
  isMultistream: this.isMultistream,
6723
- retriedWithTurnServer: this.retriedWithTurnServer
6765
+ retriedWithTurnServer: this.retriedWithTurnServer,
6766
+ isJoinWithMediaRetry: this.joinWithMediaRetryInfo.isRetry
6724
6767
  }, reachabilityStats));
6725
6768
  // @ts-ignore
6726
6769
  this.webex.internal.newMetrics.submitClientEvent({
@@ -6755,6 +6798,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6755
6798
  turnServerUsed: this.turnServerUsed,
6756
6799
  retriedWithTurnServer: this.retriedWithTurnServer,
6757
6800
  isMultistream: this.isMultistream,
6801
+ isJoinWithMediaRetry: this.joinWithMediaRetryInfo.isRetry,
6758
6802
  signalingState: ((_this$mediaProperties20 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties20 === void 0 ? void 0 : (_this$mediaProperties21 = _this$mediaProperties20.multistreamConnection) === null || _this$mediaProperties21 === void 0 ? void 0 : (_this$mediaProperties22 = _this$mediaProperties21.pc) === null || _this$mediaProperties22 === void 0 ? void 0 : (_this$mediaProperties23 = _this$mediaProperties22.pc) === null || _this$mediaProperties23 === void 0 ? void 0 : _this$mediaProperties23.signalingState) || ((_this$mediaProperties24 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties24 === void 0 ? void 0 : (_this$mediaProperties25 = _this$mediaProperties24.mediaConnection) === null || _this$mediaProperties25 === void 0 ? void 0 : (_this$mediaProperties26 = _this$mediaProperties25.pc) === null || _this$mediaProperties26 === void 0 ? void 0 : _this$mediaProperties26.signalingState) || 'unknown',
6759
6803
  connectionState: ((_this$mediaProperties27 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties27 === void 0 ? void 0 : (_this$mediaProperties28 = _this$mediaProperties27.multistreamConnection) === null || _this$mediaProperties28 === void 0 ? void 0 : (_this$mediaProperties29 = _this$mediaProperties28.pc) === null || _this$mediaProperties29 === void 0 ? void 0 : (_this$mediaProperties30 = _this$mediaProperties29.pc) === null || _this$mediaProperties30 === void 0 ? void 0 : _this$mediaProperties30.connectionState) || ((_this$mediaProperties31 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties31 === void 0 ? void 0 : (_this$mediaProperties32 = _this$mediaProperties31.mediaConnection) === null || _this$mediaProperties32 === void 0 ? void 0 : (_this$mediaProperties33 = _this$mediaProperties32.pc) === null || _this$mediaProperties33 === void 0 ? void 0 : _this$mediaProperties33.connectionState) || 'unknown',
6760
6804
  iceConnectionState: ((_this$mediaProperties34 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties34 === void 0 ? void 0 : (_this$mediaProperties35 = _this$mediaProperties34.multistreamConnection) === null || _this$mediaProperties35 === void 0 ? void 0 : (_this$mediaProperties36 = _this$mediaProperties35.pc) === null || _this$mediaProperties36 === void 0 ? void 0 : (_this$mediaProperties37 = _this$mediaProperties36.pc) === null || _this$mediaProperties37 === void 0 ? void 0 : _this$mediaProperties37.iceConnectionState) || ((_this$mediaProperties38 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties38 === void 0 ? void 0 : (_this$mediaProperties39 = _this$mediaProperties38.mediaConnection) === null || _this$mediaProperties39 === void 0 ? void 0 : (_this$mediaProperties40 = _this$mediaProperties39.pc) === null || _this$mediaProperties40 === void 0 ? void 0 : _this$mediaProperties40.iceConnectionState) || 'unknown'