@webex/plugin-meetings 3.7.0-next.20 → 3.7.0-next.22
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 +39 -20
- 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 +41 -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 +118 -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
|
@@ -18,10 +18,10 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
18
18
|
exports.default = exports.ScreenShareFloorStatus = exports.MEDIA_UPDATE_TYPE = void 0;
|
|
19
19
|
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
|
|
20
20
|
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/json/stringify"));
|
|
21
|
+
var _values = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/values"));
|
|
21
22
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
22
23
|
var _map = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/map"));
|
|
23
24
|
var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
|
|
24
|
-
var _values = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/values"));
|
|
25
25
|
var _weakMap = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/weak-map"));
|
|
26
26
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/typeof"));
|
|
27
27
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
|
|
@@ -1027,6 +1027,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1027
1027
|
options.data.intervalMetadata.peerReflexiveIP =
|
|
1028
1028
|
// @ts-ignore
|
|
1029
1029
|
((_this$webex$meetings$ = _this.webex.meetings.geoHintInfo) === null || _this$webex$meetings$ === void 0 ? void 0 : _this$webex$meetings$.clientAddress) || options.data.intervalMetadata.peerReflexiveIP || _constants.MQA_STATS.DEFAULT_IP;
|
|
1030
|
+
var members = _this.getMembers().membersCollection.members;
|
|
1031
|
+
|
|
1032
|
+
// Count members that are in the meeting
|
|
1033
|
+
options.data.intervalMetadata.meetingUserCount = (0, _values.default)(members).filter(function (member) {
|
|
1034
|
+
return member.isInMeeting;
|
|
1035
|
+
}).length;
|
|
1036
|
+
|
|
1030
1037
|
// @ts-ignore
|
|
1031
1038
|
_this.webex.internal.newMetrics.submitMQE({
|
|
1032
1039
|
name: 'client.mediaquality.event',
|
|
@@ -1520,7 +1527,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1520
1527
|
* @memberof Meeting
|
|
1521
1528
|
*/
|
|
1522
1529
|
// @ts-ignore
|
|
1523
|
-
_this.webinar = new _webinar.default({
|
|
1530
|
+
_this.webinar = new _webinar.default({
|
|
1531
|
+
meetingId: _this.id
|
|
1532
|
+
}, {
|
|
1524
1533
|
parent: _this.webex
|
|
1525
1534
|
});
|
|
1526
1535
|
/**
|
|
@@ -3316,7 +3325,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3316
3325
|
this.locusInfo.on(_constants.EVENTS.LOCUS_INFO_UPDATE_MEDIA_SHARES, /*#__PURE__*/function () {
|
|
3317
3326
|
var _ref27 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8(payload) {
|
|
3318
3327
|
var _payload$previous, _payload$previous2;
|
|
3319
|
-
var _payload$current, contentShare, whiteboardShare, previousContentShare, previousWhiteboardShare, newShareStatus, oldShareStatus, sendStartedSharingRemote, _this14$mediaProperti;
|
|
3328
|
+
var _payload$current, contentShare, whiteboardShare, previousContentShare, previousWhiteboardShare, newShareStatus, _this14$locusInfo, _this14$locusInfo$inf, _this14$webinar, oldShareStatus, sendStartedSharingRemote, _this14$mediaProperti;
|
|
3320
3329
|
return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
3321
3330
|
while (1) switch (_context8.prev = _context8.next) {
|
|
3322
3331
|
case 0:
|
|
@@ -3324,7 +3333,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3324
3333
|
previousContentShare = (_payload$previous = payload.previous) === null || _payload$previous === void 0 ? void 0 : _payload$previous.content;
|
|
3325
3334
|
previousWhiteboardShare = (_payload$previous2 = payload.previous) === null || _payload$previous2 === void 0 ? void 0 : _payload$previous2.whiteboard;
|
|
3326
3335
|
_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))) {
|
|
3336
|
+
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
3337
|
_context8.next = 6;
|
|
3329
3338
|
break;
|
|
3330
3339
|
}
|
|
@@ -3350,7 +3359,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3350
3359
|
// It does not matter who requested to share the whiteboard, everyone gets the same view
|
|
3351
3360
|
else if (whiteboardShare.disposition === _constants.FLOOR_ACTION.GRANTED) {
|
|
3352
3361
|
// WHITEBOARD - sharing whiteboard
|
|
3353
|
-
|
|
3362
|
+
// Webinar attendee should receive whiteboard as remote share
|
|
3363
|
+
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
3364
|
}
|
|
3355
3365
|
// or if content share is either released or null and whiteboard share is either released or null, no one is sharing
|
|
3356
3366
|
else if ((previousContentShare && contentShare.disposition === _constants.FLOOR_ACTION.RELEASED || contentShare.disposition === null) && (previousWhiteboardShare && whiteboardShare.disposition === _constants.FLOOR_ACTION.RELEASED || whiteboardShare.disposition === null)) {
|
|
@@ -3584,7 +3594,15 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3584
3594
|
value: function setUpLocusResourcesListener() {
|
|
3585
3595
|
var _this17 = this;
|
|
3586
3596
|
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.LINKS_RESOURCES, function (payload) {
|
|
3587
|
-
|
|
3597
|
+
if (payload) {
|
|
3598
|
+
_this17.webinar.updateWebcastUrl(payload);
|
|
3599
|
+
_triggerProxy.default.trigger(_this17, {
|
|
3600
|
+
file: 'meeting/index',
|
|
3601
|
+
function: 'setUpLocusInfoMeetingInfoListener'
|
|
3602
|
+
}, _constants.EVENT_TRIGGERS.MEETING_RESOURCE_LINKS_UPDATE, {
|
|
3603
|
+
payload: payload
|
|
3604
|
+
});
|
|
3605
|
+
}
|
|
3588
3606
|
});
|
|
3589
3607
|
}
|
|
3590
3608
|
|
|
@@ -5960,40 +5978,41 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5960
5978
|
value: (function () {
|
|
5961
5979
|
var _updateLLMConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19() {
|
|
5962
5980
|
var _this35 = this;
|
|
5963
|
-
var _this$locusInfo6, url, _this$locusInfo6$info, _this$locusInfo6$info2, datachannelUrl, isJoined;
|
|
5981
|
+
var _this$locusInfo6, url, _this$locusInfo6$info, _this$locusInfo6$info2, datachannelUrl, practiceSessionDatachannelUrl, isJoined, dataChannelUrl;
|
|
5964
5982
|
return _regenerator.default.wrap(function _callee19$(_context19) {
|
|
5965
5983
|
while (1) switch (_context19.prev = _context19.next) {
|
|
5966
5984
|
case 0:
|
|
5967
5985
|
// @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(); //
|
|
5986
|
+
_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;
|
|
5987
|
+
isJoined = this.isJoined(); // webinar panelist should use new data channel in practice session
|
|
5988
|
+
dataChannelUrl = this.webinar.isJoinPracticeSessionDataChannel() && practiceSessionDatachannelUrl ? practiceSessionDatachannelUrl : datachannelUrl; // @ts-ignore - Fix type
|
|
5970
5989
|
if (!this.webex.internal.llm.isConnected()) {
|
|
5971
|
-
_context19.next =
|
|
5990
|
+
_context19.next = 9;
|
|
5972
5991
|
break;
|
|
5973
5992
|
}
|
|
5974
5993
|
if (!(
|
|
5975
5994
|
// @ts-ignore - Fix type
|
|
5976
5995
|
url === this.webex.internal.llm.getLocusUrl() &&
|
|
5977
5996
|
// @ts-ignore - Fix type
|
|
5978
|
-
|
|
5979
|
-
_context19.next =
|
|
5997
|
+
dataChannelUrl === this.webex.internal.llm.getDatachannelUrl() && isJoined)) {
|
|
5998
|
+
_context19.next = 6;
|
|
5980
5999
|
break;
|
|
5981
6000
|
}
|
|
5982
6001
|
return _context19.abrupt("return", undefined);
|
|
5983
|
-
case
|
|
5984
|
-
_context19.next =
|
|
6002
|
+
case 6:
|
|
6003
|
+
_context19.next = 8;
|
|
5985
6004
|
return this.webex.internal.llm.disconnectLLM();
|
|
5986
|
-
case
|
|
6005
|
+
case 8:
|
|
5987
6006
|
// @ts-ignore - Fix type
|
|
5988
6007
|
this.webex.internal.llm.off('event:relay.event', this.processRelayEvent);
|
|
5989
|
-
case
|
|
6008
|
+
case 9:
|
|
5990
6009
|
if (isJoined) {
|
|
5991
|
-
_context19.next =
|
|
6010
|
+
_context19.next = 11;
|
|
5992
6011
|
break;
|
|
5993
6012
|
}
|
|
5994
6013
|
return _context19.abrupt("return", undefined);
|
|
5995
|
-
case
|
|
5996
|
-
return _context19.abrupt("return", this.webex.internal.llm.registerAndConnect(url,
|
|
6014
|
+
case 11:
|
|
6015
|
+
return _context19.abrupt("return", this.webex.internal.llm.registerAndConnect(url, dataChannelUrl).then(function (registerAndConnectResult) {
|
|
5997
6016
|
// @ts-ignore - Fix type
|
|
5998
6017
|
_this35.webex.internal.llm.off('event:relay.event', _this35.processRelayEvent);
|
|
5999
6018
|
// @ts-ignore - Fix type
|
|
@@ -6001,7 +6020,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6001
6020
|
_loggerProxy.default.logger.info('Meeting:index#updateLLMConnection --> enabled to receive relay events!');
|
|
6002
6021
|
return _promise.default.resolve(registerAndConnectResult);
|
|
6003
6022
|
}));
|
|
6004
|
-
case
|
|
6023
|
+
case 12:
|
|
6005
6024
|
case "end":
|
|
6006
6025
|
return _context19.stop();
|
|
6007
6026
|
}
|