@webex/plugin-meetings 2.59.7 → 2.59.8-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.
- package/dist/common/browser-detection.js +2 -2
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js +2 -2
- package/dist/common/collection.js.map +1 -1
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.js +0 -2
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/index.js +2 -2
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/locus-info/controlsUtils.js +6 -6
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +18 -18
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/parser.js +2 -2
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/meeting/index.js +28 -51
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/request.js +2 -2
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/util.js +4 -4
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/collection.js +2 -2
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meetings/collection.js +2 -2
- package/dist/meetings/collection.js.map +1 -1
- package/dist/members/index.js +2 -2
- package/dist/members/index.js.map +1 -1
- package/dist/metrics/constants.js +0 -2
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +2 -2
- package/dist/metrics/index.js.map +1 -1
- package/dist/reachability/index.js +9 -2
- package/dist/reachability/index.js.map +1 -1
- package/dist/roap/index.js +12 -13
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/turnDiscovery.js +44 -130
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/statsAnalyzer/global.js +12 -4
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/statsAnalyzer/index.js +14 -56
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.js +15 -15
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/package.json +22 -21
- package/src/config.ts +2 -2
- package/src/constants.ts +0 -2
- package/src/meeting/index.ts +0 -35
- package/src/metrics/constants.ts +0 -2
- package/src/roap/index.ts +10 -14
- package/src/roap/turnDiscovery.ts +20 -48
- package/src/statsAnalyzer/global.ts +10 -2
- package/src/statsAnalyzer/index.ts +17 -80
- package/test/unit/spec/meeting/index.js +6 -77
- package/test/unit/spec/roap/index.ts +80 -84
- package/test/unit/spec/roap/turnDiscovery.ts +0 -21
- package/test/unit/spec/stats-analyzer/index.js +0 -151
- package/dist/common/browser-detection.d.ts +0 -9
- package/dist/common/collection.d.ts +0 -48
- package/dist/common/config.d.ts +0 -2
- package/dist/common/errors/captcha-error.d.ts +0 -15
- package/dist/common/errors/intent-to-join.d.ts +0 -16
- package/dist/common/errors/join-meeting.d.ts +0 -17
- package/dist/common/errors/media.d.ts +0 -15
- package/dist/common/errors/parameter.d.ts +0 -15
- package/dist/common/errors/password-error.d.ts +0 -15
- package/dist/common/errors/permission.d.ts +0 -14
- package/dist/common/errors/reconnection-in-progress.d.ts +0 -9
- package/dist/common/errors/reconnection.d.ts +0 -15
- package/dist/common/errors/stats.d.ts +0 -15
- package/dist/common/errors/webex-errors.d.ts +0 -81
- package/dist/common/errors/webex-meetings-error.d.ts +0 -20
- package/dist/common/events/events-scope.d.ts +0 -17
- package/dist/common/events/events.d.ts +0 -12
- package/dist/common/events/trigger-proxy.d.ts +0 -2
- package/dist/common/events/util.d.ts +0 -2
- package/dist/common/logs/logger-config.d.ts +0 -2
- package/dist/common/logs/logger-proxy.d.ts +0 -2
- package/dist/common/logs/request.d.ts +0 -34
- package/dist/common/queue.d.ts +0 -32
- package/dist/config.d.ts +0 -73
- package/dist/constants.d.ts +0 -926
- package/dist/controls-options-manager/constants.d.ts +0 -4
- package/dist/controls-options-manager/enums.d.ts +0 -5
- package/dist/controls-options-manager/index.d.ts +0 -120
- package/dist/controls-options-manager/util.d.ts +0 -7
- package/dist/index.d.ts +0 -4
- package/dist/locus-info/controlsUtils.d.ts +0 -2
- package/dist/locus-info/embeddedAppsUtils.d.ts +0 -2
- package/dist/locus-info/fullState.d.ts +0 -2
- package/dist/locus-info/hostUtils.d.ts +0 -2
- package/dist/locus-info/index.d.ts +0 -269
- package/dist/locus-info/infoUtils.d.ts +0 -2
- package/dist/locus-info/mediaSharesUtils.d.ts +0 -2
- package/dist/locus-info/parser.d.ts +0 -212
- package/dist/locus-info/selfUtils.d.ts +0 -2
- package/dist/media/index.d.ts +0 -32
- package/dist/media/properties.d.ts +0 -108
- package/dist/media/util.d.ts +0 -2
- package/dist/mediaQualityMetrics/config.d.ts +0 -233
- package/dist/meeting/effectsState.d.ts +0 -42
- package/dist/meeting/in-meeting-actions.d.ts +0 -79
- package/dist/meeting/index.d.ts +0 -1622
- package/dist/meeting/muteState.d.ts +0 -116
- package/dist/meeting/request.d.ts +0 -255
- package/dist/meeting/state.d.ts +0 -9
- package/dist/meeting/util.d.ts +0 -2
- package/dist/meeting-info/collection.d.ts +0 -20
- package/dist/meeting-info/index.d.ts +0 -57
- package/dist/meeting-info/meeting-info-v2.d.ts +0 -93
- package/dist/meeting-info/request.d.ts +0 -22
- package/dist/meeting-info/util.d.ts +0 -2
- package/dist/meeting-info/utilv2.d.ts +0 -2
- package/dist/meetings/collection.d.ts +0 -23
- package/dist/meetings/index.d.ts +0 -296
- package/dist/meetings/request.d.ts +0 -27
- package/dist/meetings/util.d.ts +0 -18
- package/dist/member/index.d.ts +0 -147
- package/dist/member/member.types.d.ts +0 -11
- package/dist/member/util.d.ts +0 -2
- package/dist/members/collection.d.ts +0 -24
- package/dist/members/index.d.ts +0 -298
- package/dist/members/request.d.ts +0 -50
- package/dist/members/util.d.ts +0 -2
- package/dist/metrics/config.d.ts +0 -169
- package/dist/metrics/constants.d.ts +0 -59
- package/dist/metrics/index.d.ts +0 -152
- package/dist/networkQualityMonitor/index.d.ts +0 -70
- package/dist/peer-connection-manager/index.d.ts +0 -6
- package/dist/peer-connection-manager/util.d.ts +0 -6
- package/dist/personal-meeting-room/index.d.ts +0 -47
- package/dist/personal-meeting-room/request.d.ts +0 -14
- package/dist/personal-meeting-room/util.d.ts +0 -2
- package/dist/reachability/index.d.ts +0 -139
- package/dist/reachability/request.d.ts +0 -35
- package/dist/reactions/reactions.d.ts +0 -4
- package/dist/reactions/reactions.type.d.ts +0 -32
- package/dist/reconnection-manager/index.d.ts +0 -112
- package/dist/recording-controller/enums.d.ts +0 -7
- package/dist/recording-controller/index.d.ts +0 -193
- package/dist/recording-controller/util.d.ts +0 -13
- package/dist/roap/collection.d.ts +0 -10
- package/dist/roap/handler.d.ts +0 -47
- package/dist/roap/index.d.ts +0 -116
- package/dist/roap/request.d.ts +0 -35
- package/dist/roap/state.d.ts +0 -9
- package/dist/roap/turnDiscovery.d.ts +0 -81
- package/dist/roap/util.d.ts +0 -2
- package/dist/statsAnalyzer/global.d.ts +0 -118
- package/dist/statsAnalyzer/index.d.ts +0 -193
- package/dist/statsAnalyzer/mqaUtil.d.ts +0 -22
- package/dist/transcription/index.d.ts +0 -64
package/dist/meeting/index.js
CHANGED
|
@@ -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,
|
|
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,
|
|
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,
|
|
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,
|
|
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$
|
|
3036
|
-
remoteAudioTrack = _this$
|
|
3037
|
-
remoteVideoTrack = _this$
|
|
3038
|
-
remoteShare = _this$
|
|
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$
|
|
3238
|
-
audioTrack = _this$
|
|
3239
|
-
videoTrack = _this$
|
|
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 =
|
|
3791
|
+
_context3.next = 19;
|
|
3815
3792
|
break;
|
|
3816
|
-
case
|
|
3817
|
-
_context3.prev =
|
|
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
|
|
3802
|
+
case 19:
|
|
3826
3803
|
case "end":
|
|
3827
3804
|
return _context3.stop();
|
|
3828
3805
|
}
|
|
3829
|
-
}, _callee3, this, [[1,
|
|
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$
|
|
5382
|
-
mediaDirection = _this$
|
|
5383
|
-
remoteShare = _this$
|
|
5384
|
-
remoteVideoTrack = _this$
|
|
5385
|
-
var layoutInfo = (0,
|
|
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,
|
|
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,
|
|
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$
|
|
5573
|
-
receiveAudio = _this$
|
|
5574
|
-
receiveVideo = _this$
|
|
5575
|
-
sendVideo = _this$
|
|
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) {
|