@webex/plugin-meetings 2.59.4 → 2.59.6-next.1

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.
Files changed (148) hide show
  1. package/dist/common/browser-detection.js +2 -2
  2. package/dist/common/browser-detection.js.map +1 -1
  3. package/dist/common/collection.js +2 -2
  4. package/dist/common/collection.js.map +1 -1
  5. package/dist/config.js +2 -2
  6. package/dist/config.js.map +1 -1
  7. package/dist/constants.js +0 -2
  8. package/dist/constants.js.map +1 -1
  9. package/dist/controls-options-manager/index.js +2 -2
  10. package/dist/controls-options-manager/index.js.map +1 -1
  11. package/dist/locus-info/controlsUtils.js +6 -6
  12. package/dist/locus-info/controlsUtils.js.map +1 -1
  13. package/dist/locus-info/index.js +18 -18
  14. package/dist/locus-info/index.js.map +1 -1
  15. package/dist/locus-info/parser.js +2 -2
  16. package/dist/locus-info/parser.js.map +1 -1
  17. package/dist/meeting/index.js +28 -51
  18. package/dist/meeting/index.js.map +1 -1
  19. package/dist/meeting/request.js +2 -2
  20. package/dist/meeting/request.js.map +1 -1
  21. package/dist/meeting/util.js +4 -4
  22. package/dist/meeting/util.js.map +1 -1
  23. package/dist/meeting-info/collection.js +2 -2
  24. package/dist/meeting-info/collection.js.map +1 -1
  25. package/dist/meeting-info/meeting-info-v2.js +7 -1
  26. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  27. package/dist/meetings/collection.js +2 -2
  28. package/dist/meetings/collection.js.map +1 -1
  29. package/dist/members/index.js +2 -2
  30. package/dist/members/index.js.map +1 -1
  31. package/dist/metrics/constants.js +0 -2
  32. package/dist/metrics/constants.js.map +1 -1
  33. package/dist/metrics/index.js +2 -2
  34. package/dist/metrics/index.js.map +1 -1
  35. package/dist/reachability/index.js +9 -2
  36. package/dist/reachability/index.js.map +1 -1
  37. package/dist/statsAnalyzer/global.js +12 -4
  38. package/dist/statsAnalyzer/global.js.map +1 -1
  39. package/dist/statsAnalyzer/index.js +14 -56
  40. package/dist/statsAnalyzer/index.js.map +1 -1
  41. package/dist/statsAnalyzer/mqaUtil.js +15 -15
  42. package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
  43. package/package.json +22 -21
  44. package/src/config.ts +2 -2
  45. package/src/constants.ts +0 -2
  46. package/src/meeting/index.ts +0 -35
  47. package/src/meeting-info/meeting-info-v2.ts +1 -1
  48. package/src/metrics/constants.ts +0 -2
  49. package/src/statsAnalyzer/global.ts +10 -2
  50. package/src/statsAnalyzer/index.ts +17 -80
  51. package/test/unit/spec/meeting/index.js +6 -77
  52. package/test/unit/spec/meeting-info/meetinginfov2.js +1 -1
  53. package/test/unit/spec/stats-analyzer/index.js +0 -151
  54. package/dist/common/browser-detection.d.ts +0 -9
  55. package/dist/common/collection.d.ts +0 -48
  56. package/dist/common/config.d.ts +0 -2
  57. package/dist/common/errors/captcha-error.d.ts +0 -15
  58. package/dist/common/errors/intent-to-join.d.ts +0 -16
  59. package/dist/common/errors/join-meeting.d.ts +0 -17
  60. package/dist/common/errors/media.d.ts +0 -15
  61. package/dist/common/errors/parameter.d.ts +0 -15
  62. package/dist/common/errors/password-error.d.ts +0 -15
  63. package/dist/common/errors/permission.d.ts +0 -14
  64. package/dist/common/errors/reconnection-in-progress.d.ts +0 -9
  65. package/dist/common/errors/reconnection.d.ts +0 -15
  66. package/dist/common/errors/stats.d.ts +0 -15
  67. package/dist/common/errors/webex-errors.d.ts +0 -81
  68. package/dist/common/errors/webex-meetings-error.d.ts +0 -20
  69. package/dist/common/events/events-scope.d.ts +0 -17
  70. package/dist/common/events/events.d.ts +0 -12
  71. package/dist/common/events/trigger-proxy.d.ts +0 -2
  72. package/dist/common/events/util.d.ts +0 -2
  73. package/dist/common/logs/logger-config.d.ts +0 -2
  74. package/dist/common/logs/logger-proxy.d.ts +0 -2
  75. package/dist/common/logs/request.d.ts +0 -34
  76. package/dist/common/queue.d.ts +0 -32
  77. package/dist/config.d.ts +0 -73
  78. package/dist/constants.d.ts +0 -926
  79. package/dist/controls-options-manager/constants.d.ts +0 -4
  80. package/dist/controls-options-manager/enums.d.ts +0 -5
  81. package/dist/controls-options-manager/index.d.ts +0 -120
  82. package/dist/controls-options-manager/util.d.ts +0 -7
  83. package/dist/index.d.ts +0 -4
  84. package/dist/locus-info/controlsUtils.d.ts +0 -2
  85. package/dist/locus-info/embeddedAppsUtils.d.ts +0 -2
  86. package/dist/locus-info/fullState.d.ts +0 -2
  87. package/dist/locus-info/hostUtils.d.ts +0 -2
  88. package/dist/locus-info/index.d.ts +0 -269
  89. package/dist/locus-info/infoUtils.d.ts +0 -2
  90. package/dist/locus-info/mediaSharesUtils.d.ts +0 -2
  91. package/dist/locus-info/parser.d.ts +0 -212
  92. package/dist/locus-info/selfUtils.d.ts +0 -2
  93. package/dist/media/index.d.ts +0 -32
  94. package/dist/media/properties.d.ts +0 -108
  95. package/dist/media/util.d.ts +0 -2
  96. package/dist/mediaQualityMetrics/config.d.ts +0 -233
  97. package/dist/meeting/effectsState.d.ts +0 -42
  98. package/dist/meeting/in-meeting-actions.d.ts +0 -79
  99. package/dist/meeting/index.d.ts +0 -1621
  100. package/dist/meeting/muteState.d.ts +0 -116
  101. package/dist/meeting/request.d.ts +0 -255
  102. package/dist/meeting/state.d.ts +0 -9
  103. package/dist/meeting/util.d.ts +0 -2
  104. package/dist/meeting-info/collection.d.ts +0 -20
  105. package/dist/meeting-info/index.d.ts +0 -57
  106. package/dist/meeting-info/meeting-info-v2.d.ts +0 -93
  107. package/dist/meeting-info/request.d.ts +0 -22
  108. package/dist/meeting-info/util.d.ts +0 -2
  109. package/dist/meeting-info/utilv2.d.ts +0 -2
  110. package/dist/meetings/collection.d.ts +0 -23
  111. package/dist/meetings/index.d.ts +0 -296
  112. package/dist/meetings/request.d.ts +0 -27
  113. package/dist/meetings/util.d.ts +0 -18
  114. package/dist/member/index.d.ts +0 -147
  115. package/dist/member/member.types.d.ts +0 -11
  116. package/dist/member/util.d.ts +0 -2
  117. package/dist/members/collection.d.ts +0 -24
  118. package/dist/members/index.d.ts +0 -298
  119. package/dist/members/request.d.ts +0 -50
  120. package/dist/members/util.d.ts +0 -2
  121. package/dist/metrics/config.d.ts +0 -169
  122. package/dist/metrics/constants.d.ts +0 -59
  123. package/dist/metrics/index.d.ts +0 -152
  124. package/dist/networkQualityMonitor/index.d.ts +0 -70
  125. package/dist/peer-connection-manager/index.d.ts +0 -6
  126. package/dist/peer-connection-manager/util.d.ts +0 -6
  127. package/dist/personal-meeting-room/index.d.ts +0 -47
  128. package/dist/personal-meeting-room/request.d.ts +0 -14
  129. package/dist/personal-meeting-room/util.d.ts +0 -2
  130. package/dist/reachability/index.d.ts +0 -139
  131. package/dist/reachability/request.d.ts +0 -35
  132. package/dist/reactions/reactions.d.ts +0 -4
  133. package/dist/reactions/reactions.type.d.ts +0 -32
  134. package/dist/reconnection-manager/index.d.ts +0 -112
  135. package/dist/recording-controller/enums.d.ts +0 -7
  136. package/dist/recording-controller/index.d.ts +0 -193
  137. package/dist/recording-controller/util.d.ts +0 -13
  138. package/dist/roap/collection.d.ts +0 -10
  139. package/dist/roap/handler.d.ts +0 -47
  140. package/dist/roap/index.d.ts +0 -116
  141. package/dist/roap/request.d.ts +0 -35
  142. package/dist/roap/state.d.ts +0 -9
  143. package/dist/roap/turnDiscovery.d.ts +0 -67
  144. package/dist/roap/util.d.ts +0 -2
  145. package/dist/statsAnalyzer/global.d.ts +0 -118
  146. package/dist/statsAnalyzer/index.d.ts +0 -193
  147. package/dist/statsAnalyzer/mqaUtil.d.ts +0 -22
  148. package/dist/transcription/index.d.ts +0 -64
@@ -28,11 +28,8 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/
28
28
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
29
29
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf"));
30
30
  var _defineProperty3 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
31
- var _isString2 = _interopRequireDefault(require("lodash/isString"));
32
- var _pick2 = _interopRequireDefault(require("lodash/pick"));
33
- var _isEqual2 = _interopRequireDefault(require("lodash/isEqual"));
34
- var _cloneDeep2 = _interopRequireDefault(require("lodash/cloneDeep"));
35
31
  var _uuid = _interopRequireDefault(require("uuid"));
32
+ var _lodash = require("lodash");
36
33
  var _webexCore = require("@webex/webex-core");
37
34
  var _internalMediaCore = require("@webex/internal-media-core");
38
35
  var _webexErrors = require("../common/errors/webex-errors");
@@ -508,7 +505,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
508
505
  _loggerProxy.default.logger.warn('Meeting:index#getMediaStreams --> Enabling `sendShare` along with `sendAudio` & `sendVideo`, on Safari, causes a failure while setting up a screen share at the same time as the camera+mic stream');
509
506
  _loggerProxy.default.logger.warn('Meeting:index#getMediaStreams --> Please use `meeting.shareScreen()` to manually start the screen share after successfully joining the meeting');
510
507
  }
511
- if (audioVideo && (0, _isString2.default)(audioVideo)) {
508
+ if (audioVideo && (0, _lodash.isString)(audioVideo)) {
512
509
  if ((0, _keys.default)(_constants.VIDEO_RESOLUTIONS).includes(audioVideo)) {
513
510
  _this.mediaProperties.setLocalQualityLevel(audioVideo);
514
511
  audioVideo = {
@@ -671,23 +668,6 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
671
668
  }
672
669
  });
673
670
  });
674
- _this.statsAnalyzer.on(_statsAnalyzer.EVENTS.NO_VIDEO_ENCODED, function (data) {
675
- _metrics.default.sendBehavioralMetric(_constants2.default.NO_VIDEO_ENCODED);
676
- _triggerProxy.default.trigger((0, _assertThisInitialized2.default)(_this), {
677
- file: 'meeting/index',
678
- function: 'compareLastStatsResult'
679
- }, _constants.EVENT_TRIGGERS.MEETING_NO_VIDEO_ENCODED, data);
680
- });
681
- _this.statsAnalyzer.on(_statsAnalyzer.EVENTS.NO_FRAMES_SENT, function (data) {
682
- var _this$mediaProperties, _this$mediaProperties2;
683
- if ((_this$mediaProperties = _this.mediaProperties.mediaDirection) !== null && _this$mediaProperties !== void 0 && _this$mediaProperties.sendVideo && data.mediaType === 'video' || (_this$mediaProperties2 = _this.mediaProperties.mediaDirection) !== null && _this$mediaProperties2 !== void 0 && _this$mediaProperties2.sendShare && data.mediaType === 'share') {
684
- _metrics.default.sendBehavioralMetric(_constants2.default.NO_FRAMES_SENT);
685
- _triggerProxy.default.trigger((0, _assertThisInitialized2.default)(_this), {
686
- file: 'meeting/index',
687
- function: 'compareLastStatsResult'
688
- }, _constants.EVENT_TRIGGERS.MEETING_NO_FRAMES_SENT, data);
689
- }
690
- });
691
671
  });
692
672
  /**
693
673
  * emits event when the negotation is completed
@@ -1064,7 +1044,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1064
1044
  * @memberof Meeting
1065
1045
  */
1066
1046
  _this.updateMediaConnections = function (mediaConnections) {
1067
- if (!(0, _isEqual2.default)(_this.mediaConnections, mediaConnections)) {
1047
+ if (!(0, _lodash.isEqual)(_this.mediaConnections, mediaConnections)) {
1068
1048
  // grab last/latest item in the new mediaConnections information
1069
1049
  _this.mediaConnections = mediaConnections.slice(-1);
1070
1050
  }
@@ -1755,7 +1735,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1755
1735
  }, {
1756
1736
  key: "sendCallAnalyzerMetrics",
1757
1737
  value: function sendCallAnalyzerMetrics(options) {
1758
- var payload = this.getAnalyzerMetricsPrePayload(_objectSpread(_objectSpread({}, (0, _pick2.default)(this.config.metrics, ['clientType', 'subClientType'])), options));
1738
+ var payload = this.getAnalyzerMetricsPrePayload(_objectSpread(_objectSpread({}, (0, _lodash.pick)(this.config.metrics, ['clientType', 'subClientType'])), options));
1759
1739
 
1760
1740
  // @ts-ignore - fix type
1761
1741
  return this.webex.internal.metrics.submitCallDiagnosticEvents(payload);
@@ -1776,7 +1756,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1776
1756
  value: function sendMediaQualityAnalyzerMetrics(options) {
1777
1757
  var payload = this.getAnalyzerMetricsPrePayload(_objectSpread(_objectSpread({
1778
1758
  type: _constants.MQA_STATS.CA_TYPE
1779
- }, (0, _pick2.default)(this.config.metrics, ['clientType', 'subClientType'])), options));
1759
+ }, (0, _lodash.pick)(this.config.metrics, ['clientType', 'subClientType'])), options));
1780
1760
 
1781
1761
  // @ts-ignore
1782
1762
  return this.webex.internal.metrics.submitCallDiagnosticEvents(payload);
@@ -3004,10 +2984,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3004
2984
  key: "closeRemoteTracks",
3005
2985
  value: function closeRemoteTracks() {
3006
2986
  var _this21 = this;
3007
- var _this$mediaProperties3 = this.mediaProperties,
3008
- remoteAudioTrack = _this$mediaProperties3.remoteAudioTrack,
3009
- remoteVideoTrack = _this$mediaProperties3.remoteVideoTrack,
3010
- remoteShare = _this$mediaProperties3.remoteShare;
2987
+ var _this$mediaProperties = this.mediaProperties,
2988
+ remoteAudioTrack = _this$mediaProperties.remoteAudioTrack,
2989
+ remoteVideoTrack = _this$mediaProperties.remoteVideoTrack,
2990
+ remoteShare = _this$mediaProperties.remoteShare;
3011
2991
 
3012
2992
  /**
3013
2993
  * Triggers an event to the developer
@@ -3206,9 +3186,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3206
3186
  key: "closeLocalStream",
3207
3187
  value: function closeLocalStream() {
3208
3188
  var _this23 = this;
3209
- var _this$mediaProperties4 = this.mediaProperties,
3210
- audioTrack = _this$mediaProperties4.audioTrack,
3211
- videoTrack = _this$mediaProperties4.videoTrack;
3189
+ var _this$mediaProperties2 = this.mediaProperties,
3190
+ audioTrack = _this$mediaProperties2.audioTrack,
3191
+ videoTrack = _this$mediaProperties2.videoTrack;
3212
3192
  return _media.default.stopTracks(audioTrack).then(function () {
3213
3193
  return _media.default.stopTracks(videoTrack);
3214
3194
  }).then(function () {
@@ -3769,9 +3749,6 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3769
3749
  // @ts-ignore - fix type
3770
3750
  this.webex.sessionId, this.members);
3771
3751
  _loggerProxy.default.logger.info("Meeting:index#receiveTranscription -->\n opened LLM web socket connection successfully.");
3772
- if (!this.inMeetingActions.isClosedCaptionActive) {
3773
- _loggerProxy.default.logger.error("Meeting:index#receiveTranscription --> Transcription cannot be started until a licensed user enables it");
3774
- }
3775
3752
 
3776
3753
  // retrieve and pass the payload
3777
3754
  this.transcription.subscribe(function (payload) {
@@ -3783,10 +3760,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3783
3760
  this.monitorTranscriptionSocketConnection();
3784
3761
  // @ts-ignore - fix type
3785
3762
  this.transcription.connect(this.webex.credentials.supertoken.access_token);
3786
- _context2.next = 20;
3763
+ _context2.next = 19;
3787
3764
  break;
3788
- case 16:
3789
- _context2.prev = 16;
3765
+ case 15:
3766
+ _context2.prev = 15;
3790
3767
  _context2.t0 = _context2["catch"](1);
3791
3768
  _loggerProxy.default.logger.error("Meeting:index#receiveTranscription --> ".concat(_context2.t0));
3792
3769
  _metrics.default.sendBehavioralMetric(_constants2.default.RECEIVE_TRANSCRIPTION_FAILURE, {
@@ -3794,11 +3771,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3794
3771
  reason: _context2.t0.message,
3795
3772
  stack: _context2.t0.stack
3796
3773
  });
3797
- case 20:
3774
+ case 19:
3798
3775
  case "end":
3799
3776
  return _context2.stop();
3800
3777
  }
3801
- }, _callee2, this, [[1, 16]]);
3778
+ }, _callee2, this, [[1, 15]]);
3802
3779
  }));
3803
3780
  function receiveTranscription() {
3804
3781
  return _receiveTranscription.apply(this, arguments);
@@ -5349,11 +5326,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5349
5326
  var renderInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
5350
5327
  var main = renderInfo.main,
5351
5328
  content = renderInfo.content;
5352
- var _this$mediaProperties5 = this.mediaProperties,
5353
- mediaDirection = _this$mediaProperties5.mediaDirection,
5354
- remoteShare = _this$mediaProperties5.remoteShare,
5355
- remoteVideoTrack = _this$mediaProperties5.remoteVideoTrack;
5356
- var layoutInfo = (0, _cloneDeep2.default)(this.lastVideoLayoutInfo);
5329
+ var _this$mediaProperties3 = this.mediaProperties,
5330
+ mediaDirection = _this$mediaProperties3.mediaDirection,
5331
+ remoteShare = _this$mediaProperties3.remoteShare,
5332
+ remoteVideoTrack = _this$mediaProperties3.remoteVideoTrack;
5333
+ var layoutInfo = (0, _lodash.cloneDeep)(this.lastVideoLayoutInfo);
5357
5334
 
5358
5335
  // TODO: We need a real time value for Audio, Video and Share send indicator
5359
5336
  if (mediaDirection.receiveVideo !== true || !remoteVideoTrack) {
@@ -5393,11 +5370,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5393
5370
  return this.rejectWithErrorLog('Meeting:index#changeVideoLayout --> unable to send renderInfo for content, you are not receiving remote share');
5394
5371
  }
5395
5372
  }
5396
- if ((0, _isEqual2.default)(layoutInfo, this.lastVideoLayoutInfo)) {
5373
+ if ((0, _lodash.isEqual)(layoutInfo, this.lastVideoLayoutInfo)) {
5397
5374
  // nothing changed, no need to send any request
5398
5375
  return _promise.default.resolve();
5399
5376
  }
5400
- this.lastVideoLayoutInfo = (0, _cloneDeep2.default)(layoutInfo);
5377
+ this.lastVideoLayoutInfo = (0, _lodash.cloneDeep)(layoutInfo);
5401
5378
  this.locusInfo.once(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_LAYOUT_UPDATED, function (envelope) {
5402
5379
  _triggerProxy.default.trigger(_this52, {
5403
5380
  file: 'meeting/index',
@@ -5540,10 +5517,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5540
5517
  }
5541
5518
 
5542
5519
  // Determine the direction of our current media
5543
- var _this$mediaProperties6 = this.mediaProperties.mediaDirection,
5544
- receiveAudio = _this$mediaProperties6.receiveAudio,
5545
- receiveVideo = _this$mediaProperties6.receiveVideo,
5546
- sendVideo = _this$mediaProperties6.sendVideo;
5520
+ var _this$mediaProperties4 = this.mediaProperties.mediaDirection,
5521
+ receiveAudio = _this$mediaProperties4.receiveAudio,
5522
+ receiveVideo = _this$mediaProperties4.receiveVideo,
5523
+ sendVideo = _this$mediaProperties4.sendVideo;
5547
5524
  return (sendVideo ? this.setLocalVideoQuality(level) : _promise.default.resolve()).then(function () {
5548
5525
  return receiveAudio || receiveVideo ? _this54.setRemoteQualityLevel(level) : _promise.default.resolve();
5549
5526
  }).catch(function (error) {