@webex/plugin-meetings 3.0.0-beta.83 → 3.0.0-beta.85
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/breakouts/breakout.js +3 -1
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/index.js +13 -10
- package/dist/breakouts/index.js.map +1 -1
- package/dist/constants.js +1 -0
- package/dist/constants.js.map +1 -1
- package/dist/locus-info/controlsUtils.js +25 -0
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +118 -4
- package/dist/locus-info/index.js.map +1 -1
- package/dist/meeting/index.js +26 -16
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/request.js +9 -0
- package/dist/meeting/request.js.map +1 -1
- package/dist/meetings/index.js +10 -4
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/util.js +20 -7
- package/dist/meetings/util.js.map +1 -1
- package/dist/roap/index.js +14 -11
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/turnDiscovery.js +91 -28
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/locus-info/index.d.ts +37 -0
- package/dist/types/meeting/request.d.ts +1 -0
- package/dist/types/roap/turnDiscovery.d.ts +14 -0
- package/package.json +18 -18
- package/src/breakouts/breakout.ts +1 -0
- package/src/breakouts/index.ts +7 -3
- package/src/constants.ts +1 -0
- package/src/locus-info/controlsUtils.ts +28 -0
- package/src/locus-info/index.ts +110 -6
- package/src/meeting/index.ts +10 -0
- package/src/meeting/request.ts +8 -0
- package/src/meetings/index.ts +12 -4
- package/src/meetings/util.ts +23 -12
- package/src/roap/index.ts +15 -11
- package/src/roap/turnDiscovery.ts +45 -17
- package/test/unit/spec/breakouts/index.ts +3 -3
- package/test/unit/spec/locus-info/controlsUtils.js +47 -1
- package/test/unit/spec/locus-info/index.js +153 -2
- package/test/unit/spec/meeting/index.js +35 -0
- package/test/unit/spec/meeting/request.js +12 -0
- package/test/unit/spec/meetings/index.js +29 -21
- package/test/unit/spec/meetings/utils.js +49 -9
- package/test/unit/spec/roap/index.ts +9 -8
- package/test/unit/spec/roap/turnDiscovery.ts +21 -0
package/dist/meeting/index.js
CHANGED
|
@@ -2425,8 +2425,18 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2425
2425
|
function: 'setupLocusControlsListener'
|
|
2426
2426
|
}, _constants.EVENT_TRIGGERS.MEETING_BREAKOUTS_UPDATE);
|
|
2427
2427
|
});
|
|
2428
|
-
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.
|
|
2429
|
-
var
|
|
2428
|
+
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_JOIN_BREAKOUT_FROM_MAIN, function (_ref10) {
|
|
2429
|
+
var mainLocusUrl = _ref10.mainLocusUrl;
|
|
2430
|
+
_this12.meetingRequest.getLocusStatusByUrl(mainLocusUrl).catch(function (error) {
|
|
2431
|
+
// clear main session cache when attendee join into breakout and forbidden to get locus from main locus url,
|
|
2432
|
+
// which means main session is not active for the attendee
|
|
2433
|
+
if ((error === null || error === void 0 ? void 0 : error.statusCode) === 403) {
|
|
2434
|
+
_this12.locusInfo.clearMainSessionLocusCache();
|
|
2435
|
+
}
|
|
2436
|
+
});
|
|
2437
|
+
});
|
|
2438
|
+
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.CONTROLS_ENTRY_EXIT_TONE_UPDATED, function (_ref11) {
|
|
2439
|
+
var entryExitTone = _ref11.entryExitTone;
|
|
2430
2440
|
_triggerProxy.default.trigger(_this12, {
|
|
2431
2441
|
file: 'meeting/index',
|
|
2432
2442
|
function: 'setupLocusControlsListener'
|
|
@@ -2450,7 +2460,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2450
2460
|
var _this13 = this;
|
|
2451
2461
|
// Will get triggered on local and remote share
|
|
2452
2462
|
this.locusInfo.on(_constants.EVENTS.LOCUS_INFO_UPDATE_MEDIA_SHARES, /*#__PURE__*/function () {
|
|
2453
|
-
var
|
|
2463
|
+
var _ref12 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(payload) {
|
|
2454
2464
|
var _payload$previous, _payload$previous2;
|
|
2455
2465
|
var _payload$current, contentShare, whiteboardShare, previousContentShare, previousWhiteboardShare, newShareStatus, _this13$mediaProperti, localShareTrack, oldShareStatus, sendStartedSharingRemote, _this13$mediaProperti2, _this13$mediaProperti3;
|
|
2456
2466
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
@@ -2665,7 +2675,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2665
2675
|
}, _callee3, null, [[13, 23], [50,, 59, 62]]);
|
|
2666
2676
|
}));
|
|
2667
2677
|
return function (_x2) {
|
|
2668
|
-
return
|
|
2678
|
+
return _ref12.apply(this, arguments);
|
|
2669
2679
|
};
|
|
2670
2680
|
}());
|
|
2671
2681
|
}
|
|
@@ -4050,10 +4060,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4050
4060
|
joinOptions = options.joinOptions,
|
|
4051
4061
|
audioVideoOptions = options.audioVideoOptions;
|
|
4052
4062
|
return this.join(joinOptions).then(function (joinResponse) {
|
|
4053
|
-
return _this30.getMediaStreams(mediaSettings, audioVideoOptions).then(function (
|
|
4054
|
-
var
|
|
4055
|
-
localStream =
|
|
4056
|
-
localShare =
|
|
4063
|
+
return _this30.getMediaStreams(mediaSettings, audioVideoOptions).then(function (_ref13) {
|
|
4064
|
+
var _ref14 = (0, _slicedToArray2.default)(_ref13, 2),
|
|
4065
|
+
localStream = _ref14[0],
|
|
4066
|
+
localShare = _ref14[1];
|
|
4057
4067
|
return _this30.addMedia({
|
|
4058
4068
|
mediaSettings: mediaSettings,
|
|
4059
4069
|
localShare: localShare,
|
|
@@ -4419,7 +4429,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4419
4429
|
});
|
|
4420
4430
|
return join;
|
|
4421
4431
|
}).then( /*#__PURE__*/function () {
|
|
4422
|
-
var
|
|
4432
|
+
var _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(join) {
|
|
4423
4433
|
return _regenerator.default.wrap(function _callee5$(_context5) {
|
|
4424
4434
|
while (1) switch (_context5.prev = _context5.next) {
|
|
4425
4435
|
case 0:
|
|
@@ -4442,10 +4452,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4442
4452
|
}, _callee5);
|
|
4443
4453
|
}));
|
|
4444
4454
|
return function (_x3) {
|
|
4445
|
-
return
|
|
4455
|
+
return _ref15.apply(this, arguments);
|
|
4446
4456
|
};
|
|
4447
4457
|
}()).then( /*#__PURE__*/function () {
|
|
4448
|
-
var
|
|
4458
|
+
var _ref16 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(join) {
|
|
4449
4459
|
return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
4450
4460
|
while (1) switch (_context6.prev = _context6.next) {
|
|
4451
4461
|
case 0:
|
|
@@ -4479,7 +4489,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4479
4489
|
}, _callee6);
|
|
4480
4490
|
}));
|
|
4481
4491
|
return function (_x4) {
|
|
4482
|
-
return
|
|
4492
|
+
return _ref16.apply(this, arguments);
|
|
4483
4493
|
};
|
|
4484
4494
|
}()).catch(function (error) {
|
|
4485
4495
|
var _error$error;
|
|
@@ -6111,12 +6121,12 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6111
6121
|
// open bug link: https://bugs.chromium.org/p/chromium/issues/detail?id=943469
|
|
6112
6122
|
if (isBrowser('chrome') && this.mediaProperties.videoTrack) _media.default.stopTracks(this.mediaProperties.videoTrack);
|
|
6113
6123
|
return this.getMediaStreams(mediaDirection, _constants.VIDEO_RESOLUTIONS[level]).then( /*#__PURE__*/function () {
|
|
6114
|
-
var
|
|
6115
|
-
var
|
|
6124
|
+
var _ref19 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(_ref18) {
|
|
6125
|
+
var _ref20, localStream;
|
|
6116
6126
|
return _regenerator.default.wrap(function _callee11$(_context11) {
|
|
6117
6127
|
while (1) switch (_context11.prev = _context11.next) {
|
|
6118
6128
|
case 0:
|
|
6119
|
-
|
|
6129
|
+
_ref20 = (0, _slicedToArray2.default)(_ref18, 1), localStream = _ref20[0];
|
|
6120
6130
|
_context11.next = 3;
|
|
6121
6131
|
return _this54.updateVideo({
|
|
6122
6132
|
sendVideo: true,
|
|
@@ -6132,7 +6142,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6132
6142
|
}, _callee11);
|
|
6133
6143
|
}));
|
|
6134
6144
|
return function (_x6) {
|
|
6135
|
-
return
|
|
6145
|
+
return _ref19.apply(this, arguments);
|
|
6136
6146
|
};
|
|
6137
6147
|
}());
|
|
6138
6148
|
}
|