@webex/plugin-meetings 3.0.0-beta.7 → 3.0.0-beta.9
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 +173 -50
- 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 +54 -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 +14 -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/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/reconnection-manager/index.js +21 -2
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/roap/index.js +23 -13
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js +5 -2
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/turnDiscovery.js +9 -1
- package/dist/roap/turnDiscovery.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 -18
- 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 +2 -1
- 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} +62 -16
- package/src/media/{properties.js → properties.ts} +16 -4
- package/src/media/{util.js → util.ts} +1 -1
- 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} +341 -156
- package/src/meeting/{muteState.js → muteState.ts} +16 -11
- package/src/meeting/{request.js → request.ts} +124 -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 -21
- 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} +46 -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/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/reconnection-manager/{index.js → index.ts} +41 -12
- package/src/roap/{index.js → index.ts} +27 -18
- package/src/roap/{request.js → request.ts} +14 -2
- package/src/roap/turnDiscovery.ts +14 -5
- 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 +26 -14
- package/test/unit/spec/reconnection-manager/index.js +1 -0
- package/dist/peer-connection-manager/util.js +0 -124
- package/dist/peer-connection-manager/util.js.map +0 -1
- package/src/peer-connection-manager/util.ts +0 -117
- package/test/unit/spec/peerconnection-manager/utils.test-fixtures.ts +0 -389
package/dist/meeting/index.js
CHANGED
|
@@ -490,6 +490,88 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
490
490
|
* @memberof Meeting
|
|
491
491
|
*/
|
|
492
492
|
|
|
493
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "attrs", void 0);
|
|
494
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "audio", void 0);
|
|
495
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "conversationUrl", void 0);
|
|
496
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "correlationId", void 0);
|
|
497
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "destination", void 0);
|
|
498
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "destinationType", void 0);
|
|
499
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "deviceUrl", void 0);
|
|
500
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "effects", void 0);
|
|
501
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "hostId", void 0);
|
|
502
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "id", void 0);
|
|
503
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isMultistream", void 0);
|
|
504
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "locusUrl", void 0);
|
|
505
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mediaConnections", void 0);
|
|
506
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mediaId", void 0);
|
|
507
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingFiniteStateMachine", void 0);
|
|
508
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingInfo", void 0);
|
|
509
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingRequest", void 0);
|
|
510
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "members", void 0);
|
|
511
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "options", void 0);
|
|
512
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "orgId", void 0);
|
|
513
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "owner", void 0);
|
|
514
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "partner", void 0);
|
|
515
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "policy", void 0);
|
|
516
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "reconnectionManager", void 0);
|
|
517
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "resource", void 0);
|
|
518
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "roap", void 0);
|
|
519
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "roapSeq", void 0);
|
|
520
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "sipUri", void 0);
|
|
521
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "type", void 0);
|
|
522
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "userId", void 0);
|
|
523
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "video", void 0);
|
|
524
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "callEvents", void 0);
|
|
525
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "deferJoin", void 0);
|
|
526
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "dialInDeviceStatus", void 0);
|
|
527
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "dialInUrl", void 0);
|
|
528
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "dialOutDeviceStatus", void 0);
|
|
529
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "dialOutUrl", void 0);
|
|
530
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "fetchMeetingInfoTimeoutId", void 0);
|
|
531
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "floorGrantPending", void 0);
|
|
532
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "hasJoinedOnce", void 0);
|
|
533
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "hasWebsocketConnected", void 0);
|
|
534
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "inMeetingActions", void 0);
|
|
535
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isLocalShareLive", void 0);
|
|
536
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isRoapInProgress", void 0);
|
|
537
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isSharing", void 0);
|
|
538
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "keepAliveTimerId", void 0);
|
|
539
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "lastVideoLayoutInfo", void 0);
|
|
540
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "locusInfo", void 0);
|
|
541
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "media", void 0);
|
|
542
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mediaProperties", void 0);
|
|
543
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mediaRequestManagers", void 0);
|
|
544
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingInfoFailureReason", void 0);
|
|
545
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "networkQualityMonitor", void 0);
|
|
546
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "networkStatus", void 0);
|
|
547
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "passwordStatus", void 0);
|
|
548
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "queuedMediaUpdates", void 0);
|
|
549
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "recording", void 0);
|
|
550
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "remoteMediaManager", void 0);
|
|
551
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "requiredCaptcha", void 0);
|
|
552
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "receiveSlotManager", void 0);
|
|
553
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "shareStatus", void 0);
|
|
554
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "statsAnalyzer", void 0);
|
|
555
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "transcription", void 0);
|
|
556
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "updateMediaConnections", void 0);
|
|
557
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "endCallInitiateJoinReq", void 0);
|
|
558
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "endJoinReqResp", void 0);
|
|
559
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "endLocalSDPGenRemoteSDPRecvDelay", void 0);
|
|
560
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "joinedWith", void 0);
|
|
561
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "locusId", void 0);
|
|
562
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "startCallInitiateJoinReq", void 0);
|
|
563
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "startJoinReqResp", void 0);
|
|
564
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "startLocalSDPGenRemoteSDPRecvDelay", void 0);
|
|
565
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "wirelessShare", void 0);
|
|
566
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "guest", void 0);
|
|
567
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingJoinUrl", void 0);
|
|
568
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingNumber", void 0);
|
|
569
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingState", void 0);
|
|
570
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "permissionToken", void 0);
|
|
571
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "resourceId", void 0);
|
|
572
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "resourceUrl", void 0);
|
|
573
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "selfId", void 0);
|
|
574
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "state", void 0);
|
|
493
575
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "namespace", _constants.MEETINGS);
|
|
494
576
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getMediaStreams", function (mediaDirection) {
|
|
495
577
|
var audioVideo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _constants.VIDEO_RESOLUTIONS[_this.mediaProperties.localQualityLevel];
|
|
@@ -556,7 +638,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
556
638
|
sendAudio: devicePermissions.sendAudio,
|
|
557
639
|
sendVideo: devicePermissions.sendVideo,
|
|
558
640
|
isSharing: _this.shareStatus === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE
|
|
559
|
-
}), audioVideo, sharePreferences,
|
|
641
|
+
}), audioVideo, sharePreferences, // @ts-ignore - config coming from registerPlugin
|
|
642
|
+
_this.config).catch(function (error) {
|
|
560
643
|
var _this$locusUrl;
|
|
561
644
|
|
|
562
645
|
// Whenever there is a failure when trying to access a user's device
|
|
@@ -621,7 +704,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
621
704
|
meetingId: _this.id,
|
|
622
705
|
data: {
|
|
623
706
|
canProceed: false,
|
|
624
|
-
errors: [_metrics.default.generateErrorPayload(2001, true, _config.error.name.MEDIA_ENGINE)]
|
|
707
|
+
errors: [_metrics.default.generateErrorPayload(2001, true, _config.error.name.MEDIA_ENGINE, undefined)]
|
|
625
708
|
}
|
|
626
709
|
});
|
|
627
710
|
} else if (error instanceof _internalMediaCore.MediaConnection.Errors.SdpOfferHandlingError || error instanceof _internalMediaCore.MediaConnection.Errors.SdpAnswerHandlingError) {
|
|
@@ -632,7 +715,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
632
715
|
meetingId: _this.id,
|
|
633
716
|
data: {
|
|
634
717
|
canProceed: false,
|
|
635
|
-
errors: [_metrics.default.generateErrorPayload(2001, true, error.name.MEDIA_ENGINE)]
|
|
718
|
+
errors: [_metrics.default.generateErrorPayload(2001, true, _config.error.name.MEDIA_ENGINE, undefined)]
|
|
636
719
|
}
|
|
637
720
|
});
|
|
638
721
|
} else if (error instanceof _internalMediaCore.MediaConnection.Errors.SdpError) {
|
|
@@ -644,7 +727,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
644
727
|
meetingId: _this.id,
|
|
645
728
|
data: {
|
|
646
729
|
canProceed: false,
|
|
647
|
-
errors: [_metrics.default.generateErrorPayload(2001, true, _config.error.name.MEDIA_ENGINE)]
|
|
730
|
+
errors: [_metrics.default.generateErrorPayload(2001, true, _config.error.name.MEDIA_ENGINE, undefined)]
|
|
648
731
|
}
|
|
649
732
|
});
|
|
650
733
|
}
|
|
@@ -830,7 +913,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
830
913
|
meeting: (0, _assertThisInitialized2.default)(_this),
|
|
831
914
|
data: {
|
|
832
915
|
canProceed: false,
|
|
833
|
-
errors: [_metrics.default.generateErrorPayload(2004, false, _config.error.name.MEDIA_ENGINE)]
|
|
916
|
+
errors: [_metrics.default.generateErrorPayload(2004, false, _config.error.name.MEDIA_ENGINE, undefined)]
|
|
834
917
|
}
|
|
835
918
|
});
|
|
836
919
|
|
|
@@ -935,6 +1018,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
935
1018
|
|
|
936
1019
|
// TODO: might have to send the same event to the developer
|
|
937
1020
|
// Add ip address info if geo hint is present
|
|
1021
|
+
// @ts-ignore fix type
|
|
938
1022
|
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;
|
|
939
1023
|
|
|
940
1024
|
_metrics.default.postEvent({
|
|
@@ -998,6 +1082,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
998
1082
|
});
|
|
999
1083
|
});
|
|
1000
1084
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mediaNegotiatedEvent", function () {
|
|
1085
|
+
// @ts-ignore - config coming from registerPlugin
|
|
1001
1086
|
if (_this.config.experimental.enableMediaNegotiatedEvent) {
|
|
1002
1087
|
_loggerProxy.default.logger.info('Meeting:mediaNegotiatedEvent --> Media server negotiated');
|
|
1003
1088
|
|
|
@@ -1228,7 +1313,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1228
1313
|
_this.members = new _index2.default({
|
|
1229
1314
|
locusUrl: attrs.locus && attrs.locus.url,
|
|
1230
1315
|
receiveSlotManager: _this.receiveSlotManager,
|
|
1231
|
-
mediaRequestManagers: _this.mediaRequestManagers
|
|
1316
|
+
mediaRequestManagers: _this.mediaRequestManagers // @ts-ignore - Fix type
|
|
1317
|
+
|
|
1232
1318
|
}, {
|
|
1233
1319
|
parent: _this.webex
|
|
1234
1320
|
});
|
|
@@ -1239,6 +1325,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1239
1325
|
* @private
|
|
1240
1326
|
* @memberof Meeting
|
|
1241
1327
|
*/
|
|
1328
|
+
// @ts-ignore - Fix type
|
|
1242
1329
|
|
|
1243
1330
|
_this.roap = new _index.default({}, {
|
|
1244
1331
|
parent: _this.webex
|
|
@@ -1469,7 +1556,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1469
1556
|
_this.isSharing = false;
|
|
1470
1557
|
/**
|
|
1471
1558
|
* @instance
|
|
1472
|
-
* @type {
|
|
1559
|
+
* @type {string}
|
|
1473
1560
|
* @readonly
|
|
1474
1561
|
* @public
|
|
1475
1562
|
* @memberof Meeting
|
|
@@ -1488,7 +1575,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1488
1575
|
/**
|
|
1489
1576
|
* There is a pending floor requested by the user
|
|
1490
1577
|
* @instance
|
|
1491
|
-
* @type {
|
|
1578
|
+
* @type {boolean}
|
|
1492
1579
|
* @private
|
|
1493
1580
|
* @memberof Meeting
|
|
1494
1581
|
*/
|
|
@@ -1564,6 +1651,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1564
1651
|
* @private
|
|
1565
1652
|
* @memberof Meeting
|
|
1566
1653
|
*/
|
|
1654
|
+
// @ts-ignore - Fix type
|
|
1567
1655
|
|
|
1568
1656
|
_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
|
|
1569
1657
|
|
|
@@ -1592,6 +1680,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1592
1680
|
* @private
|
|
1593
1681
|
* @memberof Meeting
|
|
1594
1682
|
*/
|
|
1683
|
+
// @ts-ignore - Fix type
|
|
1595
1684
|
|
|
1596
1685
|
_this.hasWebsocketConnected = _this.webex.internal.mercury.connected;
|
|
1597
1686
|
/**
|
|
@@ -1764,6 +1853,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1764
1853
|
break;
|
|
1765
1854
|
}
|
|
1766
1855
|
|
|
1856
|
+
// @ts-ignore
|
|
1767
1857
|
_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
|
|
1768
1858
|
|
|
1769
1859
|
|
|
@@ -1792,6 +1882,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1792
1882
|
break;
|
|
1793
1883
|
}
|
|
1794
1884
|
|
|
1885
|
+
// @ts-ignore
|
|
1795
1886
|
_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, ")."));
|
|
1796
1887
|
|
|
1797
1888
|
this.meetingInfoFailureReason = this.requiredCaptcha ? _constants.MEETING_INFO_FAILURE_REASON.WRONG_CAPTCHA : _constants.MEETING_INFO_FAILURE_REASON.WRONG_PASSWORD;
|
|
@@ -1949,7 +2040,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1949
2040
|
function: 'setUpLocusInfoMediaInactiveListener'
|
|
1950
2041
|
}, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this4);
|
|
1951
2042
|
|
|
1952
|
-
_loggerProxy.default.logger.error("Meeting:index#setUpLocusInfoMediaInactiveListener --> Meeting disconnected due to inactivity: ".concat(res.reason));
|
|
2043
|
+
_loggerProxy.default.logger.error("Meeting:index#setUpLocusInfoMediaInactiveListener --> Meeting disconnected due to inactivity: ".concat(res.reason)); // @ts-ignore - config coming from registerPlugin
|
|
2044
|
+
|
|
1953
2045
|
|
|
1954
2046
|
if (_this4.config.reconnection.autoRejoin) {
|
|
1955
2047
|
_this4.reconnect();
|
|
@@ -2028,7 +2120,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2028
2120
|
if (options) {
|
|
2029
2121
|
var event = options.event,
|
|
2030
2122
|
trackingId = options.trackingId,
|
|
2031
|
-
|
|
2123
|
+
_mediaConnections = options.mediaConnections;
|
|
2032
2124
|
|
|
2033
2125
|
if (!event) {
|
|
2034
2126
|
_loggerProxy.default.logger.error('Meeting:index#getAnalyzerMetricsPrePayload --> Error [Call Analyzer Event', event || '', "]: invalid identifers or event type! ".concat(this.correlationId));
|
|
@@ -2041,6 +2133,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2041
2133
|
userId: this.userId,
|
|
2042
2134
|
deviceId: this.deviceUrl,
|
|
2043
2135
|
orgId: this.orgId,
|
|
2136
|
+
// @ts-ignore fix type
|
|
2044
2137
|
locusUrl: this.webex.internal.services.get('locus')
|
|
2045
2138
|
};
|
|
2046
2139
|
|
|
@@ -2051,10 +2144,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2051
2144
|
} // Check if mediaConnections has been passed in or else use this.mediaConnections
|
|
2052
2145
|
|
|
2053
2146
|
|
|
2054
|
-
if (
|
|
2055
|
-
identifiers.mediaAgentAlias =
|
|
2056
|
-
identifiers.mediaAgentGroupId =
|
|
2057
|
-
identifiers.mediaAgentCluster =
|
|
2147
|
+
if (_mediaConnections) {
|
|
2148
|
+
identifiers.mediaAgentAlias = _mediaConnections === null || _mediaConnections === void 0 ? void 0 : _mediaConnections[0].mediaAgentAlias;
|
|
2149
|
+
identifiers.mediaAgentGroupId = _mediaConnections === null || _mediaConnections === void 0 ? void 0 : _mediaConnections[0].mediaAgentGroupId;
|
|
2150
|
+
identifiers.mediaAgentCluster = _mediaConnections === null || _mediaConnections === void 0 ? void 0 : _mediaConnections[0].mediaAgentCluster;
|
|
2058
2151
|
} else if (this.mediaConnections) {
|
|
2059
2152
|
var _this$mediaConnection, _this$mediaConnection2, _this$mediaConnection3;
|
|
2060
2153
|
|
|
@@ -2158,7 +2251,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2158
2251
|
}, {
|
|
2159
2252
|
key: "sendCallAnalyzerMetrics",
|
|
2160
2253
|
value: function sendCallAnalyzerMetrics(options) {
|
|
2161
|
-
var payload = this.getAnalyzerMetricsPrePayload(_objectSpread(_objectSpread({}, (0, _pick2.default)(this.config.metrics, ['clientType', 'subClientType'])), options));
|
|
2254
|
+
var payload = this.getAnalyzerMetricsPrePayload(_objectSpread(_objectSpread({}, (0, _pick2.default)(this.config.metrics, ['clientType', 'subClientType'])), options)); // @ts-ignore - fix type
|
|
2255
|
+
|
|
2162
2256
|
return this.webex.internal.metrics.submitCallDiagnosticEvents(payload);
|
|
2163
2257
|
}
|
|
2164
2258
|
/**
|
|
@@ -2177,7 +2271,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2177
2271
|
value: function sendMediaQualityAnalyzerMetrics(options) {
|
|
2178
2272
|
var payload = this.getAnalyzerMetricsPrePayload(_objectSpread(_objectSpread({
|
|
2179
2273
|
type: _constants.MQA_STATS.CA_TYPE
|
|
2180
|
-
}, (0, _pick2.default)(this.config.metrics, ['clientType', 'subClientType'])), options));
|
|
2274
|
+
}, (0, _pick2.default)(this.config.metrics, ['clientType', 'subClientType'])), options)); // @ts-ignore
|
|
2275
|
+
|
|
2181
2276
|
return this.webex.internal.metrics.submitCallDiagnosticEvents(payload);
|
|
2182
2277
|
}
|
|
2183
2278
|
/**
|
|
@@ -2226,7 +2321,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2226
2321
|
|
|
2227
2322
|
|
|
2228
2323
|
if (_this7.floorGrantPending && payload.newSelf.state === _constants.MEETING_STATE.STATES.JOINED) {
|
|
2229
|
-
_this7.
|
|
2324
|
+
_this7.requestScreenShareFloor().then(function () {
|
|
2230
2325
|
_this7.floorGrantPending = false;
|
|
2231
2326
|
});
|
|
2232
2327
|
}
|
|
@@ -2409,6 +2504,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2409
2504
|
var caption = _ref7.caption,
|
|
2410
2505
|
transcribing = _ref7.transcribing;
|
|
2411
2506
|
|
|
2507
|
+
// @ts-ignore - config coming from registerPlugin
|
|
2412
2508
|
if (transcribing && _this11.transcription && _this11.config.receiveTranscription) {
|
|
2413
2509
|
_this11.receiveTranscription();
|
|
2414
2510
|
} else if (!transcribing && _this11.transcription) {
|
|
@@ -2509,7 +2605,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2509
2605
|
case _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE:
|
|
2510
2606
|
_triggerProxy.default.trigger(_this12, {
|
|
2511
2607
|
file: 'meeting/index',
|
|
2512
|
-
function: '
|
|
2608
|
+
function: 'localShare'
|
|
2513
2609
|
}, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_LOCAL, {
|
|
2514
2610
|
reason: _constants.SHARE_STOPPED_REASON.SELF_STOPPED
|
|
2515
2611
|
});
|
|
@@ -2827,7 +2923,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2827
2923
|
meeting: _this16
|
|
2828
2924
|
});
|
|
2829
2925
|
}
|
|
2830
|
-
});
|
|
2926
|
+
}); // @ts-ignore - check if MEDIA_INACTIVITY exists
|
|
2927
|
+
|
|
2831
2928
|
this.locusInfo.on(_constants.LOCUSINFO.EVENTS.MEDIA_INACTIVITY, function () {
|
|
2832
2929
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_MEDIA_INACTIVE, {
|
|
2833
2930
|
correlation_id: _this16.correlationId,
|
|
@@ -2895,6 +2992,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2895
2992
|
}).then(function () {
|
|
2896
2993
|
_loggerProxy.default.logger.info('Meeting:index#setUpLocusInfoMeetingListener --> REMOTE_RESPONSE. Attempting to leave meeting.');
|
|
2897
2994
|
}).catch(function (error) {
|
|
2995
|
+
// @ts-ignore
|
|
2898
2996
|
_loggerProxy.default.logger.error("Meeting:index#setUpLocusInfoMeetingListener --> REMOTE_RESPONSE. Issue with leave for meeting, meeting still in collection: ".concat(_this17.meeting, ", error: ").concat(error));
|
|
2899
2997
|
});
|
|
2900
2998
|
}
|
|
@@ -2925,6 +3023,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2925
3023
|
}).then(function () {
|
|
2926
3024
|
_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.');
|
|
2927
3025
|
}).catch(function (error) {
|
|
3026
|
+
// @ts-ignore
|
|
2928
3027
|
_loggerProxy.default.logger.error("Meeting:index#setUpLocusInfoMeetingListener --> DESTROY_MEETING. Issue with leave for meeting, meeting still in collection: ".concat(_this17.meeting, ", error: ").concat(error));
|
|
2929
3028
|
});
|
|
2930
3029
|
} else {
|
|
@@ -3169,8 +3268,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3169
3268
|
var _locusMeetingObject, _locusMeetingObject2, _locusMeetingObject3, _locusMeetingObject4, _locusMeetingObject6;
|
|
3170
3269
|
|
|
3171
3270
|
this.conversationUrl = ((_locusMeetingObject = locusMeetingObject) === null || _locusMeetingObject === void 0 ? void 0 : _locusMeetingObject.conversationUrl) || (webexMeetingInfo === null || webexMeetingInfo === void 0 ? void 0 : webexMeetingInfo.conversationUrl) || this.conversationUrl;
|
|
3172
|
-
this.locusUrl = ((_locusMeetingObject2 = locusMeetingObject) === null || _locusMeetingObject2 === void 0 ? void 0 : _locusMeetingObject2.url) || (webexMeetingInfo === null || webexMeetingInfo === void 0 ? void 0 : webexMeetingInfo.locusUrl) || this.locusUrl;
|
|
3173
|
-
|
|
3271
|
+
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
|
|
3272
|
+
|
|
3273
|
+
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
|
|
3174
3274
|
|
|
3175
3275
|
if (this.config.experimental.enableUnifiedMeetings) {
|
|
3176
3276
|
var _locusMeetingObject5;
|
|
@@ -3494,7 +3594,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3494
3594
|
}
|
|
3495
3595
|
/**
|
|
3496
3596
|
* Sets the local media stream on the class and emits an event to the developer
|
|
3497
|
-
* @param {
|
|
3597
|
+
* @param {MediaStream} localShare the local media stream
|
|
3498
3598
|
* @returns {undefined}
|
|
3499
3599
|
* @public
|
|
3500
3600
|
* @memberof Meeting
|
|
@@ -3638,6 +3738,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3638
3738
|
|
|
3639
3739
|
// Client will have a socket manager and handle reconnecting to mercury, when we reconnect to mercury
|
|
3640
3740
|
// if the meeting has active peer connections, it should try to reconnect.
|
|
3741
|
+
// @ts-ignore
|
|
3641
3742
|
this.webex.internal.mercury.on(_constants.ONLINE, function () {
|
|
3642
3743
|
_loggerProxy.default.logger.info('Meeting:index#setMercuryListener --> Web socket online'); // Only send restore event when it was disconnected before and for connected later
|
|
3643
3744
|
|
|
@@ -3654,7 +3755,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3654
3755
|
}
|
|
3655
3756
|
|
|
3656
3757
|
_this23.hasWebsocketConnected = true;
|
|
3657
|
-
});
|
|
3758
|
+
}); // @ts-ignore
|
|
3759
|
+
|
|
3658
3760
|
this.webex.internal.mercury.on(_constants.OFFLINE, function () {
|
|
3659
3761
|
_loggerProxy.default.logger.error('Meeting:index#setMercuryListener --> Web socket offline');
|
|
3660
3762
|
|
|
@@ -3706,9 +3808,10 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3706
3808
|
}, {
|
|
3707
3809
|
key: "unsetPeerConnections",
|
|
3708
3810
|
value: function unsetPeerConnections() {
|
|
3709
|
-
this.mediaProperties.unsetPeerConnection();
|
|
3811
|
+
this.mediaProperties.unsetPeerConnection(); // @ts-ignore - config coming from registerPlugin
|
|
3710
3812
|
|
|
3711
3813
|
if (this.config.reconnection.detection) {
|
|
3814
|
+
// @ts-ignore
|
|
3712
3815
|
this.webex.internal.mercury.off(_constants.ONLINE);
|
|
3713
3816
|
}
|
|
3714
3817
|
}
|
|
@@ -3739,7 +3842,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3739
3842
|
|
|
3740
3843
|
if (!_util.default.isUserInJoinedState(this.locusInfo)) {
|
|
3741
3844
|
return _promise.default.reject(new _webexErrors.UserNotJoinedError());
|
|
3742
|
-
}
|
|
3845
|
+
} // @ts-ignore
|
|
3846
|
+
|
|
3743
3847
|
|
|
3744
3848
|
if (!this.mediaId) {
|
|
3745
3849
|
// Happens when addMedia and mute are triggered in succession
|
|
@@ -3792,7 +3896,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3792
3896
|
|
|
3793
3897
|
if (!_util.default.isUserInJoinedState(this.locusInfo)) {
|
|
3794
3898
|
return _promise.default.reject(new _webexErrors.UserNotJoinedError());
|
|
3795
|
-
}
|
|
3899
|
+
} // @ts-ignore
|
|
3900
|
+
|
|
3796
3901
|
|
|
3797
3902
|
if (!this.mediaId) {
|
|
3798
3903
|
// Happens when addMedia and mute are triggered in succession
|
|
@@ -3845,7 +3950,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3845
3950
|
|
|
3846
3951
|
if (!_util.default.isUserInJoinedState(this.locusInfo)) {
|
|
3847
3952
|
return _promise.default.reject(new _webexErrors.UserNotJoinedError());
|
|
3848
|
-
}
|
|
3953
|
+
} // @ts-ignore
|
|
3954
|
+
|
|
3849
3955
|
|
|
3850
3956
|
if (!this.mediaId) {
|
|
3851
3957
|
// Happens when addMedia and mute are triggered in succession
|
|
@@ -3897,7 +4003,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
3897
4003
|
|
|
3898
4004
|
if (!_util.default.isUserInJoinedState(this.locusInfo)) {
|
|
3899
4005
|
return _promise.default.reject(new _webexErrors.UserNotJoinedError());
|
|
3900
|
-
}
|
|
4006
|
+
} // @ts-ignore
|
|
4007
|
+
|
|
3901
4008
|
|
|
3902
4009
|
if (!this.mediaId) {
|
|
3903
4010
|
// Happens when addMedia and mute are triggered in succession
|
|
@@ -4022,14 +4129,16 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4022
4129
|
|
|
4023
4130
|
if (!this.reconnectionManager || !this.reconnectionManager.reconnect) {
|
|
4024
4131
|
return _promise.default.reject(new _parameter.default('Cannot reconnect, ReconnectionManager must first be defined.'));
|
|
4025
|
-
}
|
|
4132
|
+
} // @ts-ignore - currentMediaStatus coming from SelfUtil
|
|
4133
|
+
|
|
4026
4134
|
|
|
4027
4135
|
if (!_util.default.isMediaEstablished(this.currentMediaStatus)) {
|
|
4028
4136
|
return _promise.default.reject(new _parameter.default('Cannot reconnect, Media has not established to reconnect'));
|
|
4029
4137
|
}
|
|
4030
4138
|
|
|
4031
4139
|
try {
|
|
4032
|
-
_loggerProxy.default.logger.info('Meeting:index#reconnect --> Validating reconnect ability.');
|
|
4140
|
+
_loggerProxy.default.logger.info('Meeting:index#reconnect --> Validating reconnect ability.'); // @ts-ignore
|
|
4141
|
+
|
|
4033
4142
|
|
|
4034
4143
|
this.reconnectionManager.validate();
|
|
4035
4144
|
} catch (error) {
|
|
@@ -4150,7 +4259,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4150
4259
|
_loggerProxy.default.logger.info("Meeting:index#receiveTranscription -->\n Attempting to generate a web socket url.");
|
|
4151
4260
|
|
|
4152
4261
|
_context2.prev = 1;
|
|
4153
|
-
datachannelUrl = this.locusInfo.info.datachannelUrl;
|
|
4262
|
+
datachannelUrl = this.locusInfo.info.datachannelUrl; // @ts-ignore - fix type
|
|
4263
|
+
|
|
4154
4264
|
_context2.next = 5;
|
|
4155
4265
|
return this.request({
|
|
4156
4266
|
method: _constants.HTTP_VERBS.POST,
|
|
@@ -4166,7 +4276,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4166
4276
|
|
|
4167
4277
|
_loggerProxy.default.logger.info("Meeting:index#receiveTranscription -->\n Generated web socket url succesfully.");
|
|
4168
4278
|
|
|
4169
|
-
this.transcription = new _transcription.default(webSocketUrl,
|
|
4279
|
+
this.transcription = new _transcription.default(webSocketUrl, // @ts-ignore - fix type
|
|
4280
|
+
this.webex.sessionId, this.members);
|
|
4170
4281
|
|
|
4171
4282
|
_loggerProxy.default.logger.info("Meeting:index#receiveTranscription -->\n opened LLM web socket connection successfully."); // retrieve and pass the payload
|
|
4172
4283
|
|
|
@@ -4177,7 +4288,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4177
4288
|
function: 'join'
|
|
4178
4289
|
}, _constants.EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION, payload);
|
|
4179
4290
|
});
|
|
4180
|
-
this.monitorTranscriptionSocketConnection();
|
|
4291
|
+
this.monitorTranscriptionSocketConnection(); // @ts-ignore - fix type
|
|
4292
|
+
|
|
4181
4293
|
this.transcription.connect(this.webex.credentials.supertoken.access_token);
|
|
4182
4294
|
_context2.next = 19;
|
|
4183
4295
|
break;
|
|
@@ -4258,6 +4370,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4258
4370
|
|
|
4259
4371
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4260
4372
|
|
|
4373
|
+
// @ts-ignore - fix type
|
|
4261
4374
|
if (!this.webex.meetings.registered) {
|
|
4262
4375
|
var errorMessage = 'Meeting:index#join --> Device not registered';
|
|
4263
4376
|
var error = new Error(errorMessage);
|
|
@@ -4643,7 +4756,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4643
4756
|
}
|
|
4644
4757
|
|
|
4645
4758
|
_context4.next = 4;
|
|
4646
|
-
return _this35.
|
|
4759
|
+
return _this35.releaseScreenShareFloor();
|
|
4647
4760
|
|
|
4648
4761
|
case 4:
|
|
4649
4762
|
mediaSettings = {
|
|
@@ -4670,6 +4783,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4670
4783
|
case 10:
|
|
4671
4784
|
_this35.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
|
|
4672
4785
|
// once the DX answers we establish connection back the media server with only receiveShare enabled
|
|
4786
|
+
// @ts-ignore - reconnectMedia does not accept any argument
|
|
4673
4787
|
|
|
4674
4788
|
|
|
4675
4789
|
_context4.next = 13;
|
|
@@ -4799,7 +4913,9 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4799
4913
|
var mc = _media.default.createMediaConnection(this.isMultistream, this.getMediaConnectionDebugId(), {
|
|
4800
4914
|
mediaProperties: this.mediaProperties,
|
|
4801
4915
|
remoteQualityLevel: this.mediaProperties.remoteQualityLevel,
|
|
4916
|
+
// @ts-ignore - config coming from registerPlugin
|
|
4802
4917
|
enableRtx: this.config.enableRtx,
|
|
4918
|
+
// @ts-ignore - config coming from registerPlugin
|
|
4803
4919
|
enableExtmap: this.config.enableExtmap,
|
|
4804
4920
|
turnServerInfo: turnServerInfo
|
|
4805
4921
|
});
|
|
@@ -4860,6 +4976,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4860
4976
|
if (_util.default.isUserInLeftState(this.locusInfo)) {
|
|
4861
4977
|
return _promise.default.reject(new _webexErrors.UserNotJoinedError());
|
|
4862
4978
|
} // If the user is unjoined or guest waiting in lobby dont allow the user to addMedia
|
|
4979
|
+
// @ts-ignore - isUserUnadmitted coming from SelfUtil
|
|
4863
4980
|
|
|
4864
4981
|
|
|
4865
4982
|
if (this.isUserUnadmitted && !this.wirelessShare) {
|
|
@@ -4931,10 +5048,13 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4931
5048
|
}).then(function () {
|
|
4932
5049
|
_this38.handleMediaLogging(_this38.mediaProperties);
|
|
4933
5050
|
|
|
4934
|
-
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " media connection created"));
|
|
5051
|
+
_loggerProxy.default.logger.info("".concat(LOG_HEADER, " media connection created")); // @ts-ignore - config coming from registerPlugin
|
|
5052
|
+
|
|
4935
5053
|
|
|
4936
5054
|
if (_this38.config.stats.enableStatsAnalyzer) {
|
|
4937
|
-
|
|
5055
|
+
// @ts-ignore - config coming from registerPlugin
|
|
5056
|
+
_this38.networkQualityMonitor = new _networkQualityMonitor.default(_this38.config.stats); // @ts-ignore - config coming from registerPlugin
|
|
5057
|
+
|
|
4938
5058
|
_this38.statsAnalyzer = new _statsAnalyzer.StatsAnalyzer(_this38.config.stats, _this38.networkQualityMonitor);
|
|
4939
5059
|
|
|
4940
5060
|
_this38.setupStatsAnalyzerEventHandlers();
|
|
@@ -4977,7 +5097,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
4977
5097
|
|
|
4978
5098
|
if (mediaSettings && mediaSettings.sendShare && localShare) {
|
|
4979
5099
|
if (_this38.state === _constants.MEETING_STATE.STATES.JOINED) {
|
|
4980
|
-
return _this38.
|
|
5100
|
+
return _this38.requestScreenShareFloor();
|
|
4981
5101
|
} // When the self state changes to JOINED then request the floor
|
|
4982
5102
|
|
|
4983
5103
|
|
|
@@ -5152,7 +5272,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5152
5272
|
// we actually get a OFFER from the server and a GLAR condition happens
|
|
5153
5273
|
if (startShare) {
|
|
5154
5274
|
// We are assuming that the clients are connected when doing an update
|
|
5155
|
-
return _this40.
|
|
5275
|
+
return _this40.requestScreenShareFloor();
|
|
5156
5276
|
}
|
|
5157
5277
|
|
|
5158
5278
|
return _promise.default.resolve();
|
|
@@ -5353,7 +5473,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5353
5473
|
|
|
5354
5474
|
if (!sendShare && previousShareStatus) {
|
|
5355
5475
|
// When user stops sharing
|
|
5356
|
-
return this.
|
|
5476
|
+
return this.releaseScreenShareFloor().then(function () {
|
|
5357
5477
|
return _promise.default.resolve(false);
|
|
5358
5478
|
});
|
|
5359
5479
|
}
|
|
@@ -5416,7 +5536,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5416
5536
|
}
|
|
5417
5537
|
}).then(function () {
|
|
5418
5538
|
if (startShare) {
|
|
5419
|
-
return _this43.
|
|
5539
|
+
return _this43.requestScreenShareFloor();
|
|
5420
5540
|
}
|
|
5421
5541
|
|
|
5422
5542
|
return _promise.default.resolve();
|
|
@@ -5425,7 +5545,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5425
5545
|
_this43.mediaProperties.mediaDirection.sendShare = sendShare;
|
|
5426
5546
|
_this43.mediaProperties.mediaDirection.receiveShare = receiveShare;
|
|
5427
5547
|
}).catch(function (error) {
|
|
5428
|
-
_this43.unsetLocalShareTrack(
|
|
5548
|
+
_this43.unsetLocalShareTrack();
|
|
5429
5549
|
|
|
5430
5550
|
throw error;
|
|
5431
5551
|
});
|
|
@@ -5445,6 +5565,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5445
5565
|
value: function preMedia(localStream, localShare, mediaSettings) {
|
|
5446
5566
|
// eslint-disable-next-line no-warning-comments
|
|
5447
5567
|
// TODO wire into default config. There's currently an issue with the stateless plugin or how we register
|
|
5568
|
+
// @ts-ignore - config coming from registerPlugin
|
|
5448
5569
|
this.mediaProperties.setMediaDirection((0, _assign.default)(this.config.mediaSettings, mediaSettings)); // add a setup a function move the create and setup media in future
|
|
5449
5570
|
// TODO: delete old audio and video if stale
|
|
5450
5571
|
|
|
@@ -5690,7 +5811,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5690
5811
|
}).catch(function (error) {
|
|
5691
5812
|
_loggerProxy.default.logger.error('Meeting:index#stopWhiteboardShare --> Error ', error);
|
|
5692
5813
|
|
|
5693
|
-
_metrics.default.sendBehavioralMetric(
|
|
5814
|
+
_metrics.default.sendBehavioralMetric( // @ts-ignore - check if STOP_WHITEBOARD_SHARE_FAILURE exists
|
|
5815
|
+
_constants2.default.STOP_WHITEBOARD_SHARE_FAILURE, {
|
|
5694
5816
|
correlation_id: _this48.correlationId,
|
|
5695
5817
|
locus_id: _this48.locusUrl.split('/').pop(),
|
|
5696
5818
|
reason: error.message,
|
|
@@ -5707,15 +5829,15 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5707
5829
|
return _promise.default.reject(new _parameter.default('Cannot stop share without whiteboard.'));
|
|
5708
5830
|
}
|
|
5709
5831
|
/**
|
|
5710
|
-
*
|
|
5832
|
+
* Sends a request to Locus to obtain the screen share floor
|
|
5711
5833
|
* @returns {Promise} see #meetingRequest.changeMeetingFloor
|
|
5712
5834
|
* @private
|
|
5713
5835
|
* @memberof Meeting
|
|
5714
5836
|
*/
|
|
5715
5837
|
|
|
5716
5838
|
}, {
|
|
5717
|
-
key: "
|
|
5718
|
-
value: function
|
|
5839
|
+
key: "requestScreenShareFloor",
|
|
5840
|
+
value: function requestScreenShareFloor() {
|
|
5719
5841
|
var _this49 = this;
|
|
5720
5842
|
|
|
5721
5843
|
var content = this.locusInfo.mediaShares.find(function (element) {
|
|
@@ -5772,15 +5894,15 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5772
5894
|
}, options));
|
|
5773
5895
|
}
|
|
5774
5896
|
/**
|
|
5775
|
-
*
|
|
5897
|
+
* Sends a request to Locus to release the screen share floor.
|
|
5776
5898
|
* @returns {Promise} see #meetingRequest.changeMeetingFloor
|
|
5777
5899
|
* @private
|
|
5778
5900
|
* @memberof Meeting
|
|
5779
5901
|
*/
|
|
5780
5902
|
|
|
5781
5903
|
}, {
|
|
5782
|
-
key: "
|
|
5783
|
-
value: function
|
|
5904
|
+
key: "releaseScreenShareFloor",
|
|
5905
|
+
value: function releaseScreenShareFloor() {
|
|
5784
5906
|
var _this50 = this;
|
|
5785
5907
|
|
|
5786
5908
|
var content = this.locusInfo.mediaShares.find(function (element) {
|
|
@@ -5808,7 +5930,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5808
5930
|
uri: content.url,
|
|
5809
5931
|
resourceUrl: this.resourceUrl
|
|
5810
5932
|
}).catch(function (error) {
|
|
5811
|
-
_loggerProxy.default.logger.error('Meeting:index#
|
|
5933
|
+
_loggerProxy.default.logger.error('Meeting:index#releaseScreenShareFloor --> Error ', error);
|
|
5812
5934
|
|
|
5813
5935
|
_metrics.default.sendBehavioralMetric(_constants2.default.STOP_FLOOR_REQUEST_FAILURE, {
|
|
5814
5936
|
correlation_id: _this50.correlationId,
|
|
@@ -6222,7 +6344,8 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6222
6344
|
var shareConstraints = _objectSpread({
|
|
6223
6345
|
sendShare: true,
|
|
6224
6346
|
sendAudio: false
|
|
6225
|
-
}, options);
|
|
6347
|
+
}, options); // @ts-ignore - config coming from registerPlugin
|
|
6348
|
+
|
|
6226
6349
|
|
|
6227
6350
|
return _media.default.getDisplayMedia(shareConstraints, this.config).then(function (shareStream) {
|
|
6228
6351
|
return _this54.updateShare({
|