@webex/plugin-meetings 2.59.7 → 2.59.8-next.2

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 (147) 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/meetings/collection.js +2 -2
  26. package/dist/meetings/collection.js.map +1 -1
  27. package/dist/members/index.js +2 -2
  28. package/dist/members/index.js.map +1 -1
  29. package/dist/metrics/constants.js +0 -2
  30. package/dist/metrics/constants.js.map +1 -1
  31. package/dist/metrics/index.js +2 -2
  32. package/dist/metrics/index.js.map +1 -1
  33. package/dist/reachability/index.js +9 -2
  34. package/dist/reachability/index.js.map +1 -1
  35. package/dist/roap/index.js.map +1 -1
  36. package/dist/statsAnalyzer/global.js +12 -4
  37. package/dist/statsAnalyzer/global.js.map +1 -1
  38. package/dist/statsAnalyzer/index.js +14 -56
  39. package/dist/statsAnalyzer/index.js.map +1 -1
  40. package/dist/statsAnalyzer/mqaUtil.js +15 -15
  41. package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
  42. package/package.json +22 -21
  43. package/src/config.ts +2 -2
  44. package/src/constants.ts +0 -2
  45. package/src/meeting/index.ts +0 -35
  46. package/src/metrics/constants.ts +0 -2
  47. package/src/roap/index.ts +0 -1
  48. package/src/statsAnalyzer/global.ts +10 -2
  49. package/src/statsAnalyzer/index.ts +17 -80
  50. package/test/unit/spec/meeting/index.js +6 -77
  51. package/test/unit/spec/roap/index.ts +1 -0
  52. package/test/unit/spec/stats-analyzer/index.js +0 -151
  53. package/dist/common/browser-detection.d.ts +0 -9
  54. package/dist/common/collection.d.ts +0 -48
  55. package/dist/common/config.d.ts +0 -2
  56. package/dist/common/errors/captcha-error.d.ts +0 -15
  57. package/dist/common/errors/intent-to-join.d.ts +0 -16
  58. package/dist/common/errors/join-meeting.d.ts +0 -17
  59. package/dist/common/errors/media.d.ts +0 -15
  60. package/dist/common/errors/parameter.d.ts +0 -15
  61. package/dist/common/errors/password-error.d.ts +0 -15
  62. package/dist/common/errors/permission.d.ts +0 -14
  63. package/dist/common/errors/reconnection-in-progress.d.ts +0 -9
  64. package/dist/common/errors/reconnection.d.ts +0 -15
  65. package/dist/common/errors/stats.d.ts +0 -15
  66. package/dist/common/errors/webex-errors.d.ts +0 -81
  67. package/dist/common/errors/webex-meetings-error.d.ts +0 -20
  68. package/dist/common/events/events-scope.d.ts +0 -17
  69. package/dist/common/events/events.d.ts +0 -12
  70. package/dist/common/events/trigger-proxy.d.ts +0 -2
  71. package/dist/common/events/util.d.ts +0 -2
  72. package/dist/common/logs/logger-config.d.ts +0 -2
  73. package/dist/common/logs/logger-proxy.d.ts +0 -2
  74. package/dist/common/logs/request.d.ts +0 -34
  75. package/dist/common/queue.d.ts +0 -32
  76. package/dist/config.d.ts +0 -73
  77. package/dist/constants.d.ts +0 -926
  78. package/dist/controls-options-manager/constants.d.ts +0 -4
  79. package/dist/controls-options-manager/enums.d.ts +0 -5
  80. package/dist/controls-options-manager/index.d.ts +0 -120
  81. package/dist/controls-options-manager/util.d.ts +0 -7
  82. package/dist/index.d.ts +0 -4
  83. package/dist/locus-info/controlsUtils.d.ts +0 -2
  84. package/dist/locus-info/embeddedAppsUtils.d.ts +0 -2
  85. package/dist/locus-info/fullState.d.ts +0 -2
  86. package/dist/locus-info/hostUtils.d.ts +0 -2
  87. package/dist/locus-info/index.d.ts +0 -269
  88. package/dist/locus-info/infoUtils.d.ts +0 -2
  89. package/dist/locus-info/mediaSharesUtils.d.ts +0 -2
  90. package/dist/locus-info/parser.d.ts +0 -212
  91. package/dist/locus-info/selfUtils.d.ts +0 -2
  92. package/dist/media/index.d.ts +0 -32
  93. package/dist/media/properties.d.ts +0 -108
  94. package/dist/media/util.d.ts +0 -2
  95. package/dist/mediaQualityMetrics/config.d.ts +0 -233
  96. package/dist/meeting/effectsState.d.ts +0 -42
  97. package/dist/meeting/in-meeting-actions.d.ts +0 -79
  98. package/dist/meeting/index.d.ts +0 -1622
  99. package/dist/meeting/muteState.d.ts +0 -116
  100. package/dist/meeting/request.d.ts +0 -255
  101. package/dist/meeting/state.d.ts +0 -9
  102. package/dist/meeting/util.d.ts +0 -2
  103. package/dist/meeting-info/collection.d.ts +0 -20
  104. package/dist/meeting-info/index.d.ts +0 -57
  105. package/dist/meeting-info/meeting-info-v2.d.ts +0 -93
  106. package/dist/meeting-info/request.d.ts +0 -22
  107. package/dist/meeting-info/util.d.ts +0 -2
  108. package/dist/meeting-info/utilv2.d.ts +0 -2
  109. package/dist/meetings/collection.d.ts +0 -23
  110. package/dist/meetings/index.d.ts +0 -296
  111. package/dist/meetings/request.d.ts +0 -27
  112. package/dist/meetings/util.d.ts +0 -18
  113. package/dist/member/index.d.ts +0 -147
  114. package/dist/member/member.types.d.ts +0 -11
  115. package/dist/member/util.d.ts +0 -2
  116. package/dist/members/collection.d.ts +0 -24
  117. package/dist/members/index.d.ts +0 -298
  118. package/dist/members/request.d.ts +0 -50
  119. package/dist/members/util.d.ts +0 -2
  120. package/dist/metrics/config.d.ts +0 -169
  121. package/dist/metrics/constants.d.ts +0 -59
  122. package/dist/metrics/index.d.ts +0 -152
  123. package/dist/networkQualityMonitor/index.d.ts +0 -70
  124. package/dist/peer-connection-manager/index.d.ts +0 -6
  125. package/dist/peer-connection-manager/util.d.ts +0 -6
  126. package/dist/personal-meeting-room/index.d.ts +0 -47
  127. package/dist/personal-meeting-room/request.d.ts +0 -14
  128. package/dist/personal-meeting-room/util.d.ts +0 -2
  129. package/dist/reachability/index.d.ts +0 -139
  130. package/dist/reachability/request.d.ts +0 -35
  131. package/dist/reactions/reactions.d.ts +0 -4
  132. package/dist/reactions/reactions.type.d.ts +0 -32
  133. package/dist/reconnection-manager/index.d.ts +0 -112
  134. package/dist/recording-controller/enums.d.ts +0 -7
  135. package/dist/recording-controller/index.d.ts +0 -193
  136. package/dist/recording-controller/util.d.ts +0 -13
  137. package/dist/roap/collection.d.ts +0 -10
  138. package/dist/roap/handler.d.ts +0 -47
  139. package/dist/roap/index.d.ts +0 -116
  140. package/dist/roap/request.d.ts +0 -35
  141. package/dist/roap/state.d.ts +0 -9
  142. package/dist/roap/turnDiscovery.d.ts +0 -81
  143. package/dist/roap/util.d.ts +0 -2
  144. package/dist/statsAnalyzer/global.d.ts +0 -118
  145. package/dist/statsAnalyzer/index.d.ts +0 -193
  146. package/dist/statsAnalyzer/mqaUtil.d.ts +0 -22
  147. 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");
@@ -509,7 +506,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
509
506
  _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');
510
507
  _loggerProxy.default.logger.warn('Meeting:index#getMediaStreams --> Please use `meeting.shareScreen()` to manually start the screen share after successfully joining the meeting');
511
508
  }
512
- if (audioVideo && (0, _isString2.default)(audioVideo)) {
509
+ if (audioVideo && (0, _lodash.isString)(audioVideo)) {
513
510
  if ((0, _keys.default)(_constants.VIDEO_RESOLUTIONS).includes(audioVideo)) {
514
511
  _this.mediaProperties.setLocalQualityLevel(audioVideo);
515
512
  audioVideo = {
@@ -672,23 +669,6 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
672
669
  }
673
670
  });
674
671
  });
675
- _this.statsAnalyzer.on(_statsAnalyzer.EVENTS.NO_VIDEO_ENCODED, function (data) {
676
- _metrics.default.sendBehavioralMetric(_constants2.default.NO_VIDEO_ENCODED);
677
- _triggerProxy.default.trigger((0, _assertThisInitialized2.default)(_this), {
678
- file: 'meeting/index',
679
- function: 'compareLastStatsResult'
680
- }, _constants.EVENT_TRIGGERS.MEETING_NO_VIDEO_ENCODED, data);
681
- });
682
- _this.statsAnalyzer.on(_statsAnalyzer.EVENTS.NO_FRAMES_SENT, function (data) {
683
- var _this$mediaProperties, _this$mediaProperties2;
684
- 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') {
685
- _metrics.default.sendBehavioralMetric(_constants2.default.NO_FRAMES_SENT);
686
- _triggerProxy.default.trigger((0, _assertThisInitialized2.default)(_this), {
687
- file: 'meeting/index',
688
- function: 'compareLastStatsResult'
689
- }, _constants.EVENT_TRIGGERS.MEETING_NO_FRAMES_SENT, data);
690
- }
691
- });
692
672
  });
693
673
  /**
694
674
  * emits event when the negotation is completed
@@ -1065,7 +1045,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1065
1045
  * @memberof Meeting
1066
1046
  */
1067
1047
  _this.updateMediaConnections = function (mediaConnections) {
1068
- if (!(0, _isEqual2.default)(_this.mediaConnections, mediaConnections)) {
1048
+ if (!(0, _lodash.isEqual)(_this.mediaConnections, mediaConnections)) {
1069
1049
  // grab last/latest item in the new mediaConnections information
1070
1050
  _this.mediaConnections = mediaConnections.slice(-1);
1071
1051
  }
@@ -1756,7 +1736,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1756
1736
  }, {
1757
1737
  key: "sendCallAnalyzerMetrics",
1758
1738
  value: function sendCallAnalyzerMetrics(options) {
1759
- var payload = this.getAnalyzerMetricsPrePayload(_objectSpread(_objectSpread({}, (0, _pick2.default)(this.config.metrics, ['clientType', 'subClientType'])), options));
1739
+ var payload = this.getAnalyzerMetricsPrePayload(_objectSpread(_objectSpread({}, (0, _lodash.pick)(this.config.metrics, ['clientType', 'subClientType'])), options));
1760
1740
 
1761
1741
  // @ts-ignore - fix type
1762
1742
  return this.webex.internal.metrics.submitCallDiagnosticEvents(payload);
@@ -1777,7 +1757,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1777
1757
  value: function sendMediaQualityAnalyzerMetrics(options) {
1778
1758
  var payload = this.getAnalyzerMetricsPrePayload(_objectSpread(_objectSpread({
1779
1759
  type: _constants.MQA_STATS.CA_TYPE
1780
- }, (0, _pick2.default)(this.config.metrics, ['clientType', 'subClientType'])), options));
1760
+ }, (0, _lodash.pick)(this.config.metrics, ['clientType', 'subClientType'])), options));
1781
1761
 
1782
1762
  // @ts-ignore
1783
1763
  return this.webex.internal.metrics.submitCallDiagnosticEvents(payload);
@@ -3032,10 +3012,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3032
3012
  key: "closeRemoteTracks",
3033
3013
  value: function closeRemoteTracks() {
3034
3014
  var _this21 = this;
3035
- var _this$mediaProperties3 = this.mediaProperties,
3036
- remoteAudioTrack = _this$mediaProperties3.remoteAudioTrack,
3037
- remoteVideoTrack = _this$mediaProperties3.remoteVideoTrack,
3038
- remoteShare = _this$mediaProperties3.remoteShare;
3015
+ var _this$mediaProperties = this.mediaProperties,
3016
+ remoteAudioTrack = _this$mediaProperties.remoteAudioTrack,
3017
+ remoteVideoTrack = _this$mediaProperties.remoteVideoTrack,
3018
+ remoteShare = _this$mediaProperties.remoteShare;
3039
3019
 
3040
3020
  /**
3041
3021
  * Triggers an event to the developer
@@ -3234,9 +3214,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3234
3214
  key: "closeLocalStream",
3235
3215
  value: function closeLocalStream() {
3236
3216
  var _this23 = this;
3237
- var _this$mediaProperties4 = this.mediaProperties,
3238
- audioTrack = _this$mediaProperties4.audioTrack,
3239
- videoTrack = _this$mediaProperties4.videoTrack;
3217
+ var _this$mediaProperties2 = this.mediaProperties,
3218
+ audioTrack = _this$mediaProperties2.audioTrack,
3219
+ videoTrack = _this$mediaProperties2.videoTrack;
3240
3220
  return _media.default.stopTracks(audioTrack).then(function () {
3241
3221
  return _media.default.stopTracks(videoTrack);
3242
3222
  }).then(function () {
@@ -3797,9 +3777,6 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3797
3777
  // @ts-ignore - fix type
3798
3778
  this.webex.sessionId, this.members);
3799
3779
  _loggerProxy.default.logger.info("Meeting:index#startTranscription -->\n opened LLM web socket connection successfully.");
3800
- if (!this.inMeetingActions.isClosedCaptionActive) {
3801
- _loggerProxy.default.logger.error("Meeting:index#receiveTranscription --> Transcription cannot be started until a licensed user enables it");
3802
- }
3803
3780
 
3804
3781
  // retrieve and pass the payload
3805
3782
  this.transcription.subscribe(function (payload) {
@@ -3811,10 +3788,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3811
3788
  this.monitorTranscriptionSocketConnection();
3812
3789
  // @ts-ignore - fix type
3813
3790
  this.transcription.connect(this.webex.credentials.supertoken.access_token);
3814
- _context3.next = 20;
3791
+ _context3.next = 19;
3815
3792
  break;
3816
- case 16:
3817
- _context3.prev = 16;
3793
+ case 15:
3794
+ _context3.prev = 15;
3818
3795
  _context3.t0 = _context3["catch"](1);
3819
3796
  _loggerProxy.default.logger.error("Meeting:index#startTranscription --> ".concat(_context3.t0));
3820
3797
  _metrics.default.sendBehavioralMetric(_constants2.default.RECEIVE_TRANSCRIPTION_FAILURE, {
@@ -3822,11 +3799,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3822
3799
  reason: _context3.t0.message,
3823
3800
  stack: _context3.t0.stack
3824
3801
  });
3825
- case 20:
3802
+ case 19:
3826
3803
  case "end":
3827
3804
  return _context3.stop();
3828
3805
  }
3829
- }, _callee3, this, [[1, 16]]);
3806
+ }, _callee3, this, [[1, 15]]);
3830
3807
  }));
3831
3808
  function startTranscription() {
3832
3809
  return _startTranscription.apply(this, arguments);
@@ -5378,11 +5355,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5378
5355
  var renderInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
5379
5356
  var main = renderInfo.main,
5380
5357
  content = renderInfo.content;
5381
- var _this$mediaProperties5 = this.mediaProperties,
5382
- mediaDirection = _this$mediaProperties5.mediaDirection,
5383
- remoteShare = _this$mediaProperties5.remoteShare,
5384
- remoteVideoTrack = _this$mediaProperties5.remoteVideoTrack;
5385
- var layoutInfo = (0, _cloneDeep2.default)(this.lastVideoLayoutInfo);
5358
+ var _this$mediaProperties3 = this.mediaProperties,
5359
+ mediaDirection = _this$mediaProperties3.mediaDirection,
5360
+ remoteShare = _this$mediaProperties3.remoteShare,
5361
+ remoteVideoTrack = _this$mediaProperties3.remoteVideoTrack;
5362
+ var layoutInfo = (0, _lodash.cloneDeep)(this.lastVideoLayoutInfo);
5386
5363
 
5387
5364
  // TODO: We need a real time value for Audio, Video and Share send indicator
5388
5365
  if (mediaDirection.receiveVideo !== true || !remoteVideoTrack) {
@@ -5422,11 +5399,11 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5422
5399
  return this.rejectWithErrorLog('Meeting:index#changeVideoLayout --> unable to send renderInfo for content, you are not receiving remote share');
5423
5400
  }
5424
5401
  }
5425
- if ((0, _isEqual2.default)(layoutInfo, this.lastVideoLayoutInfo)) {
5402
+ if ((0, _lodash.isEqual)(layoutInfo, this.lastVideoLayoutInfo)) {
5426
5403
  // nothing changed, no need to send any request
5427
5404
  return _promise.default.resolve();
5428
5405
  }
5429
- this.lastVideoLayoutInfo = (0, _cloneDeep2.default)(layoutInfo);
5406
+ this.lastVideoLayoutInfo = (0, _lodash.cloneDeep)(layoutInfo);
5430
5407
  this.locusInfo.once(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_LAYOUT_UPDATED, function (envelope) {
5431
5408
  _triggerProxy.default.trigger(_this52, {
5432
5409
  file: 'meeting/index',
@@ -5569,10 +5546,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5569
5546
  }
5570
5547
 
5571
5548
  // Determine the direction of our current media
5572
- var _this$mediaProperties6 = this.mediaProperties.mediaDirection,
5573
- receiveAudio = _this$mediaProperties6.receiveAudio,
5574
- receiveVideo = _this$mediaProperties6.receiveVideo,
5575
- sendVideo = _this$mediaProperties6.sendVideo;
5549
+ var _this$mediaProperties4 = this.mediaProperties.mediaDirection,
5550
+ receiveAudio = _this$mediaProperties4.receiveAudio,
5551
+ receiveVideo = _this$mediaProperties4.receiveVideo,
5552
+ sendVideo = _this$mediaProperties4.sendVideo;
5576
5553
  return (sendVideo ? this.setLocalVideoQuality(level) : _promise.default.resolve()).then(function () {
5577
5554
  return receiveAudio || receiveVideo ? _this54.setRemoteQualityLevel(level) : _promise.default.resolve();
5578
5555
  }).catch(function (error) {