@webex/plugin-meetings 3.0.0-beta.320 → 3.0.0-beta.321

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.0.0-beta.320"
212
+ version: "3.0.0-beta.321"
213
213
  });
214
214
  var _default = Breakout;
215
215
  exports.default = _default;
@@ -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.0.0-beta.320"
1044
+ version: "3.0.0-beta.321"
1045
1045
  });
1046
1046
  var _default = Breakouts;
1047
1047
  exports.default = _default;
@@ -359,7 +359,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
359
359
  throw error;
360
360
  });
361
361
  },
362
- version: "3.0.0-beta.320"
362
+ version: "3.0.0-beta.321"
363
363
  });
364
364
  var _default = SimultaneousInterpretation;
365
365
  exports.default = _default;
@@ -18,7 +18,7 @@ var SILanguage = _webexCore.WebexPlugin.extend({
18
18
  languageCode: 'number',
19
19
  languageName: 'string'
20
20
  },
21
- version: "3.0.0-beta.320"
21
+ version: "3.0.0-beta.321"
22
22
  });
23
23
  var _default = SILanguage;
24
24
  exports.default = _default;
@@ -779,22 +779,6 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
779
779
  _this.reconnect({
780
780
  networkDisconnect: true
781
781
  });
782
- // @ts-ignore
783
- _this.webex.internal.newMetrics.submitClientEvent({
784
- name: 'client.ice.end',
785
- payload: {
786
- canProceed: false,
787
- icePhase: 'IN_MEETING',
788
- errors: [
789
- // @ts-ignore
790
- _this.webex.internal.newMetrics.callDiagnosticMetrics.getErrorPayloadForClientErrorCode({
791
- clientErrorCode: _internalPluginMetrics.CALL_DIAGNOSTIC_CONFIG.ICE_FAILURE_CLIENT_CODE
792
- })]
793
- },
794
- options: {
795
- meetingId: _this.id
796
- }
797
- });
798
782
  _this.uploadLogs({
799
783
  file: 'peer-connection-manager/index',
800
784
  function: 'connectionFailed'
@@ -807,26 +791,32 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
807
791
  var cdl = _this.webex.internal.newMetrics.callDiagnosticLatencies;
808
792
  switch (event.state) {
809
793
  case _internalMediaCore.ConnectionState.Connecting:
810
- // @ts-ignore
811
- _this.webex.internal.newMetrics.submitClientEvent({
812
- name: 'client.ice.start',
813
- options: {
814
- meetingId: _this.id
815
- }
816
- });
794
+ if (!_this.hasMediaConnectionConnectedAtLeastOnce) {
795
+ // Only send CA event for join flow if we haven't successfully connected media yet
796
+ // @ts-ignore
797
+ _this.webex.internal.newMetrics.submitClientEvent({
798
+ name: 'client.ice.start',
799
+ options: {
800
+ meetingId: _this.id
801
+ }
802
+ });
803
+ }
817
804
  break;
818
805
  case _internalMediaCore.ConnectionState.Connected:
819
- // @ts-ignore
820
- _this.webex.internal.newMetrics.submitClientEvent({
821
- name: 'client.ice.end',
822
- payload: {
823
- canProceed: true,
824
- icePhase: !_this.networkStatus ? 'JOIN_MEETING_FINAL' : 'IN_MEETING'
825
- },
826
- options: {
827
- meetingId: _this.id
828
- }
829
- });
806
+ if (!_this.hasMediaConnectionConnectedAtLeastOnce) {
807
+ // Only send CA event for join flow if we haven't successfully connected media yet
808
+ // @ts-ignore
809
+ _this.webex.internal.newMetrics.submitClientEvent({
810
+ name: 'client.ice.end',
811
+ payload: {
812
+ canProceed: true,
813
+ icePhase: 'JOIN_MEETING_FINAL'
814
+ },
815
+ options: {
816
+ meetingId: _this.id
817
+ }
818
+ });
819
+ }
830
820
  _metrics.default.sendBehavioralMetric(_constants2.default.CONNECTION_SUCCESS, {
831
821
  correlation_id: _this.correlationId,
832
822
  locus_id: _this.locusId,
@@ -5559,27 +5549,30 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5559
5549
  case 5:
5560
5550
  _context19.prev = 5;
5561
5551
  _context19.t0 = _context19["catch"](0);
5562
- // @ts-ignore
5563
- this.webex.internal.newMetrics.submitClientEvent({
5564
- name: 'client.ice.end',
5565
- payload: {
5566
- canProceed: !this.turnServerUsed,
5567
- // If we haven't done turn tls retry yet we will proceed with join attempt
5568
- icePhase: this.turnServerUsed ? 'JOIN_MEETING_FINAL' : 'JOIN_MEETING_RETRY',
5569
- errors: [
5570
- // @ts-ignore
5571
- this.webex.internal.newMetrics.callDiagnosticMetrics.getErrorPayloadForClientErrorCode({
5572
- clientErrorCode: _internalPluginMetrics.CallDiagnosticUtils.generateClientErrorCodeForIceFailure({
5573
- signalingState: ((_this$mediaProperties6 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties6 === void 0 ? void 0 : (_this$mediaProperties7 = _this$mediaProperties6.multistreamConnection) === null || _this$mediaProperties7 === void 0 ? void 0 : (_this$mediaProperties8 = _this$mediaProperties7.pc) === null || _this$mediaProperties8 === void 0 ? void 0 : (_this$mediaProperties9 = _this$mediaProperties8.pc) === null || _this$mediaProperties9 === void 0 ? void 0 : _this$mediaProperties9.signalingState) || ((_this$mediaProperties10 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties10 === void 0 ? void 0 : (_this$mediaProperties11 = _this$mediaProperties10.mediaConnection) === null || _this$mediaProperties11 === void 0 ? void 0 : (_this$mediaProperties12 = _this$mediaProperties11.pc) === null || _this$mediaProperties12 === void 0 ? void 0 : _this$mediaProperties12.signalingState) || 'unknown',
5574
- iceConnectionState: ((_this$mediaProperties13 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties13 === void 0 ? void 0 : (_this$mediaProperties14 = _this$mediaProperties13.multistreamConnection) === null || _this$mediaProperties14 === void 0 ? void 0 : (_this$mediaProperties15 = _this$mediaProperties14.pc) === null || _this$mediaProperties15 === void 0 ? void 0 : (_this$mediaProperties16 = _this$mediaProperties15.pc) === null || _this$mediaProperties16 === void 0 ? void 0 : _this$mediaProperties16.iceConnectionState) || ((_this$mediaProperties17 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties17 === void 0 ? void 0 : (_this$mediaProperties18 = _this$mediaProperties17.mediaConnection) === null || _this$mediaProperties18 === void 0 ? void 0 : (_this$mediaProperties19 = _this$mediaProperties18.pc) === null || _this$mediaProperties19 === void 0 ? void 0 : _this$mediaProperties19.iceConnectionState) || 'unknown',
5575
- turnServerUsed: this.turnServerUsed
5576
- })
5577
- })]
5578
- },
5579
- options: {
5580
- meetingId: this.id
5581
- }
5582
- });
5552
+ if (!this.hasMediaConnectionConnectedAtLeastOnce) {
5553
+ // Only send CA event for join flow if we haven't successfully connected media yet
5554
+ // @ts-ignore
5555
+ this.webex.internal.newMetrics.submitClientEvent({
5556
+ name: 'client.ice.end',
5557
+ payload: {
5558
+ canProceed: !this.turnServerUsed,
5559
+ // If we haven't done turn tls retry yet we will proceed with join attempt
5560
+ icePhase: this.turnServerUsed ? 'JOIN_MEETING_FINAL' : 'JOIN_MEETING_RETRY',
5561
+ errors: [
5562
+ // @ts-ignore
5563
+ this.webex.internal.newMetrics.callDiagnosticMetrics.getErrorPayloadForClientErrorCode({
5564
+ clientErrorCode: _internalPluginMetrics.CallDiagnosticUtils.generateClientErrorCodeForIceFailure({
5565
+ signalingState: ((_this$mediaProperties6 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties6 === void 0 ? void 0 : (_this$mediaProperties7 = _this$mediaProperties6.multistreamConnection) === null || _this$mediaProperties7 === void 0 ? void 0 : (_this$mediaProperties8 = _this$mediaProperties7.pc) === null || _this$mediaProperties8 === void 0 ? void 0 : (_this$mediaProperties9 = _this$mediaProperties8.pc) === null || _this$mediaProperties9 === void 0 ? void 0 : _this$mediaProperties9.signalingState) || ((_this$mediaProperties10 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties10 === void 0 ? void 0 : (_this$mediaProperties11 = _this$mediaProperties10.mediaConnection) === null || _this$mediaProperties11 === void 0 ? void 0 : (_this$mediaProperties12 = _this$mediaProperties11.pc) === null || _this$mediaProperties12 === void 0 ? void 0 : _this$mediaProperties12.signalingState) || 'unknown',
5566
+ iceConnectionState: ((_this$mediaProperties13 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties13 === void 0 ? void 0 : (_this$mediaProperties14 = _this$mediaProperties13.multistreamConnection) === null || _this$mediaProperties14 === void 0 ? void 0 : (_this$mediaProperties15 = _this$mediaProperties14.pc) === null || _this$mediaProperties15 === void 0 ? void 0 : (_this$mediaProperties16 = _this$mediaProperties15.pc) === null || _this$mediaProperties16 === void 0 ? void 0 : _this$mediaProperties16.iceConnectionState) || ((_this$mediaProperties17 = this.mediaProperties.webrtcMediaConnection) === null || _this$mediaProperties17 === void 0 ? void 0 : (_this$mediaProperties18 = _this$mediaProperties17.mediaConnection) === null || _this$mediaProperties18 === void 0 ? void 0 : (_this$mediaProperties19 = _this$mediaProperties18.pc) === null || _this$mediaProperties19 === void 0 ? void 0 : _this$mediaProperties19.iceConnectionState) || 'unknown',
5567
+ turnServerUsed: this.turnServerUsed
5568
+ })
5569
+ })]
5570
+ },
5571
+ options: {
5572
+ meetingId: this.id
5573
+ }
5574
+ });
5575
+ }
5583
5576
  throw new Error("Timed out waiting for media connection to be connected, correlationId=".concat(this.correlationId));
5584
5577
  case 9:
5585
5578
  case "end":