@webex/plugin-meetings 2.35.3 → 2.36.0
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.map +1 -1
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.js +7 -0
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js +8 -0
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-meeting.js +8 -0
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/media.js +7 -0
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js +7 -0
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js +7 -0
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/reconnection-in-progress.js.map +1 -1
- package/dist/common/errors/reconnection.js +7 -0
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js +7 -0
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.js +5 -2
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.js +3 -0
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.js.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.js +43 -5
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.js +12 -3
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +12 -0
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js.map +1 -1
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/meeting/effectsState.js +8 -1
- package/dist/meeting/effectsState.js.map +1 -1
- package/dist/meeting/index.js +206 -46
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/muteState.js +6 -0
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +82 -24
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/collection.js +4 -1
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.js +5 -0
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +14 -2
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js +3 -0
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.js +4 -1
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.js +72 -20
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/request.js +4 -0
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +30 -7
- package/dist/member/index.js.map +1 -1
- package/dist/member/util.js +2 -1
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.js +1 -0
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.js +12 -1
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +19 -9
- package/dist/members/request.js.map +1 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/config.js.map +1 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +8 -0
- package/dist/metrics/index.js.map +1 -1
- package/dist/networkQualityMonitor/index.js +10 -2
- package/dist/networkQualityMonitor/index.js.map +1 -1
- package/dist/peer-connection-manager/index.js +11 -4
- package/dist/peer-connection-manager/index.js.map +1 -1
- package/dist/personal-meeting-room/index.js +11 -0
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js +2 -1
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/index.js +17 -7
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.js +1 -0
- package/dist/reachability/request.js.map +1 -1
- package/dist/reactions/reactions.js +111 -0
- package/dist/reactions/reactions.js.map +1 -0
- package/dist/reactions/reactions.type.js +40 -0
- package/dist/reactions/reactions.type.js.map +1 -0
- package/dist/reconnection-manager/index.js +21 -2
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/roap/collection.js +1 -0
- package/dist/roap/collection.js.map +1 -1
- package/dist/roap/handler.js +14 -2
- package/dist/roap/handler.js.map +1 -1
- package/dist/roap/index.js +11 -1
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js +7 -2
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/state.js.map +1 -1
- package/dist/roap/turnDiscovery.js +9 -1
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/roap/util.js.map +1 -1
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/statsAnalyzer/index.js +19 -1
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.js +9 -3
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/transcription/index.js +10 -3
- package/dist/transcription/index.js.map +1 -1
- package/package.json +17 -17
- package/src/common/{browser-detection.js → browser-detection.ts} +1 -1
- package/src/common/collection.ts +6 -6
- package/src/common/{config.js → config.ts} +1 -1
- package/src/common/errors/{captcha-error.js → captcha-error.ts} +5 -1
- package/src/common/errors/{intent-to-join.js → intent-to-join.ts} +6 -1
- package/src/common/errors/{join-meeting.js → join-meeting.ts} +6 -1
- package/src/common/errors/{media.js → media.ts} +5 -1
- package/src/common/errors/parameter.ts +3 -2
- package/src/common/errors/{password-error.js → password-error.ts} +5 -1
- package/src/common/errors/{permission.js → permission.ts} +5 -1
- package/src/common/errors/{reconnection-in-progress.js → reconnection-in-progress.ts} +0 -0
- package/src/common/errors/{reconnection.js → reconnection.ts} +5 -1
- package/src/common/errors/{stats.js → stats.ts} +5 -1
- package/src/common/errors/{webex-errors.js → webex-errors.ts} +1 -2
- package/src/common/errors/{webex-meetings-error.js → webex-meetings-error.ts} +3 -1
- package/src/common/events/{events-scope.js → events-scope.ts} +1 -1
- package/src/common/events/{events.js → events.ts} +0 -0
- package/src/common/events/{trigger-proxy.js → trigger-proxy.ts} +1 -2
- package/src/common/events/{util.js → util.ts} +1 -1
- package/src/common/logs/{logger-config.js → logger-config.ts} +1 -2
- package/src/common/logs/{logger-proxy.js → logger-proxy.ts} +1 -1
- package/src/common/logs/{request.js → request.ts} +12 -2
- package/src/common/queue.ts +1 -2
- package/src/{config.js → config.ts} +1 -0
- package/src/constants.ts +1 -0
- package/src/locus-info/{controlsUtils.js → controlsUtils.ts} +4 -4
- package/src/locus-info/{embeddedAppsUtils.js → embeddedAppsUtils.ts} +5 -6
- package/src/locus-info/{fullState.js → fullState.ts} +1 -1
- package/src/locus-info/{hostUtils.js → hostUtils.ts} +5 -5
- package/src/locus-info/{index.js → index.ts} +67 -32
- package/src/locus-info/{infoUtils.js → infoUtils.ts} +3 -4
- package/src/locus-info/{mediaSharesUtils.js → mediaSharesUtils.ts} +13 -13
- package/src/locus-info/{parser.js → parser.ts} +22 -12
- package/src/locus-info/{selfUtils.js → selfUtils.ts} +17 -19
- package/src/media/{index.js → index.ts} +108 -39
- package/src/media/{properties.js → properties.ts} +16 -4
- package/src/media/{util.js → util.ts} +2 -3
- package/src/mediaQualityMetrics/{config.js → config.ts} +1 -1
- package/src/meeting/{effectsState.js → effectsState.ts} +12 -6
- package/src/meeting/{index.js → index.ts} +365 -157
- package/src/meeting/{muteState.js → muteState.ts} +16 -11
- package/src/meeting/{request.js → request.ts} +147 -36
- package/src/meeting/{state.js → state.ts} +6 -6
- package/src/meeting/{util.js → util.ts} +4 -4
- package/src/meeting-info/{collection.js → collection.ts} +4 -1
- package/src/meeting-info/{index.js → index.ts} +10 -6
- package/src/meeting-info/{meeting-info-v2.js → meeting-info-v2.ts} +28 -10
- package/src/meeting-info/{request.js → request.ts} +6 -2
- package/src/meeting-info/{util.js → util.ts} +6 -5
- package/src/meeting-info/{utilv2.js → utilv2.ts} +8 -7
- package/src/meetings/{collection.js → collection.ts} +5 -2
- package/src/meetings/{index.js → index.ts} +88 -22
- package/src/meetings/{request.js → request.ts} +6 -1
- package/src/meetings/{util.js → util.ts} +5 -3
- package/src/member/{index.js → index.ts} +46 -15
- package/src/member/{util.js → util.ts} +17 -16
- package/src/members/{collection.js → collection.ts} +2 -1
- package/src/members/{index.js → index.ts} +39 -26
- package/src/members/{request.js → request.ts} +16 -5
- package/src/members/{util.js → util.ts} +7 -7
- package/src/metrics/{config.js → config.ts} +0 -2
- package/src/metrics/{constants.js → constants.ts} +0 -0
- package/src/metrics/{index.js → index.ts} +27 -8
- package/src/networkQualityMonitor/{index.js → index.ts} +18 -3
- package/src/peer-connection-manager/{index.js → index.ts} +72 -28
- package/src/personal-meeting-room/{index.js → index.ts} +17 -4
- package/src/personal-meeting-room/{request.js → request.ts} +3 -1
- package/src/personal-meeting-room/{util.js → util.ts} +1 -1
- package/src/reachability/{index.js → index.ts} +28 -17
- package/src/reachability/request.ts +4 -2
- package/src/reactions/reactions.ts +104 -0
- package/src/reactions/reactions.type.ts +36 -0
- package/src/reconnection-manager/{index.js → index.ts} +42 -13
- package/src/roap/{collection.js → collection.ts} +1 -0
- package/src/roap/{handler.js → handler.ts} +15 -4
- package/src/roap/{index.js → index.ts} +23 -10
- package/src/roap/{request.js → request.ts} +19 -3
- package/src/roap/{state.js → state.ts} +3 -2
- package/src/roap/turnDiscovery.ts +14 -5
- package/src/roap/{util.js → util.ts} +1 -2
- package/src/statsAnalyzer/{global.js → global.ts} +0 -0
- package/src/statsAnalyzer/{index.js → index.ts} +36 -17
- package/src/statsAnalyzer/{mqaUtil.js → mqaUtil.ts} +6 -1
- package/src/transcription/{index.js → index.ts} +16 -11
- package/test/integration/spec/space-meeting.js +1 -2
- package/test/unit/spec/meeting/index.js +113 -14
- package/test/unit/spec/meeting/request.js +25 -1
- package/test/unit/spec/roap/util.js +1 -1
package/dist/meeting/index.js
CHANGED
|
@@ -132,6 +132,8 @@ var _browserDetection = _interopRequireDefault(require("../common/browser-detect
|
|
|
132
132
|
|
|
133
133
|
var _collection = _interopRequireDefault(require("../roap/collection"));
|
|
134
134
|
|
|
135
|
+
var _reactions = require("../reactions/reactions");
|
|
136
|
+
|
|
135
137
|
var _inMeetingActions = _interopRequireDefault(require("./in-meeting-actions"));
|
|
136
138
|
|
|
137
139
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys2(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -485,6 +487,81 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
485
487
|
* @memberof Meeting
|
|
486
488
|
*/
|
|
487
489
|
|
|
490
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "attrs", void 0);
|
|
491
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "audio", void 0);
|
|
492
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "conversationUrl", void 0);
|
|
493
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "correlationId", void 0);
|
|
494
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "destination", void 0);
|
|
495
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "destinationType", void 0);
|
|
496
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "deviceUrl", void 0);
|
|
497
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "effects", void 0);
|
|
498
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "hostId", void 0);
|
|
499
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "id", void 0);
|
|
500
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "locusUrl", void 0);
|
|
501
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "mediaConnections", void 0);
|
|
502
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "meetingFiniteStateMachine", void 0);
|
|
503
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "meetingInfo", void 0);
|
|
504
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "meetingRequest", void 0);
|
|
505
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "members", void 0);
|
|
506
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "options", void 0);
|
|
507
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "orgId", void 0);
|
|
508
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "owner", void 0);
|
|
509
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "partner", void 0);
|
|
510
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "policy", void 0);
|
|
511
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "reconnectionManager", void 0);
|
|
512
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "resource", void 0);
|
|
513
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "roap", void 0);
|
|
514
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "roapSeq", void 0);
|
|
515
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "sipUri", void 0);
|
|
516
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "type", void 0);
|
|
517
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "userId", void 0);
|
|
518
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "video", void 0);
|
|
519
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "callEvents", void 0);
|
|
520
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "deferJoin", void 0);
|
|
521
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "dialInDeviceStatus", void 0);
|
|
522
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "dialInUrl", void 0);
|
|
523
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "dialOutDeviceStatus", void 0);
|
|
524
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "dialOutUrl", void 0);
|
|
525
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "fetchMeetingInfoTimeoutId", void 0);
|
|
526
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "floorGrantPending", void 0);
|
|
527
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "hasJoinedOnce", void 0);
|
|
528
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "hasWebsocketConnected", void 0);
|
|
529
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "inMeetingActions", void 0);
|
|
530
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "isLocalShareLive", void 0);
|
|
531
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "isSharing", void 0);
|
|
532
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "keepAliveTimerId", void 0);
|
|
533
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "lastVideoLayoutInfo", void 0);
|
|
534
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "locusInfo", void 0);
|
|
535
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "mediaProperties", void 0);
|
|
536
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "meetingInfoFailureReason", void 0);
|
|
537
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "networkQualityMonitor", void 0);
|
|
538
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "networkStatus", void 0);
|
|
539
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "passwordStatus", void 0);
|
|
540
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "queuedMediaUpdates", void 0);
|
|
541
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "recording", void 0);
|
|
542
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "requiredCaptcha", void 0);
|
|
543
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "shareStatus", void 0);
|
|
544
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "statsAnalyzer", void 0);
|
|
545
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "transcription", void 0);
|
|
546
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "updateMediaConnections", void 0);
|
|
547
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "endCallInitiateJoinReq", void 0);
|
|
548
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "endJoinReqResp", void 0);
|
|
549
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "endLocalSDPGenRemoteSDPRecvDelay", void 0);
|
|
550
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "joinedWith", void 0);
|
|
551
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "locusId", void 0);
|
|
552
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "startCallInitiateJoinReq", void 0);
|
|
553
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "startJoinReqResp", void 0);
|
|
554
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "startLocalSDPGenRemoteSDPRecvDelay", void 0);
|
|
555
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "wirelessShare", void 0);
|
|
556
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "guest", void 0);
|
|
557
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "meetingJoinUrl", void 0);
|
|
558
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "meetingNumber", void 0);
|
|
559
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "meetingState", void 0);
|
|
560
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "permissionToken", void 0);
|
|
561
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "resourceId", void 0);
|
|
562
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "resourceUrl", void 0);
|
|
563
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "selfId", void 0);
|
|
564
|
+
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "state", void 0);
|
|
488
565
|
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "namespace", _constants.MEETINGS);
|
|
489
566
|
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "getMediaStreams", function (mediaDirection) {
|
|
490
567
|
var audioVideo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _constants.VIDEO_RESOLUTIONS[_this.mediaProperties.localQualityLevel];
|
|
@@ -551,7 +628,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
551
628
|
sendAudio: devicePermissions.sendAudio,
|
|
552
629
|
sendVideo: devicePermissions.sendVideo,
|
|
553
630
|
isSharing: _this.shareStatus === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE
|
|
554
|
-
}), audioVideo, sharePreferences,
|
|
631
|
+
}), audioVideo, sharePreferences, // @ts-ignore - config coming from registerPlugin
|
|
632
|
+
_this.config).catch(function (error) {
|
|
555
633
|
var _this$locusUrl;
|
|
556
634
|
|
|
557
635
|
// Whenever there is a failure when trying to access a user's device
|
|
@@ -597,6 +675,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
597
675
|
|
|
598
676
|
// TODO: might have to send the same event to the developer
|
|
599
677
|
// Add ip address info if geo hint is present
|
|
678
|
+
// @ts-ignore fix type
|
|
600
679
|
options.data.intervalMetadata.peerReflexiveIP = ((_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;
|
|
601
680
|
|
|
602
681
|
_metrics.default.postEvent({
|
|
@@ -660,6 +739,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
660
739
|
});
|
|
661
740
|
});
|
|
662
741
|
(0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "mediaNegotiatedEvent", function () {
|
|
742
|
+
// @ts-ignore - config coming from registerPlugin
|
|
663
743
|
if (_this.config.experimental.enableMediaNegotiatedEvent) {
|
|
664
744
|
_loggerProxy.default.logger.info('Meeting:mediaNegotiatedEvent --> Media server negotiated');
|
|
665
745
|
|
|
@@ -866,6 +946,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
866
946
|
* @public
|
|
867
947
|
* @memberof Meeting
|
|
868
948
|
*/
|
|
949
|
+
// @ts-ignore - Fix type
|
|
869
950
|
|
|
870
951
|
_this.members = new _index2.default({
|
|
871
952
|
locusUrl: attrs.locus && attrs.locus.url
|
|
@@ -879,6 +960,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
879
960
|
* @private
|
|
880
961
|
* @memberof Meeting
|
|
881
962
|
*/
|
|
963
|
+
// @ts-ignore - Fix type
|
|
882
964
|
|
|
883
965
|
_this.roap = new _index.default({}, {
|
|
884
966
|
parent: _this.webex
|
|
@@ -1092,7 +1174,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1092
1174
|
_this.isSharing = false;
|
|
1093
1175
|
/**
|
|
1094
1176
|
* @instance
|
|
1095
|
-
* @type {
|
|
1177
|
+
* @type {string}
|
|
1096
1178
|
* @readonly
|
|
1097
1179
|
* @public
|
|
1098
1180
|
* @memberof Meeting
|
|
@@ -1137,7 +1219,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1137
1219
|
/**
|
|
1138
1220
|
* There is a pending floor requested by the user
|
|
1139
1221
|
* @instance
|
|
1140
|
-
* @type {
|
|
1222
|
+
* @type {boolean}
|
|
1141
1223
|
* @private
|
|
1142
1224
|
* @memberof Meeting
|
|
1143
1225
|
*/
|
|
@@ -1213,6 +1295,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1213
1295
|
* @private
|
|
1214
1296
|
* @memberof Meeting
|
|
1215
1297
|
*/
|
|
1298
|
+
// @ts-ignore - Fix type
|
|
1216
1299
|
|
|
1217
1300
|
_this.locusInfo = new _locusInfo.default(_this.updateMeetingObject.bind((0, _assertThisInitialized2.default)(_this)), _this.webex, _this.id); // We had to add listeners first before setting up the locus instance
|
|
1218
1301
|
|
|
@@ -1241,6 +1324,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1241
1324
|
* @private
|
|
1242
1325
|
* @memberof Meeting
|
|
1243
1326
|
*/
|
|
1327
|
+
// @ts-ignore - Fix type
|
|
1244
1328
|
|
|
1245
1329
|
_this.hasWebsocketConnected = _this.webex.internal.mercury.connected;
|
|
1246
1330
|
/**
|
|
@@ -1407,6 +1491,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1407
1491
|
break;
|
|
1408
1492
|
}
|
|
1409
1493
|
|
|
1494
|
+
// @ts-ignore
|
|
1410
1495
|
_loggerProxy.default.logger.info("Meeting:index#fetchMeetingInfo --> Info Unable to fetch meeting info for ".concat(this.destination, " - password required (code=").concat(_context.t0 === null || _context.t0 === void 0 ? void 0 : (_err$body = _context.t0.body) === null || _err$body === void 0 ? void 0 : _err$body.code, ").")); // when wbxappapi requires password it still populates partial meeting info in the response
|
|
1411
1496
|
|
|
1412
1497
|
|
|
@@ -1435,6 +1520,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1435
1520
|
break;
|
|
1436
1521
|
}
|
|
1437
1522
|
|
|
1523
|
+
// @ts-ignore
|
|
1438
1524
|
_loggerProxy.default.logger.info("Meeting:index#fetchMeetingInfo --> Info Unable to fetch meeting info for ".concat(this.destination, " - captcha required (code=").concat(_context.t0 === null || _context.t0 === void 0 ? void 0 : (_err$body2 = _context.t0.body) === null || _err$body2 === void 0 ? void 0 : _err$body2.code, ")."));
|
|
1439
1525
|
|
|
1440
1526
|
this.meetingInfoFailureReason = this.requiredCaptcha ? _constants.MEETING_INFO_FAILURE_REASON.WRONG_CAPTCHA : _constants.MEETING_INFO_FAILURE_REASON.WRONG_PASSWORD;
|
|
@@ -1592,7 +1678,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1592
1678
|
function: 'setUpLocusInfoMediaInactiveListener'
|
|
1593
1679
|
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this4);
|
|
1594
1680
|
|
|
1595
|
-
_loggerProxy.default.logger.error("Meeting:index#setUpLocusInfoMediaInactiveListener --> Meeting disconnected due to inactivity: ".concat(res.reason));
|
|
1681
|
+
_loggerProxy.default.logger.error("Meeting:index#setUpLocusInfoMediaInactiveListener --> Meeting disconnected due to inactivity: ".concat(res.reason)); // @ts-ignore - config coming from registerPlugin
|
|
1682
|
+
|
|
1596
1683
|
|
|
1597
1684
|
if (_this4.config.reconnection.autoRejoin) {
|
|
1598
1685
|
_this4.reconnect();
|
|
@@ -1671,7 +1758,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1671
1758
|
if (options) {
|
|
1672
1759
|
var event = options.event,
|
|
1673
1760
|
trackingId = options.trackingId,
|
|
1674
|
-
|
|
1761
|
+
_mediaConnections = options.mediaConnections;
|
|
1675
1762
|
|
|
1676
1763
|
if (!event) {
|
|
1677
1764
|
_loggerProxy.default.logger.error('Meeting:index#getAnalyzerMetricsPrePayload --> Error [Call Analyzer Event', event || '', "]: invalid identifers or event type! ".concat(this.correlationId));
|
|
@@ -1684,6 +1771,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1684
1771
|
userId: this.userId,
|
|
1685
1772
|
deviceId: this.deviceUrl,
|
|
1686
1773
|
orgId: this.orgId,
|
|
1774
|
+
// @ts-ignore fix type
|
|
1687
1775
|
locusUrl: this.webex.internal.services.get('locus')
|
|
1688
1776
|
};
|
|
1689
1777
|
|
|
@@ -1694,10 +1782,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1694
1782
|
} // Check if mediaConnections has been passed in or else use this.mediaConnections
|
|
1695
1783
|
|
|
1696
1784
|
|
|
1697
|
-
if (
|
|
1698
|
-
identifiers.mediaAgentAlias =
|
|
1699
|
-
identifiers.mediaAgentGroupId =
|
|
1700
|
-
identifiers.mediaAgentCluster =
|
|
1785
|
+
if (_mediaConnections) {
|
|
1786
|
+
identifiers.mediaAgentAlias = _mediaConnections === null || _mediaConnections === void 0 ? void 0 : _mediaConnections[0].mediaAgentAlias;
|
|
1787
|
+
identifiers.mediaAgentGroupId = _mediaConnections === null || _mediaConnections === void 0 ? void 0 : _mediaConnections[0].mediaAgentGroupId;
|
|
1788
|
+
identifiers.mediaAgentCluster = _mediaConnections === null || _mediaConnections === void 0 ? void 0 : _mediaConnections[0].mediaAgentCluster;
|
|
1701
1789
|
} else if (this.mediaConnections) {
|
|
1702
1790
|
var _this$mediaConnection, _this$mediaConnection2, _this$mediaConnection3;
|
|
1703
1791
|
|
|
@@ -1801,7 +1889,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1801
1889
|
}, {
|
|
1802
1890
|
key: "sendCallAnalyzerMetrics",
|
|
1803
1891
|
value: function sendCallAnalyzerMetrics(options) {
|
|
1804
|
-
var payload = this.getAnalyzerMetricsPrePayload(_objectSpread(_objectSpread({}, (0, _pick2.default)(this.config.metrics, ['clientType', 'subClientType'])), options));
|
|
1892
|
+
var payload = this.getAnalyzerMetricsPrePayload(_objectSpread(_objectSpread({}, (0, _pick2.default)(this.config.metrics, ['clientType', 'subClientType'])), options)); // @ts-ignore - fix type
|
|
1893
|
+
|
|
1805
1894
|
return this.webex.internal.metrics.submitCallDiagnosticEvents(payload);
|
|
1806
1895
|
}
|
|
1807
1896
|
/**
|
|
@@ -1820,7 +1909,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1820
1909
|
value: function sendMediaQualityAnalyzerMetrics(options) {
|
|
1821
1910
|
var payload = this.getAnalyzerMetricsPrePayload(_objectSpread(_objectSpread({
|
|
1822
1911
|
type: _constants.MQA_STATS.CA_TYPE
|
|
1823
|
-
}, (0, _pick2.default)(this.config.metrics, ['clientType', 'subClientType'])), options));
|
|
1912
|
+
}, (0, _pick2.default)(this.config.metrics, ['clientType', 'subClientType'])), options)); // @ts-ignore
|
|
1913
|
+
|
|
1824
1914
|
return this.webex.internal.metrics.submitCallDiagnosticEvents(payload);
|
|
1825
1915
|
}
|
|
1826
1916
|
/**
|
|
@@ -1869,7 +1959,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1869
1959
|
|
|
1870
1960
|
|
|
1871
1961
|
if (_this7.floorGrantPending && payload.newSelf.state === _constants.MEETING_STATE.STATES.JOINED) {
|
|
1872
|
-
_this7.
|
|
1962
|
+
_this7.requestScreenShareFloor().then(function () {
|
|
1873
1963
|
_this7.floorGrantPending = false;
|
|
1874
1964
|
});
|
|
1875
1965
|
}
|
|
@@ -2052,6 +2142,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2052
2142
|
var caption = _ref7.caption,
|
|
2053
2143
|
transcribing = _ref7.transcribing;
|
|
2054
2144
|
|
|
2145
|
+
// @ts-ignore - config coming from registerPlugin
|
|
2055
2146
|
if (transcribing && _this11.transcription && _this11.config.receiveTranscription) {
|
|
2056
2147
|
_this11.receiveTranscription();
|
|
2057
2148
|
} else if (!transcribing && _this11.transcription) {
|
|
@@ -2152,7 +2243,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2152
2243
|
case _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE:
|
|
2153
2244
|
_triggerProxy.default.trigger(_this12, {
|
|
2154
2245
|
file: 'meeting/index',
|
|
2155
|
-
function: '
|
|
2246
|
+
function: 'localShare'
|
|
2156
2247
|
}, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_LOCAL, {
|
|
2157
2248
|
reason: _constants.SHARE_STOPPED_REASON.SELF_STOPPED
|
|
2158
2249
|
});
|
|
@@ -2470,7 +2561,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2470
2561
|
meeting: _this16
|
|
2471
2562
|
});
|
|
2472
2563
|
}
|
|
2473
|
-
});
|
|
2564
|
+
}); // @ts-ignore - check if MEDIA_INACTIVITY exists
|
|
2565
|
+
|
|
2474
2566
|
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.MEDIA_INACTIVITY, function () {
|
|
2475
2567
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_MEDIA_INACTIVE, {
|
|
2476
2568
|
correlation_id: _this16.correlationId,
|
|
@@ -2538,6 +2630,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2538
2630
|
}).then(function () {
|
|
2539
2631
|
_loggerProxy.default.logger.info('Meeting:index#setUpLocusInfoMeetingListener --> REMOTE_RESPONSE. Attempting to leave meeting.');
|
|
2540
2632
|
}).catch(function (error) {
|
|
2633
|
+
// @ts-ignore
|
|
2541
2634
|
_loggerProxy.default.logger.error("Meeting:index#setUpLocusInfoMeetingListener --> REMOTE_RESPONSE. Issue with leave for meeting, meeting still in collection: ".concat(_this17.meeting, ", error: ").concat(error));
|
|
2542
2635
|
});
|
|
2543
2636
|
}
|
|
@@ -2568,6 +2661,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2568
2661
|
}).then(function () {
|
|
2569
2662
|
_loggerProxy.default.logger.warn('Meeting:index#setUpLocusInfoMeetingListener --> DESTROY_MEETING. The meeting has been left, but has not been destroyed, you should see a later event for leave.');
|
|
2570
2663
|
}).catch(function (error) {
|
|
2664
|
+
// @ts-ignore
|
|
2571
2665
|
_loggerProxy.default.logger.error("Meeting:index#setUpLocusInfoMeetingListener --> DESTROY_MEETING. Issue with leave for meeting, meeting still in collection: ".concat(_this17.meeting, ", error: ").concat(error));
|
|
2572
2666
|
});
|
|
2573
2667
|
} else {
|
|
@@ -2812,8 +2906,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2812
2906
|
var _locusMeetingObject, _locusMeetingObject2, _locusMeetingObject3, _locusMeetingObject4, _locusMeetingObject6;
|
|
2813
2907
|
|
|
2814
2908
|
this.conversationUrl = ((_locusMeetingObject = locusMeetingObject) === null || _locusMeetingObject === void 0 ? void 0 : _locusMeetingObject.conversationUrl) || (webexMeetingInfo === null || webexMeetingInfo === void 0 ? void 0 : webexMeetingInfo.conversationUrl) || this.conversationUrl;
|
|
2815
|
-
this.locusUrl = ((_locusMeetingObject2 = locusMeetingObject) === null || _locusMeetingObject2 === void 0 ? void 0 : _locusMeetingObject2.url) || (webexMeetingInfo === null || webexMeetingInfo === void 0 ? void 0 : webexMeetingInfo.locusUrl) || this.locusUrl;
|
|
2816
|
-
|
|
2909
|
+
this.locusUrl = ((_locusMeetingObject2 = locusMeetingObject) === null || _locusMeetingObject2 === void 0 ? void 0 : _locusMeetingObject2.url) || (webexMeetingInfo === null || webexMeetingInfo === void 0 ? void 0 : webexMeetingInfo.locusUrl) || this.locusUrl; // @ts-ignore - config coming from registerPlugin
|
|
2910
|
+
|
|
2911
|
+
this.setSipUri(this.config.experimental.enableUnifiedMeetings ? ((_locusMeetingObject3 = locusMeetingObject) === null || _locusMeetingObject3 === void 0 ? void 0 : _locusMeetingObject3.info.sipUri) || (webexMeetingInfo === null || webexMeetingInfo === void 0 ? void 0 : webexMeetingInfo.sipUrl) : ((_locusMeetingObject4 = locusMeetingObject) === null || _locusMeetingObject4 === void 0 ? void 0 : _locusMeetingObject4.info.sipUri) || (webexMeetingInfo === null || webexMeetingInfo === void 0 ? void 0 : webexMeetingInfo.sipMeetingUri) || this.sipUri); // @ts-ignore - config coming from registerPlugin
|
|
2817
2912
|
|
|
2818
2913
|
if (this.config.experimental.enableUnifiedMeetings) {
|
|
2819
2914
|
var _locusMeetingObject5;
|
|
@@ -2909,7 +3004,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2909
3004
|
this.mediaConnections = locus.mediaConnections;
|
|
2910
3005
|
this.locusUrl = locus.locusUrl || locus.url;
|
|
2911
3006
|
this.locusId = locus.locusId;
|
|
2912
|
-
this.selfId = locus.selfId;
|
|
3007
|
+
this.selfId = locus.selfId; // @ts-ignore
|
|
3008
|
+
|
|
2913
3009
|
this.mediaId = locus.mediaId;
|
|
2914
3010
|
this.hostId = mtgLocus.host ? mtgLocus.host.id : this.hostId;
|
|
2915
3011
|
this.locusInfo.initialSetup(mtgLocus);
|
|
@@ -3257,7 +3353,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3257
3353
|
}
|
|
3258
3354
|
/**
|
|
3259
3355
|
* Sets the local media stream on the class and emits an event to the developer
|
|
3260
|
-
* @param {
|
|
3356
|
+
* @param {MediaStream} localShare the local media stream
|
|
3261
3357
|
* @returns {undefined}
|
|
3262
3358
|
* @public
|
|
3263
3359
|
* @memberof Meeting
|
|
@@ -3401,6 +3497,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3401
3497
|
|
|
3402
3498
|
// Client will have a socket manager and handle reconnecting to mercury, when we reconnect to mercury
|
|
3403
3499
|
// if the meeting has active peer connections, it should try to reconnect.
|
|
3500
|
+
// @ts-ignore
|
|
3404
3501
|
this.webex.internal.mercury.on(_constants.ONLINE, function () {
|
|
3405
3502
|
_loggerProxy.default.logger.info('Meeting:index#setMercuryListener --> Web socket online'); // Only send restore event when it was disconnected before and for connected later
|
|
3406
3503
|
|
|
@@ -3417,7 +3514,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3417
3514
|
}
|
|
3418
3515
|
|
|
3419
3516
|
_this24.hasWebsocketConnected = true;
|
|
3420
|
-
});
|
|
3517
|
+
}); // @ts-ignore
|
|
3518
|
+
|
|
3421
3519
|
this.webex.internal.mercury.on(_constants.OFFLINE, function () {
|
|
3422
3520
|
_loggerProxy.default.logger.error('Meeting:index#setMercuryListener --> Web socket offline');
|
|
3423
3521
|
|
|
@@ -3456,9 +3554,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3456
3554
|
}, {
|
|
3457
3555
|
key: "unsetPeerConnections",
|
|
3458
3556
|
value: function unsetPeerConnections() {
|
|
3459
|
-
this.mediaProperties.unsetPeerConnection();
|
|
3557
|
+
this.mediaProperties.unsetPeerConnection(); // @ts-ignore - config coming from registerPlugin
|
|
3460
3558
|
|
|
3461
3559
|
if (this.config.reconnection.detection) {
|
|
3560
|
+
// @ts-ignore
|
|
3462
3561
|
this.webex.internal.mercury.off(_constants.ONLINE);
|
|
3463
3562
|
}
|
|
3464
3563
|
}
|
|
@@ -3489,7 +3588,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3489
3588
|
|
|
3490
3589
|
if (!_util.default.isUserInJoinedState(this.locusInfo)) {
|
|
3491
3590
|
return _promise.default.reject(new _webexErrors.UserNotJoinedError());
|
|
3492
|
-
}
|
|
3591
|
+
} // @ts-ignore
|
|
3592
|
+
|
|
3493
3593
|
|
|
3494
3594
|
if (!this.mediaId) {
|
|
3495
3595
|
// Happens when addMedia and mute are triggered in succession
|
|
@@ -3542,7 +3642,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3542
3642
|
|
|
3543
3643
|
if (!_util.default.isUserInJoinedState(this.locusInfo)) {
|
|
3544
3644
|
return _promise.default.reject(new _webexErrors.UserNotJoinedError());
|
|
3545
|
-
}
|
|
3645
|
+
} // @ts-ignore
|
|
3646
|
+
|
|
3546
3647
|
|
|
3547
3648
|
if (!this.mediaId) {
|
|
3548
3649
|
// Happens when addMedia and mute are triggered in succession
|
|
@@ -3595,7 +3696,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3595
3696
|
|
|
3596
3697
|
if (!_util.default.isUserInJoinedState(this.locusInfo)) {
|
|
3597
3698
|
return _promise.default.reject(new _webexErrors.UserNotJoinedError());
|
|
3598
|
-
}
|
|
3699
|
+
} // @ts-ignore
|
|
3700
|
+
|
|
3599
3701
|
|
|
3600
3702
|
if (!this.mediaId) {
|
|
3601
3703
|
// Happens when addMedia and mute are triggered in succession
|
|
@@ -3647,7 +3749,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3647
3749
|
|
|
3648
3750
|
if (!_util.default.isUserInJoinedState(this.locusInfo)) {
|
|
3649
3751
|
return _promise.default.reject(new _webexErrors.UserNotJoinedError());
|
|
3650
|
-
}
|
|
3752
|
+
} // @ts-ignore
|
|
3753
|
+
|
|
3651
3754
|
|
|
3652
3755
|
if (!this.mediaId) {
|
|
3653
3756
|
// Happens when addMedia and mute are triggered in succession
|
|
@@ -3772,14 +3875,16 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3772
3875
|
|
|
3773
3876
|
if (!this.reconnectionManager || !this.reconnectionManager.reconnect) {
|
|
3774
3877
|
return _promise.default.reject(new _parameter.default('Cannot reconnect, ReconnectionManager must first be defined.'));
|
|
3775
|
-
}
|
|
3878
|
+
} // @ts-ignore - currentMediaStatus coming from SelfUtil
|
|
3879
|
+
|
|
3776
3880
|
|
|
3777
3881
|
if (!_util.default.isMediaEstablished(this.currentMediaStatus)) {
|
|
3778
3882
|
return _promise.default.reject(new _parameter.default('Cannot reconnect, Media has not established to reconnect'));
|
|
3779
3883
|
}
|
|
3780
3884
|
|
|
3781
3885
|
try {
|
|
3782
|
-
_loggerProxy.default.logger.info('Meeting:index#reconnect --> Validating reconnect ability.');
|
|
3886
|
+
_loggerProxy.default.logger.info('Meeting:index#reconnect --> Validating reconnect ability.'); // @ts-ignore
|
|
3887
|
+
|
|
3783
3888
|
|
|
3784
3889
|
this.reconnectionManager.validate();
|
|
3785
3890
|
} catch (error) {
|
|
@@ -3900,7 +4005,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3900
4005
|
_loggerProxy.default.logger.info("Meeting:index#receiveTranscription -->\n Attempting to generate a web socket url.");
|
|
3901
4006
|
|
|
3902
4007
|
_context2.prev = 1;
|
|
3903
|
-
datachannelUrl = this.locusInfo.info.datachannelUrl;
|
|
4008
|
+
datachannelUrl = this.locusInfo.info.datachannelUrl; // @ts-ignore - fix type
|
|
4009
|
+
|
|
3904
4010
|
_context2.next = 5;
|
|
3905
4011
|
return this.request({
|
|
3906
4012
|
method: _constants.HTTP_VERBS.POST,
|
|
@@ -3916,7 +4022,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3916
4022
|
|
|
3917
4023
|
_loggerProxy.default.logger.info("Meeting:index#receiveTranscription -->\n Generated web socket url succesfully.");
|
|
3918
4024
|
|
|
3919
|
-
this.transcription = new _transcription.default(webSocketUrl,
|
|
4025
|
+
this.transcription = new _transcription.default(webSocketUrl, // @ts-ignore - fix type
|
|
4026
|
+
this.webex.sessionId, this.members);
|
|
3920
4027
|
|
|
3921
4028
|
_loggerProxy.default.logger.info("Meeting:index#receiveTranscription -->\n opened LLM web socket connection successfully."); // retrieve and pass the payload
|
|
3922
4029
|
|
|
@@ -3927,7 +4034,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3927
4034
|
function: 'join'
|
|
3928
4035
|
}, _constants.EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION, payload);
|
|
3929
4036
|
});
|
|
3930
|
-
this.monitorTranscriptionSocketConnection();
|
|
4037
|
+
this.monitorTranscriptionSocketConnection(); // @ts-ignore - fix type
|
|
4038
|
+
|
|
3931
4039
|
this.transcription.connect(this.webex.credentials.supertoken.access_token);
|
|
3932
4040
|
_context2.next = 19;
|
|
3933
4041
|
break;
|
|
@@ -4008,6 +4116,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4008
4116
|
|
|
4009
4117
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4010
4118
|
|
|
4119
|
+
// @ts-ignore - fix type
|
|
4011
4120
|
if (!this.webex.meetings.registered) {
|
|
4012
4121
|
var errorMessage = 'Meeting:index#join --> Device not registered';
|
|
4013
4122
|
var error = new Error(errorMessage);
|
|
@@ -4392,7 +4501,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4392
4501
|
}
|
|
4393
4502
|
|
|
4394
4503
|
_context4.next = 4;
|
|
4395
|
-
return _this36.
|
|
4504
|
+
return _this36.releaseScreenShareFloor();
|
|
4396
4505
|
|
|
4397
4506
|
case 4:
|
|
4398
4507
|
mediaSettings = {
|
|
@@ -4419,6 +4528,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4419
4528
|
case 10:
|
|
4420
4529
|
_this36.mediaProperties.unsetMediaTracks(); // when a move to is intiated by the client , Locus delets the existing media node from the server as soon the DX answers the meeting
|
|
4421
4530
|
// once the DX answers we establish connection back the media server with only receiveShare enabled
|
|
4531
|
+
// @ts-ignore - reconnectMedia does not accept any argument
|
|
4422
4532
|
|
|
4423
4533
|
|
|
4424
4534
|
_context4.next = 13;
|
|
@@ -4563,6 +4673,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4563
4673
|
if (_util.default.isUserInLeftState(this.locusInfo)) {
|
|
4564
4674
|
return _promise.default.reject(new _webexErrors.UserNotJoinedError());
|
|
4565
4675
|
} // If the user is unjoined or guest waiting in lobby dont allow the user to addMedia
|
|
4676
|
+
// @ts-ignore - isUserUnadmitted coming from SelfUtil
|
|
4566
4677
|
|
|
4567
4678
|
|
|
4568
4679
|
if (this.isUserUnadmitted && !this.wirelessShare) {
|
|
@@ -4616,7 +4727,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4616
4727
|
return _media.default.attachMedia(_this38.mediaProperties, {
|
|
4617
4728
|
meetingId: _this38.id,
|
|
4618
4729
|
remoteQualityLevel: _this38.mediaProperties.remoteQualityLevel,
|
|
4730
|
+
// @ts-ignore - config coming from registerPlugin
|
|
4619
4731
|
enableRtx: _this38.config.enableRtx,
|
|
4732
|
+
// @ts-ignore - config coming from registerPlugin
|
|
4620
4733
|
enableExtmap: _this38.config.enableExtmap,
|
|
4621
4734
|
setStartLocalSDPGenRemoteSDPRecvDelay: _this38.setStartLocalSDPGenRemoteSDPRecvDelay.bind(_this38)
|
|
4622
4735
|
});
|
|
@@ -4631,11 +4744,14 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4631
4744
|
|
|
4632
4745
|
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " PeerConnection Received from attachMedia "));
|
|
4633
4746
|
|
|
4634
|
-
_this38.setRemoteStream(peerConnection);
|
|
4747
|
+
_this38.setRemoteStream(peerConnection); // @ts-ignore - config coming from registerPlugin
|
|
4748
|
+
|
|
4635
4749
|
|
|
4636
4750
|
if (_this38.config.stats.enableStatsAnalyzer) {
|
|
4637
4751
|
// TODO: ** Dont re create StatsAnalyzer on reconnect or rejoin
|
|
4638
|
-
|
|
4752
|
+
// @ts-ignore - config coming from registerPlugin
|
|
4753
|
+
_this38.networkQualityMonitor = new _networkQualityMonitor.default(_this38.config.stats); // @ts-ignore - config coming from registerPlugin
|
|
4754
|
+
|
|
4639
4755
|
_this38.statsAnalyzer = new _statsAnalyzer.StatsAnalyzer(_this38.config.stats, _this38.networkQualityMonitor);
|
|
4640
4756
|
|
|
4641
4757
|
_this38.setupStatsAnalyzerEventHandlers();
|
|
@@ -4698,7 +4814,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4698
4814
|
|
|
4699
4815
|
if (mediaSettings && mediaSettings.sendShare && localShare) {
|
|
4700
4816
|
if (_this38.state === _constants.MEETING_STATE.STATES.JOINED) {
|
|
4701
|
-
return _this38.
|
|
4817
|
+
return _this38.requestScreenShareFloor();
|
|
4702
4818
|
} // When the self state changes to JOINED then request the floor
|
|
4703
4819
|
|
|
4704
4820
|
|
|
@@ -4836,7 +4952,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4836
4952
|
return _media.default.updateMedia(_this40.mediaProperties, {
|
|
4837
4953
|
meetingId: _this40.id,
|
|
4838
4954
|
remoteQualityLevel: _this40.mediaProperties.remoteQualityLevel,
|
|
4955
|
+
// @ts-ignore - config coming from registerPlugin
|
|
4839
4956
|
enableRtx: _this40.config.enableRtx,
|
|
4957
|
+
// @ts-ignore - config coming from registerPlugin
|
|
4840
4958
|
enableExtmap: _this40.config.enableExtmap
|
|
4841
4959
|
}).then(function (peerConnection) {
|
|
4842
4960
|
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " PeerConnection received from updateMedia, ").concat(peerConnection));
|
|
@@ -4875,7 +4993,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4875
4993
|
// we actually get a OFFER from the server and a GLAR condition happens
|
|
4876
4994
|
if (startShare) {
|
|
4877
4995
|
// We are assuming that the clients are connected when doing an update
|
|
4878
|
-
return _this40.
|
|
4996
|
+
return _this40.requestScreenShareFloor();
|
|
4879
4997
|
}
|
|
4880
4998
|
|
|
4881
4999
|
return _promise.default.resolve();
|
|
@@ -5077,7 +5195,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5077
5195
|
|
|
5078
5196
|
if (!sendShare && previousShareStatus) {
|
|
5079
5197
|
// When user stops sharing
|
|
5080
|
-
return this.
|
|
5198
|
+
return this.releaseScreenShareFloor().then(function () {
|
|
5081
5199
|
return _promise.default.resolve(false);
|
|
5082
5200
|
});
|
|
5083
5201
|
}
|
|
@@ -5139,7 +5257,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5139
5257
|
id: _this43.id
|
|
5140
5258
|
}).then(function () {
|
|
5141
5259
|
if (startShare) {
|
|
5142
|
-
return _this43.
|
|
5260
|
+
return _this43.requestScreenShareFloor();
|
|
5143
5261
|
}
|
|
5144
5262
|
|
|
5145
5263
|
return _promise.default.resolve();
|
|
@@ -5148,7 +5266,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5148
5266
|
_this43.mediaProperties.mediaDirection.sendShare = sendShare;
|
|
5149
5267
|
_this43.mediaProperties.mediaDirection.receiveShare = receiveShare;
|
|
5150
5268
|
}).catch(function (error) {
|
|
5151
|
-
_this43.unsetLocalShareTrack(
|
|
5269
|
+
_this43.unsetLocalShareTrack();
|
|
5152
5270
|
|
|
5153
5271
|
throw error;
|
|
5154
5272
|
}).finally(function () {
|
|
@@ -5182,6 +5300,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5182
5300
|
value: function preMedia(localStream, localShare, mediaSettings) {
|
|
5183
5301
|
// eslint-disable-next-line no-warning-comments
|
|
5184
5302
|
// TODO wire into default config. There's currently an issue with the stateless plugin or how we register
|
|
5303
|
+
// @ts-ignore - config coming from registerPlugin
|
|
5185
5304
|
this.mediaProperties.setMediaDirection((0, _assign.default)(this.config.mediaSettings, mediaSettings)); // add a setup a function move the create and setup media in future
|
|
5186
5305
|
// TODO: delete old audio and video if stale
|
|
5187
5306
|
|
|
@@ -5427,7 +5546,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5427
5546
|
}).catch(function (error) {
|
|
5428
5547
|
_loggerProxy.default.logger.error('Meeting:index#stopWhiteboardShare --> Error ', error);
|
|
5429
5548
|
|
|
5430
|
-
_metrics.default.sendBehavioralMetric(
|
|
5549
|
+
_metrics.default.sendBehavioralMetric( // @ts-ignore - check if STOP_WHITEBOARD_SHARE_FAILURE exists
|
|
5550
|
+
_constants2.default.STOP_WHITEBOARD_SHARE_FAILURE, {
|
|
5431
5551
|
correlation_id: _this48.correlationId,
|
|
5432
5552
|
locus_id: _this48.locusUrl.split('/').pop(),
|
|
5433
5553
|
reason: error.message,
|
|
@@ -5444,15 +5564,15 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5444
5564
|
return _promise.default.reject(new _parameter.default('Cannot stop share without whiteboard.'));
|
|
5445
5565
|
}
|
|
5446
5566
|
/**
|
|
5447
|
-
*
|
|
5567
|
+
* Sends a request to Locus to obtain the screen share floor
|
|
5448
5568
|
* @returns {Promise} see #meetingRequest.changeMeetingFloor
|
|
5449
5569
|
* @private
|
|
5450
5570
|
* @memberof Meeting
|
|
5451
5571
|
*/
|
|
5452
5572
|
|
|
5453
5573
|
}, {
|
|
5454
|
-
key: "
|
|
5455
|
-
value: function
|
|
5574
|
+
key: "requestScreenShareFloor",
|
|
5575
|
+
value: function requestScreenShareFloor() {
|
|
5456
5576
|
var _this49 = this;
|
|
5457
5577
|
|
|
5458
5578
|
var content = this.locusInfo.mediaShares.find(function (element) {
|
|
@@ -5509,15 +5629,15 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5509
5629
|
}, options));
|
|
5510
5630
|
}
|
|
5511
5631
|
/**
|
|
5512
|
-
*
|
|
5632
|
+
* Sends a request to Locus to release the screen share floor.
|
|
5513
5633
|
* @returns {Promise} see #meetingRequest.changeMeetingFloor
|
|
5514
5634
|
* @private
|
|
5515
5635
|
* @memberof Meeting
|
|
5516
5636
|
*/
|
|
5517
5637
|
|
|
5518
5638
|
}, {
|
|
5519
|
-
key: "
|
|
5520
|
-
value: function
|
|
5639
|
+
key: "releaseScreenShareFloor",
|
|
5640
|
+
value: function releaseScreenShareFloor() {
|
|
5521
5641
|
var _this50 = this;
|
|
5522
5642
|
|
|
5523
5643
|
var content = this.locusInfo.mediaShares.find(function (element) {
|
|
@@ -5545,7 +5665,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5545
5665
|
uri: content.url,
|
|
5546
5666
|
resourceUrl: this.resourceUrl
|
|
5547
5667
|
}).catch(function (error) {
|
|
5548
|
-
_loggerProxy.default.logger.error('Meeting:index#
|
|
5668
|
+
_loggerProxy.default.logger.error('Meeting:index#releaseScreenShareFloor --> Error ', error);
|
|
5549
5669
|
|
|
5550
5670
|
_metrics.default.sendBehavioralMetric(_constants2.default.STOP_FLOOR_REQUEST_FAILURE, {
|
|
5551
5671
|
correlation_id: _this50.correlationId,
|
|
@@ -5956,7 +6076,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5956
6076
|
var shareConstraints = _objectSpread({
|
|
5957
6077
|
sendShare: true,
|
|
5958
6078
|
sendAudio: false
|
|
5959
|
-
}, options);
|
|
6079
|
+
}, options); // @ts-ignore - config coming from registerPlugin
|
|
6080
|
+
|
|
5960
6081
|
|
|
5961
6082
|
return _media.default.getDisplayMedia(shareConstraints, this.config).then(function (shareStream) {
|
|
5962
6083
|
return _this54.updateShare({
|
|
@@ -6465,6 +6586,45 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6465
6586
|
* @memberof Meeting
|
|
6466
6587
|
*/
|
|
6467
6588
|
|
|
6589
|
+
}, {
|
|
6590
|
+
key: "sendReaction",
|
|
6591
|
+
value:
|
|
6592
|
+
/**
|
|
6593
|
+
* Send a reaction inside the meeting.
|
|
6594
|
+
*
|
|
6595
|
+
* @param {ReactionType} reactionType - type of reaction to be sent. Example: "thumbs_up"
|
|
6596
|
+
* @param {SkinToneType} skinToneType - skin tone for the reaction. Example: "medium_dark"
|
|
6597
|
+
* @returns {Promise}
|
|
6598
|
+
* @public
|
|
6599
|
+
* @memberof Meeting
|
|
6600
|
+
*/
|
|
6601
|
+
function sendReaction(reactionType, skinToneType) {
|
|
6602
|
+
var _this$locusInfo, _this$locusInfo$contr2, _this$locusInfo$contr3;
|
|
6603
|
+
|
|
6604
|
+
var reactionChannelUrl = (_this$locusInfo = this.locusInfo) === null || _this$locusInfo === void 0 ? void 0 : (_this$locusInfo$contr2 = _this$locusInfo.controls) === null || _this$locusInfo$contr2 === void 0 ? void 0 : (_this$locusInfo$contr3 = _this$locusInfo$contr2.reactions) === null || _this$locusInfo$contr3 === void 0 ? void 0 : _this$locusInfo$contr3.reactionChannelUrl;
|
|
6605
|
+
var participantId = this.members.selfId;
|
|
6606
|
+
var reactionData = _reactions.Reactions[reactionType];
|
|
6607
|
+
|
|
6608
|
+
if (!reactionData) {
|
|
6609
|
+
return _promise.default.reject(new Error("".concat(reactionType, " is not a valid reaction.")));
|
|
6610
|
+
}
|
|
6611
|
+
|
|
6612
|
+
var skinToneData = _reactions.SkinTones[skinToneType] || _reactions.SkinTones.normal;
|
|
6613
|
+
|
|
6614
|
+
var reaction = _objectSpread(_objectSpread({}, reactionData), {}, {
|
|
6615
|
+
tone: skinToneData
|
|
6616
|
+
});
|
|
6617
|
+
|
|
6618
|
+
if (reactionChannelUrl) {
|
|
6619
|
+
return this.meetingRequest.sendReaction({
|
|
6620
|
+
reactionChannelUrl: reactionChannelUrl,
|
|
6621
|
+
reaction: reaction,
|
|
6622
|
+
participantId: participantId
|
|
6623
|
+
});
|
|
6624
|
+
}
|
|
6625
|
+
|
|
6626
|
+
return _promise.default.reject(new Error('Error sending reaction, service url not found.'));
|
|
6627
|
+
}
|
|
6468
6628
|
}]);
|
|
6469
6629
|
return Meeting;
|
|
6470
6630
|
}(_webexCore.StatelessWebexPlugin);
|