@webex/plugin-meetings 3.7.0-next.20 → 3.7.0-next.21
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 +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/constants.js +2 -0
- package/dist/constants.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/index.js +5 -2
- package/dist/locus-info/index.js.map +1 -1
- package/dist/meeting/index.js +31 -19
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/util.js +3 -0
- package/dist/meeting/util.js.map +1 -1
- package/dist/types/constants.d.ts +2 -0
- package/dist/types/locus-info/index.d.ts +2 -1
- package/dist/types/meeting/util.d.ts +1 -0
- package/dist/webinar/index.js +36 -3
- package/dist/webinar/index.js.map +1 -1
- package/package.json +3 -3
- package/src/constants.ts +2 -0
- package/src/locus-info/index.ts +4 -2
- package/src/meeting/index.ts +32 -6
- package/src/meeting/util.ts +3 -0
- package/src/webinar/index.ts +36 -2
- package/test/unit/spec/locus-info/index.js +129 -0
- package/test/unit/spec/meeting/index.js +73 -4
- package/test/unit/spec/meeting/utils.js +11 -4
- package/test/unit/spec/webinar/index.ts +167 -26
package/dist/meeting/index.js
CHANGED
|
@@ -1520,7 +1520,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1520
1520
|
* @memberof Meeting
|
|
1521
1521
|
*/
|
|
1522
1522
|
// @ts-ignore
|
|
1523
|
-
_this.webinar = new _webinar.default({
|
|
1523
|
+
_this.webinar = new _webinar.default({
|
|
1524
|
+
meetingId: _this.id
|
|
1525
|
+
}, {
|
|
1524
1526
|
parent: _this.webex
|
|
1525
1527
|
});
|
|
1526
1528
|
/**
|
|
@@ -3316,7 +3318,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3316
3318
|
this.locusInfo.on(_constants.EVENTS.LOCUS_INFO_UPDATE_MEDIA_SHARES, /*#__PURE__*/function () {
|
|
3317
3319
|
var _ref27 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8(payload) {
|
|
3318
3320
|
var _payload$previous, _payload$previous2;
|
|
3319
|
-
var _payload$current, contentShare, whiteboardShare, previousContentShare, previousWhiteboardShare, newShareStatus, oldShareStatus, sendStartedSharingRemote, _this14$mediaProperti;
|
|
3321
|
+
var _payload$current, contentShare, whiteboardShare, previousContentShare, previousWhiteboardShare, newShareStatus, _this14$locusInfo, _this14$locusInfo$inf, _this14$webinar, oldShareStatus, sendStartedSharingRemote, _this14$mediaProperti;
|
|
3320
3322
|
return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
3321
3323
|
while (1) switch (_context8.prev = _context8.next) {
|
|
3322
3324
|
case 0:
|
|
@@ -3324,7 +3326,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3324
3326
|
previousContentShare = (_payload$previous = payload.previous) === null || _payload$previous === void 0 ? void 0 : _payload$previous.content;
|
|
3325
3327
|
previousWhiteboardShare = (_payload$previous2 = payload.previous) === null || _payload$previous2 === void 0 ? void 0 : _payload$previous2.whiteboard;
|
|
3326
3328
|
_this14.triggerAnnotationInfoEvent(contentShare, previousContentShare);
|
|
3327
|
-
if (!(contentShare.beneficiaryId === (previousContentShare === null || previousContentShare === void 0 ? void 0 : previousContentShare.beneficiaryId) && contentShare.disposition === (previousContentShare === null || previousContentShare === void 0 ? void 0 : previousContentShare.disposition) && contentShare.deviceUrlSharing === previousContentShare.deviceUrlSharing && whiteboardShare.beneficiaryId === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.beneficiaryId) && whiteboardShare.disposition === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.disposition) && whiteboardShare.resourceUrl === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.resourceUrl) && contentShare.resourceType === (previousContentShare === null || previousContentShare === void 0 ? void 0 : previousContentShare.resourceType))) {
|
|
3329
|
+
if (!(!payload.forceUpdate && contentShare.beneficiaryId === (previousContentShare === null || previousContentShare === void 0 ? void 0 : previousContentShare.beneficiaryId) && contentShare.disposition === (previousContentShare === null || previousContentShare === void 0 ? void 0 : previousContentShare.disposition) && contentShare.deviceUrlSharing === previousContentShare.deviceUrlSharing && whiteboardShare.beneficiaryId === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.beneficiaryId) && whiteboardShare.disposition === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.disposition) && whiteboardShare.resourceUrl === (previousWhiteboardShare === null || previousWhiteboardShare === void 0 ? void 0 : previousWhiteboardShare.resourceUrl) && contentShare.resourceType === (previousContentShare === null || previousContentShare === void 0 ? void 0 : previousContentShare.resourceType))) {
|
|
3328
3330
|
_context8.next = 6;
|
|
3329
3331
|
break;
|
|
3330
3332
|
}
|
|
@@ -3350,7 +3352,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3350
3352
|
// It does not matter who requested to share the whiteboard, everyone gets the same view
|
|
3351
3353
|
else if (whiteboardShare.disposition === _constants.FLOOR_ACTION.GRANTED) {
|
|
3352
3354
|
// WHITEBOARD - sharing whiteboard
|
|
3353
|
-
|
|
3355
|
+
// Webinar attendee should receive whiteboard as remote share
|
|
3356
|
+
newShareStatus = (_this14$locusInfo = _this14.locusInfo) !== null && _this14$locusInfo !== void 0 && (_this14$locusInfo$inf = _this14$locusInfo.info) !== null && _this14$locusInfo$inf !== void 0 && _this14$locusInfo$inf.isWebinar && (_this14$webinar = _this14.webinar) !== null && _this14$webinar !== void 0 && _this14$webinar.selfIsAttendee ? _constants.SHARE_STATUS.REMOTE_SHARE_ACTIVE : _constants.SHARE_STATUS.WHITEBOARD_SHARE_ACTIVE;
|
|
3354
3357
|
}
|
|
3355
3358
|
// or if content share is either released or null and whiteboard share is either released or null, no one is sharing
|
|
3356
3359
|
else if ((previousContentShare && contentShare.disposition === _constants.FLOOR_ACTION.RELEASED || contentShare.disposition === null) && (previousWhiteboardShare && whiteboardShare.disposition === _constants.FLOOR_ACTION.RELEASED || whiteboardShare.disposition === null)) {
|
|
@@ -3584,7 +3587,15 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3584
3587
|
value: function setUpLocusResourcesListener() {
|
|
3585
3588
|
var _this17 = this;
|
|
3586
3589
|
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.LINKS_RESOURCES, function (payload) {
|
|
3587
|
-
|
|
3590
|
+
if (payload) {
|
|
3591
|
+
_this17.webinar.updateWebcastUrl(payload);
|
|
3592
|
+
_triggerProxy.default.trigger(_this17, {
|
|
3593
|
+
file: 'meeting/index',
|
|
3594
|
+
function: 'setUpLocusInfoMeetingInfoListener'
|
|
3595
|
+
}, _constants.EVENT_TRIGGERS.MEETING_RESOURCE_LINKS_UPDATE, {
|
|
3596
|
+
payload: payload
|
|
3597
|
+
});
|
|
3598
|
+
}
|
|
3588
3599
|
});
|
|
3589
3600
|
}
|
|
3590
3601
|
|
|
@@ -5960,40 +5971,41 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5960
5971
|
value: (function () {
|
|
5961
5972
|
var _updateLLMConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19() {
|
|
5962
5973
|
var _this35 = this;
|
|
5963
|
-
var _this$locusInfo6, url, _this$locusInfo6$info, _this$locusInfo6$info2, datachannelUrl, isJoined;
|
|
5974
|
+
var _this$locusInfo6, url, _this$locusInfo6$info, _this$locusInfo6$info2, datachannelUrl, practiceSessionDatachannelUrl, isJoined, dataChannelUrl;
|
|
5964
5975
|
return _regenerator.default.wrap(function _callee19$(_context19) {
|
|
5965
5976
|
while (1) switch (_context19.prev = _context19.next) {
|
|
5966
5977
|
case 0:
|
|
5967
5978
|
// @ts-ignore - Fix type
|
|
5968
|
-
_this$locusInfo6 = this.locusInfo, url = _this$locusInfo6.url, _this$locusInfo6$info = _this$locusInfo6.info, _this$locusInfo6$info2 = _this$locusInfo6$info === void 0 ? {} : _this$locusInfo6$info, datachannelUrl = _this$locusInfo6$info2.datachannelUrl;
|
|
5969
|
-
isJoined = this.isJoined(); //
|
|
5979
|
+
_this$locusInfo6 = this.locusInfo, url = _this$locusInfo6.url, _this$locusInfo6$info = _this$locusInfo6.info, _this$locusInfo6$info2 = _this$locusInfo6$info === void 0 ? {} : _this$locusInfo6$info, datachannelUrl = _this$locusInfo6$info2.datachannelUrl, practiceSessionDatachannelUrl = _this$locusInfo6$info2.practiceSessionDatachannelUrl;
|
|
5980
|
+
isJoined = this.isJoined(); // webinar panelist should use new data channel in practice session
|
|
5981
|
+
dataChannelUrl = this.webinar.isJoinPracticeSessionDataChannel() && practiceSessionDatachannelUrl ? practiceSessionDatachannelUrl : datachannelUrl; // @ts-ignore - Fix type
|
|
5970
5982
|
if (!this.webex.internal.llm.isConnected()) {
|
|
5971
|
-
_context19.next =
|
|
5983
|
+
_context19.next = 9;
|
|
5972
5984
|
break;
|
|
5973
5985
|
}
|
|
5974
5986
|
if (!(
|
|
5975
5987
|
// @ts-ignore - Fix type
|
|
5976
5988
|
url === this.webex.internal.llm.getLocusUrl() &&
|
|
5977
5989
|
// @ts-ignore - Fix type
|
|
5978
|
-
|
|
5979
|
-
_context19.next =
|
|
5990
|
+
dataChannelUrl === this.webex.internal.llm.getDatachannelUrl() && isJoined)) {
|
|
5991
|
+
_context19.next = 6;
|
|
5980
5992
|
break;
|
|
5981
5993
|
}
|
|
5982
5994
|
return _context19.abrupt("return", undefined);
|
|
5983
|
-
case
|
|
5984
|
-
_context19.next =
|
|
5995
|
+
case 6:
|
|
5996
|
+
_context19.next = 8;
|
|
5985
5997
|
return this.webex.internal.llm.disconnectLLM();
|
|
5986
|
-
case
|
|
5998
|
+
case 8:
|
|
5987
5999
|
// @ts-ignore - Fix type
|
|
5988
6000
|
this.webex.internal.llm.off('event:relay.event', this.processRelayEvent);
|
|
5989
|
-
case
|
|
6001
|
+
case 9:
|
|
5990
6002
|
if (isJoined) {
|
|
5991
|
-
_context19.next =
|
|
6003
|
+
_context19.next = 11;
|
|
5992
6004
|
break;
|
|
5993
6005
|
}
|
|
5994
6006
|
return _context19.abrupt("return", undefined);
|
|
5995
|
-
case
|
|
5996
|
-
return _context19.abrupt("return", this.webex.internal.llm.registerAndConnect(url,
|
|
6007
|
+
case 11:
|
|
6008
|
+
return _context19.abrupt("return", this.webex.internal.llm.registerAndConnect(url, dataChannelUrl).then(function (registerAndConnectResult) {
|
|
5997
6009
|
// @ts-ignore - Fix type
|
|
5998
6010
|
_this35.webex.internal.llm.off('event:relay.event', _this35.processRelayEvent);
|
|
5999
6011
|
// @ts-ignore - Fix type
|
|
@@ -6001,7 +6013,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6001
6013
|
_loggerProxy.default.logger.info('Meeting:index#updateLLMConnection --> enabled to receive relay events!');
|
|
6002
6014
|
return _promise.default.resolve(registerAndConnectResult);
|
|
6003
6015
|
}));
|
|
6004
|
-
case
|
|
6016
|
+
case 12:
|
|
6005
6017
|
case "end":
|
|
6006
6018
|
return _context19.stop();
|
|
6007
6019
|
}
|