@webex/plugin-meetings 3.0.0-beta.360 → 3.0.0-beta.362

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.
@@ -493,6 +493,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
493
493
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "environment", void 0);
494
494
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "namespace", _constants.MEETINGS);
495
495
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "allowMediaInLobby", void 0);
496
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "localShareInstanceId", void 0);
497
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "remoteShareInstanceId", void 0);
496
498
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "turnDiscoverySkippedReason", void 0);
497
499
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "turnServerUsed", void 0);
498
500
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "retriedWithTurnServer", void 0);
@@ -910,7 +912,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
910
912
  _this.webex.internal.newMetrics.submitClientEvent({
911
913
  name: 'client.media.tx.start',
912
914
  payload: {
913
- mediaType: data.type
915
+ mediaType: data.type,
916
+ shareInstanceId: data.type === 'share' ? _this.localShareInstanceId : undefined
914
917
  },
915
918
  options: {
916
919
  meetingId: _this.id
@@ -922,7 +925,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
922
925
  _this.webex.internal.newMetrics.submitClientEvent({
923
926
  name: 'client.media.tx.stop',
924
927
  payload: {
925
- mediaType: data.type
928
+ mediaType: data.type,
929
+ shareInstanceId: data.type === 'share' ? _this.localShareInstanceId : undefined
926
930
  },
927
931
  options: {
928
932
  meetingId: _this.id
@@ -938,7 +942,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
938
942
  _this.webex.internal.newMetrics.submitClientEvent({
939
943
  name: 'client.media.rx.start',
940
944
  payload: {
941
- mediaType: data.type
945
+ mediaType: data.type,
946
+ shareInstanceId: data.type === 'share' ? _this.remoteShareInstanceId : undefined
942
947
  },
943
948
  options: {
944
949
  meetingId: _this.id
@@ -950,7 +955,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
950
955
  _this.webex.internal.newMetrics.submitClientEvent({
951
956
  name: 'client.media.rx.stop',
952
957
  payload: {
953
- mediaType: data.type
958
+ mediaType: data.type,
959
+ shareInstanceId: data.type === 'share' ? _this.remoteShareInstanceId : undefined
954
960
  },
955
961
  options: {
956
962
  meetingId: _this.id
@@ -1761,6 +1767,24 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1761
1767
  */
1762
1768
  _this.keepAliveTimerId = null;
1763
1769
 
1770
+ /**
1771
+ * id for tracking Local Share instances in Call Analyzer
1772
+ * @instance
1773
+ * @type {String}
1774
+ * @private
1775
+ * @memberof Meeting
1776
+ */
1777
+ _this.localShareInstanceId = null;
1778
+
1779
+ /**
1780
+ * id for tracking Remote Share instances in Call Analyzer
1781
+ * @instance
1782
+ * @type {String}
1783
+ * @private
1784
+ * @memberof Meeting
1785
+ */
1786
+ _this.remoteShareInstanceId = null;
1787
+
1764
1788
  /**
1765
1789
  * The class that helps to control recording functions: start, stop, pause, resume, etc
1766
1790
  * @instance
@@ -2932,13 +2956,14 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2932
2956
  break;
2933
2957
  case 25:
2934
2958
  sendStartedSharingRemote = function sendStartedSharingRemote() {
2959
+ _this14.remoteShareInstanceId = contentShare.shareInstanceId;
2935
2960
  _triggerProxy.default.trigger(_this14, {
2936
2961
  file: 'meetings/index',
2937
2962
  function: 'remoteShare'
2938
2963
  }, _constants.EVENT_TRIGGERS.MEETING_STARTED_SHARING_REMOTE, {
2939
2964
  memberId: contentShare.beneficiaryId,
2940
2965
  url: contentShare.url,
2941
- shareInstanceId: contentShare.shareInstanceId,
2966
+ shareInstanceId: _this14.remoteShareInstanceId,
2942
2967
  annotationInfo: contentShare.annotation
2943
2968
  });
2944
2969
  };
@@ -2964,7 +2989,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2964
2989
  _this14.webex.internal.newMetrics.submitClientEvent({
2965
2990
  name: 'client.share.floor-granted.local',
2966
2991
  payload: {
2967
- mediaType: 'share'
2992
+ mediaType: 'share',
2993
+ shareInstanceId: _this14.localShareInstanceId
2968
2994
  },
2969
2995
  options: {
2970
2996
  meetingId: _this14.id
@@ -3002,13 +3028,14 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3002
3028
  if (newShareStatus === _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE) {
3003
3029
  // if we got here, then some remote participant has stolen
3004
3030
  // the presentation from another remote participant
3031
+ _this14.remoteShareInstanceId = contentShare.shareInstanceId;
3005
3032
  _triggerProxy.default.trigger(_this14, {
3006
3033
  file: 'meetings/index',
3007
3034
  function: 'remoteShare'
3008
3035
  }, _constants.EVENT_TRIGGERS.MEETING_STARTED_SHARING_REMOTE, {
3009
3036
  memberId: contentShare.beneficiaryId,
3010
3037
  url: contentShare.url,
3011
- shareInstanceId: contentShare.shareInstanceId,
3038
+ shareInstanceId: _this14.remoteShareInstanceId,
3012
3039
  annotationInfo: contentShare.annotation
3013
3040
  });
3014
3041
  _this14.members.locusMediaSharesUpdate(payload);
@@ -6801,9 +6828,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6801
6828
  if (content && this.shareStatus !== _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE) {
6802
6829
  // @ts-ignore
6803
6830
  this.webex.internal.newMetrics.submitClientEvent({
6804
- name: 'client.share.initiated',
6831
+ name: 'client.share.floor-grant.request',
6805
6832
  payload: {
6806
- mediaType: 'share'
6833
+ mediaType: 'share',
6834
+ shareInstanceId: this.localShareInstanceId
6807
6835
  },
6808
6836
  options: {
6809
6837
  meetingId: this.id
@@ -6830,6 +6858,19 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6830
6858
  reason: error.message,
6831
6859
  stack: error.stack
6832
6860
  });
6861
+
6862
+ // @ts-ignore
6863
+ _this46.webex.internal.newMetrics.submitClientEvent({
6864
+ name: 'client.share.floor-granted.local',
6865
+ payload: {
6866
+ mediaType: 'share',
6867
+ errors: _util.default.getChangeMeetingFloorErrorPayload(error.message),
6868
+ shareInstanceId: _this46.localShareInstanceId
6869
+ },
6870
+ options: {
6871
+ meetingId: _this46.id
6872
+ }
6873
+ });
6833
6874
  _this46.screenShareFloorState = ScreenShareFloorStatus.RELEASED;
6834
6875
  return _promise.default.reject(error);
6835
6876
  });
@@ -6884,7 +6925,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
6884
6925
  this.webex.internal.newMetrics.submitClientEvent({
6885
6926
  name: 'client.share.stopped',
6886
6927
  payload: {
6887
- mediaType: 'share'
6928
+ mediaType: 'share',
6929
+ shareInstanceId: this.localShareInstanceId
6888
6930
  },
6889
6931
  options: {
6890
6932
  meetingId: this.id
@@ -7630,12 +7672,28 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
7630
7672
  return this.updateTranscodedMediaConnection();
7631
7673
  case 21:
7632
7674
  if (!floorRequestNeeded) {
7633
- _context33.next = 24;
7675
+ _context33.next = 26;
7634
7676
  break;
7635
7677
  }
7636
- _context33.next = 24;
7678
+ this.localShareInstanceId = _uuid.default.v4();
7679
+
7680
+ // @ts-ignore
7681
+ this.webex.internal.newMetrics.submitClientEvent({
7682
+ name: 'client.share.initiated',
7683
+ payload: {
7684
+ mediaType: 'share',
7685
+ shareInstanceId: this.localShareInstanceId
7686
+ },
7687
+ options: {
7688
+ meetingId: this.id
7689
+ }
7690
+ });
7691
+ // we're sending the http request to Locus to request the screen share floor
7692
+ // only after the SDP update, because that's how it's always been done for transcoded meetings
7693
+ // and also if sharing from the start, we need confluence to have been created
7694
+ _context33.next = 26;
7637
7695
  return this.enqueueScreenShareFloorRequest();
7638
- case 24:
7696
+ case 26:
7639
7697
  case "end":
7640
7698
  return _context33.stop();
7641
7699
  }