@webex/plugin-meetings 3.0.0-beta.2 → 3.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UPGRADING.md +9 -9
- package/browsers.js +19 -24
- package/dist/breakouts/breakout.js +116 -0
- package/dist/breakouts/breakout.js.map +1 -0
- package/dist/breakouts/collection.js +23 -0
- package/dist/breakouts/collection.js.map +1 -0
- package/dist/breakouts/index.js +226 -0
- package/dist/breakouts/index.js.map +1 -0
- package/dist/common/browser-detection.js +1 -20
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js +5 -20
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.js +0 -7
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.js +10 -24
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js +11 -24
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-meeting.js +12 -25
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/media.js +10 -24
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/parameter.js +5 -33
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js +10 -24
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js +9 -23
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/reconnection-in-progress.js +0 -17
- package/dist/common/errors/reconnection-in-progress.js.map +1 -1
- package/dist/common/errors/reconnection.js +10 -24
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js +10 -24
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.js +6 -41
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.js +5 -25
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.js +0 -22
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.js +0 -23
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.js +0 -12
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.js +0 -15
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.js +0 -4
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.js +1 -8
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.js +37 -60
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.js +4 -14
- package/dist/common/queue.js.map +1 -1
- package/dist/config.js +6 -6
- package/dist/config.js.map +1 -1
- package/dist/constants.js +88 -46
- package/dist/constants.js.map +1 -1
- package/dist/index.js +4 -18
- package/dist/index.js.map +1 -1
- package/dist/locus-info/controlsUtils.js +12 -29
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.js +3 -26
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.js +0 -15
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.js +4 -12
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.js +184 -190
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +3 -37
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js +12 -38
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.js +92 -118
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js +34 -91
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.js +67 -111
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +80 -114
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js +2 -9
- package/dist/media/util.js.map +1 -1
- package/dist/mediaQualityMetrics/config.js +10 -12
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/meeting/effectsState.js +125 -190
- package/dist/meeting/effectsState.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +5 -14
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +1692 -1925
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/muteState.js +36 -77
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +224 -230
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js +7 -0
- package/dist/meeting/request.type.js.map +1 -0
- package/dist/meeting/state.js +21 -31
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/util.js +43 -215
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/collection.js +6 -25
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.js +14 -32
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +193 -268
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js +3 -15
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js +98 -183
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js +137 -228
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.js +5 -20
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.js +490 -560
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/request.js +24 -41
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +99 -155
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +78 -86
- package/dist/member/index.js.map +1 -1
- package/dist/member/util.js +31 -68
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.js +3 -12
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.js +93 -200
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +16 -39
- package/dist/members/request.js.map +1 -1
- package/dist/members/util.js +9 -38
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/config.js +0 -2
- package/dist/metrics/config.js.map +1 -1
- package/dist/metrics/constants.js +1 -2
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +55 -135
- package/dist/metrics/index.js.map +1 -1
- package/dist/multistream/mediaRequestManager.js +57 -32
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/multistreamMedia.js +15 -21
- package/dist/multistream/multistreamMedia.js.map +1 -1
- package/dist/multistream/receiveSlot.js +10 -50
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/receiveSlotManager.js +45 -82
- package/dist/multistream/receiveSlotManager.js.map +1 -1
- package/dist/multistream/remoteMedia.js +18 -58
- package/dist/multistream/remoteMedia.js.map +1 -1
- package/dist/multistream/remoteMediaGroup.js +6 -40
- package/dist/multistream/remoteMediaGroup.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +362 -416
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/networkQualityMonitor/index.js +36 -57
- package/dist/networkQualityMonitor/index.js.map +1 -1
- package/dist/personal-meeting-room/index.js +21 -45
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js +1 -31
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js +0 -13
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/index.js +138 -182
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.js +3 -18
- package/dist/reachability/request.js.map +1 -1
- package/dist/reactions/constants.js +13 -0
- package/dist/reactions/constants.js.map +1 -0
- package/dist/reactions/reactions.js +109 -0
- package/dist/reactions/reactions.js.map +1 -0
- package/dist/reactions/reactions.type.js +36 -0
- package/dist/reactions/reactions.type.js.map +1 -0
- package/dist/reconnection-manager/index.js +322 -455
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/enums.js +17 -0
- package/dist/recording-controller/enums.js.map +1 -0
- package/dist/recording-controller/index.js +343 -0
- package/dist/recording-controller/index.js.map +1 -0
- package/dist/recording-controller/util.js +63 -0
- package/dist/recording-controller/util.js.map +1 -0
- package/dist/roap/index.js +39 -64
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js +94 -113
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/turnDiscovery.js +85 -94
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/statsAnalyzer/global.js +0 -2
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/statsAnalyzer/index.js +85 -175
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.js +72 -53
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/transcription/index.js +22 -47
- package/dist/transcription/index.js.map +1 -1
- package/internal-README.md +7 -6
- package/package.json +25 -20
- package/src/breakouts/README.md +190 -0
- package/src/breakouts/breakout.ts +110 -0
- package/src/breakouts/collection.ts +19 -0
- package/src/breakouts/index.ts +225 -0
- package/src/common/{browser-detection.js → browser-detection.ts} +9 -6
- package/src/common/collection.ts +9 -7
- package/src/common/{config.js → config.ts} +1 -1
- package/src/common/errors/{captcha-error.js → captcha-error.ts} +11 -7
- package/src/common/errors/{intent-to-join.js → intent-to-join.ts} +12 -7
- package/src/common/errors/{join-meeting.js → join-meeting.ts} +17 -8
- package/src/common/errors/{media.js → media.ts} +11 -7
- package/src/common/errors/parameter.ts +11 -7
- package/src/common/errors/{password-error.js → password-error.ts} +11 -7
- package/src/common/errors/{permission.js → permission.ts} +10 -6
- package/src/common/errors/{reconnection-in-progress.js → reconnection-in-progress.ts} +0 -0
- package/src/common/errors/{reconnection.js → reconnection.ts} +11 -7
- package/src/common/errors/{stats.js → stats.ts} +11 -7
- package/src/common/errors/{webex-errors.js → webex-errors.ts} +8 -7
- package/src/common/errors/{webex-meetings-error.js → webex-meetings-error.ts} +4 -2
- package/src/common/events/{events-scope.js → events-scope.ts} +6 -2
- package/src/common/events/{events.js → events.ts} +5 -1
- package/src/common/events/{trigger-proxy.js → trigger-proxy.ts} +9 -5
- package/src/common/events/{util.js → util.ts} +2 -3
- package/src/common/logs/{logger-config.js → logger-config.ts} +1 -2
- package/src/common/logs/logger-proxy.ts +44 -0
- package/src/common/logs/{request.js → request.ts} +22 -9
- package/src/common/queue.ts +1 -2
- package/src/{config.js → config.ts} +17 -12
- package/src/constants.ts +40 -1
- package/src/index.js +2 -1
- package/src/locus-info/controlsUtils.ts +114 -0
- package/src/locus-info/{embeddedAppsUtils.js → embeddedAppsUtils.ts} +5 -6
- package/src/locus-info/{fullState.js → fullState.ts} +16 -12
- package/src/locus-info/{hostUtils.js → hostUtils.ts} +9 -8
- package/src/locus-info/{index.js → index.ts} +148 -64
- package/src/locus-info/{infoUtils.js → infoUtils.ts} +19 -8
- package/src/locus-info/{mediaSharesUtils.js → mediaSharesUtils.ts} +17 -17
- package/src/locus-info/{parser.js → parser.ts} +67 -79
- package/src/locus-info/{selfUtils.js → selfUtils.ts} +123 -68
- package/src/media/{index.js → index.ts} +181 -131
- package/src/media/{properties.js → properties.ts} +47 -28
- package/src/media/{util.js → util.ts} +2 -2
- package/src/mediaQualityMetrics/{config.js → config.ts} +46 -46
- package/src/meeting/{effectsState.js → effectsState.ts} +47 -41
- package/src/meeting/in-meeting-actions.ts +15 -3
- package/src/meeting/{index.js → index.ts} +2263 -1427
- package/src/meeting/{muteState.js → muteState.ts} +78 -42
- package/src/meeting/{request.js → request.ts} +292 -142
- package/src/meeting/request.type.ts +13 -0
- package/src/meeting/{state.js → state.ts} +50 -35
- package/src/meeting/{util.js → util.ts} +112 -115
- package/src/meeting-info/{collection.js → collection.ts} +6 -2
- package/src/meeting-info/{index.js → index.ts} +42 -36
- package/src/meeting-info/meeting-info-v2.ts +273 -0
- package/src/meeting-info/{request.js → request.ts} +14 -4
- package/src/meeting-info/{util.js → util.ts} +60 -51
- package/src/meeting-info/{utilv2.js → utilv2.ts} +65 -58
- package/src/meetings/{collection.js → collection.ts} +6 -3
- package/src/meetings/index.ts +1159 -0
- package/src/meetings/{request.js → request.ts} +32 -25
- package/src/meetings/{util.js → util.ts} +34 -32
- package/src/member/{index.js → index.ts} +102 -56
- package/src/member/{util.js → util.ts} +52 -25
- package/src/members/{collection.js → collection.ts} +2 -2
- package/src/members/{index.js → index.ts} +219 -142
- package/src/members/{request.js → request.ts} +60 -16
- package/src/members/{util.js → util.ts} +50 -48
- package/src/metrics/{config.js → config.ts} +254 -83
- package/src/metrics/{constants.js → constants.ts} +0 -2
- package/src/metrics/{index.js → index.ts} +106 -74
- package/src/multistream/mediaRequestManager.ts +81 -15
- package/src/multistream/multistreamMedia.ts +5 -0
- package/src/multistream/receiveSlot.ts +18 -12
- package/src/multistream/receiveSlotManager.ts +23 -21
- package/src/multistream/remoteMedia.ts +15 -5
- package/src/multistream/remoteMediaGroup.ts +4 -3
- package/src/multistream/remoteMediaManager.ts +153 -37
- package/src/networkQualityMonitor/{index.js → index.ts} +37 -25
- package/src/personal-meeting-room/{index.js → index.ts} +28 -19
- package/src/personal-meeting-room/{request.js → request.ts} +13 -4
- package/src/personal-meeting-room/{util.js → util.ts} +4 -4
- package/src/reachability/{index.js → index.ts} +99 -83
- package/src/reachability/request.ts +39 -33
- package/src/reactions/constants.ts +4 -0
- package/src/reactions/reactions.ts +104 -0
- package/src/reactions/reactions.type.ts +62 -0
- package/src/reconnection-manager/{index.js → index.ts} +195 -102
- package/src/recording-controller/enums.ts +8 -0
- package/src/recording-controller/index.ts +315 -0
- package/src/recording-controller/util.ts +58 -0
- package/src/roap/{index.js → index.ts} +73 -56
- package/src/roap/request.ts +157 -0
- package/src/roap/turnDiscovery.ts +77 -37
- package/src/statsAnalyzer/{global.js → global.ts} +30 -33
- package/src/statsAnalyzer/{index.js → index.ts} +468 -192
- package/src/statsAnalyzer/mqaUtil.ts +290 -0
- package/src/transcription/{index.js → index.ts} +46 -39
- package/test/integration/spec/journey.js +664 -463
- package/test/integration/spec/space-meeting.js +320 -206
- package/test/integration/spec/transcription.js +7 -8
- package/test/unit/spec/breakouts/breakout.ts +119 -0
- package/test/unit/spec/breakouts/collection.ts +15 -0
- package/test/unit/spec/breakouts/index.ts +293 -0
- package/test/unit/spec/common/browser-detection.js +9 -28
- package/test/unit/spec/fixture/locus.js +92 -90
- package/test/unit/spec/locus-info/controlsUtils.js +25 -5
- package/test/unit/spec/locus-info/embeddedAppsUtils.js +8 -6
- package/test/unit/spec/locus-info/index.js +104 -2
- package/test/unit/spec/locus-info/infoUtils.js +41 -32
- package/test/unit/spec/locus-info/lib/BasicSeqCmp.json +88 -430
- package/test/unit/spec/locus-info/lib/SeqCmp.json +513 -685
- package/test/unit/spec/locus-info/parser.js +3 -9
- package/test/unit/spec/locus-info/selfConstant.js +97 -103
- package/test/unit/spec/locus-info/selfUtils.js +105 -12
- package/test/unit/spec/media/index.ts +31 -47
- package/test/unit/spec/media/properties.ts +9 -9
- package/test/unit/spec/meeting/effectsState.js +39 -45
- package/test/unit/spec/meeting/in-meeting-actions.ts +5 -2
- package/test/unit/spec/meeting/index.js +2017 -742
- package/test/unit/spec/meeting/muteState.js +42 -33
- package/test/unit/spec/meeting/request.js +115 -44
- package/test/unit/spec/meeting/utils.js +104 -171
- package/test/unit/spec/meeting-info/meetinginfov2.js +100 -73
- package/test/unit/spec/meeting-info/request.js +7 -9
- package/test/unit/spec/meeting-info/util.js +11 -12
- package/test/unit/spec/meeting-info/utilv2.js +110 -74
- package/test/unit/spec/meetings/collection.js +1 -1
- package/test/unit/spec/meetings/index.js +439 -257
- package/test/unit/spec/meetings/utils.js +14 -12
- package/test/unit/spec/member/index.js +0 -1
- package/test/unit/spec/member/util.js +31 -7
- package/test/unit/spec/members/index.js +104 -54
- package/test/unit/spec/members/request.js +29 -20
- package/test/unit/spec/members/utils.js +8 -5
- package/test/unit/spec/metrics/index.js +16 -21
- package/test/unit/spec/multistream/mediaRequestManager.ts +316 -50
- package/test/unit/spec/multistream/receiveSlot.ts +6 -6
- package/test/unit/spec/multistream/receiveSlotManager.ts +13 -13
- package/test/unit/spec/multistream/remoteMedia.ts +10 -2
- package/test/unit/spec/multistream/remoteMediaGroup.ts +5 -5
- package/test/unit/spec/multistream/remoteMediaManager.ts +412 -65
- package/test/unit/spec/networkQualityMonitor/index.js +21 -15
- package/test/unit/spec/personal-meeting-room/personal-meeting-room.js +2 -7
- package/test/unit/spec/reachability/index.ts +58 -26
- package/test/unit/spec/reconnection-manager/index.js +102 -9
- package/test/unit/spec/recording-controller/index.js +231 -0
- package/test/unit/spec/recording-controller/util.js +102 -0
- package/test/unit/spec/roap/index.ts +2 -1
- package/test/unit/spec/roap/request.ts +114 -0
- package/test/unit/spec/roap/turnDiscovery.ts +64 -45
- package/test/unit/spec/stats-analyzer/index.js +27 -22
- package/test/utils/cmr.js +44 -42
- package/test/utils/testUtils.js +83 -74
- package/test/utils/webex-config.js +18 -18
- package/test/utils/webex-test-users.js +54 -50
- package/tsconfig.json +6 -0
- package/dist/media/internal-media-core-wrapper.js +0 -22
- package/dist/media/internal-media-core-wrapper.js.map +0 -1
- package/dist/peer-connection-manager/util.js +0 -124
- package/dist/peer-connection-manager/util.js.map +0 -1
- package/src/common/logs/logger-proxy.js +0 -33
- package/src/locus-info/controlsUtils.js +0 -102
- package/src/media/internal-media-core-wrapper.ts +0 -9
- package/src/meeting-info/meeting-info-v2.js +0 -255
- package/src/meetings/index.js +0 -1015
- package/src/peer-connection-manager/util.ts +0 -117
- package/src/roap/request.js +0 -127
- package/src/statsAnalyzer/mqaUtil.js +0 -173
- package/test/unit/spec/peerconnection-manager/utils.test-fixtures.ts +0 -389
package/dist/locus-info/index.js
CHANGED
|
@@ -1,61 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Reflect$construct = require("@babel/runtime-corejs2/core-js/reflect/construct");
|
|
4
|
-
|
|
5
4
|
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
6
|
-
|
|
7
5
|
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
8
|
-
|
|
9
6
|
_Object$defineProperty(exports, "__esModule", {
|
|
10
7
|
value: true
|
|
11
8
|
});
|
|
12
|
-
|
|
13
9
|
exports.default = void 0;
|
|
14
|
-
|
|
15
10
|
var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
|
|
16
|
-
|
|
17
11
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
18
|
-
|
|
19
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
|
20
|
-
|
|
13
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/assertThisInitialized"));
|
|
21
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
|
|
22
|
-
|
|
23
15
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
|
|
24
|
-
|
|
25
16
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf"));
|
|
26
|
-
|
|
17
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
27
18
|
var _isEqual2 = _interopRequireDefault(require("lodash/isEqual"));
|
|
28
|
-
|
|
29
19
|
var _loggerProxy = _interopRequireDefault(require("../common/logs/logger-proxy"));
|
|
30
|
-
|
|
31
20
|
var _eventsScope = _interopRequireDefault(require("../common/events/events-scope"));
|
|
32
|
-
|
|
33
21
|
var _constants = require("../constants");
|
|
34
|
-
|
|
35
22
|
var _metrics = _interopRequireDefault(require("../metrics"));
|
|
36
|
-
|
|
37
23
|
var _config = require("../metrics/config");
|
|
38
|
-
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
var
|
|
46
|
-
|
|
47
|
-
var _controlsUtils = _interopRequireDefault(require("../locus-info/controlsUtils"));
|
|
48
|
-
|
|
49
|
-
var _embeddedAppsUtils = _interopRequireDefault(require("../locus-info/embeddedAppsUtils"));
|
|
50
|
-
|
|
51
|
-
var _mediaSharesUtils = _interopRequireDefault(require("../locus-info/mediaSharesUtils"));
|
|
52
|
-
|
|
53
|
-
var _parser = _interopRequireDefault(require("../locus-info/parser"));
|
|
54
|
-
|
|
24
|
+
var _infoUtils = _interopRequireDefault(require("./infoUtils"));
|
|
25
|
+
var _fullState = _interopRequireDefault(require("./fullState"));
|
|
26
|
+
var _selfUtils = _interopRequireDefault(require("./selfUtils"));
|
|
27
|
+
var _hostUtils = _interopRequireDefault(require("./hostUtils"));
|
|
28
|
+
var _controlsUtils = _interopRequireDefault(require("./controlsUtils"));
|
|
29
|
+
var _embeddedAppsUtils = _interopRequireDefault(require("./embeddedAppsUtils"));
|
|
30
|
+
var _mediaSharesUtils = _interopRequireDefault(require("./mediaSharesUtils"));
|
|
31
|
+
var _parser = _interopRequireDefault(require("./parser"));
|
|
55
32
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
56
|
-
|
|
57
33
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
58
|
-
|
|
59
34
|
/**
|
|
60
35
|
* @description LocusInfo extends ChildEmitter to convert locusInfo info a private emitter to parent object
|
|
61
36
|
* @export
|
|
@@ -64,14 +39,39 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_R
|
|
|
64
39
|
*/
|
|
65
40
|
var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
66
41
|
(0, _inherits2.default)(LocusInfo, _EventsScope);
|
|
67
|
-
|
|
68
42
|
var _super = _createSuper(LocusInfo);
|
|
69
|
-
|
|
70
43
|
function LocusInfo(updateMeeting, webex, meetingId) {
|
|
71
44
|
var _this;
|
|
72
|
-
|
|
73
45
|
(0, _classCallCheck2.default)(this, LocusInfo);
|
|
74
46
|
_this = _super.call(this);
|
|
47
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "compareAndUpdateFlags", void 0);
|
|
48
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "emitChange", void 0);
|
|
49
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "locusParser", void 0);
|
|
50
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingId", void 0);
|
|
51
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "parsedLocus", void 0);
|
|
52
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "updateMeeting", void 0);
|
|
53
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "webex", void 0);
|
|
54
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "aclUrl", void 0);
|
|
55
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "baseSequence", void 0);
|
|
56
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "created", void 0);
|
|
57
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "deltaParticipants", void 0);
|
|
58
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "identities", void 0);
|
|
59
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "membership", void 0);
|
|
60
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "participants", void 0);
|
|
61
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "participantsUrl", void 0);
|
|
62
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "replaces", void 0);
|
|
63
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "scheduledMeeting", void 0);
|
|
64
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "sequence", void 0);
|
|
65
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "controls", void 0);
|
|
66
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "conversationUrl", void 0);
|
|
67
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "embeddedApps", void 0);
|
|
68
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "fullState", void 0);
|
|
69
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "host", void 0);
|
|
70
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "info", void 0);
|
|
71
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mediaShares", void 0);
|
|
72
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "replace", void 0);
|
|
73
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "url", void 0);
|
|
74
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "services", void 0);
|
|
75
75
|
_this.parsedLocus = {
|
|
76
76
|
states: []
|
|
77
77
|
};
|
|
@@ -83,6 +83,7 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
83
83
|
_this.locusParser = new _parser.default();
|
|
84
84
|
return _this;
|
|
85
85
|
}
|
|
86
|
+
|
|
86
87
|
/**
|
|
87
88
|
* Apply locus delta data to meeting
|
|
88
89
|
* @param {string} action Locus delta action
|
|
@@ -90,45 +91,38 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
90
91
|
* @param {Meeting} meeting
|
|
91
92
|
* @returns {undefined}
|
|
92
93
|
*/
|
|
93
|
-
|
|
94
|
-
|
|
95
94
|
(0, _createClass2.default)(LocusInfo, [{
|
|
96
95
|
key: "applyLocusDeltaData",
|
|
97
96
|
value: function applyLocusDeltaData(action, locus, meeting) {
|
|
98
97
|
var _this2 = this;
|
|
99
|
-
|
|
100
98
|
var _LocusDeltaParser$loc = _parser.default.loci,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
DESYNC = _LocusDeltaParser$loc.DESYNC,
|
|
100
|
+
USE_CURRENT = _LocusDeltaParser$loc.USE_CURRENT,
|
|
101
|
+
USE_INCOMING = _LocusDeltaParser$loc.USE_INCOMING;
|
|
105
102
|
switch (action) {
|
|
106
103
|
case USE_INCOMING:
|
|
107
104
|
meeting.locusInfo.onDeltaLocus(locus);
|
|
108
105
|
break;
|
|
109
|
-
|
|
110
106
|
case USE_CURRENT:
|
|
111
107
|
meeting.locusDesync = false;
|
|
112
108
|
meeting.needToGetFullLocus = false;
|
|
113
109
|
break;
|
|
114
|
-
|
|
115
110
|
case DESYNC:
|
|
116
111
|
meeting.meetingRequest.getFullLocus({
|
|
117
112
|
desync: true,
|
|
118
113
|
locusUrl: meeting.locusUrl
|
|
119
114
|
}).then(function (res) {
|
|
120
|
-
meeting.locusInfo.onFullLocus(res.body);
|
|
115
|
+
meeting.locusInfo.onFullLocus(res.body);
|
|
116
|
+
// Notify parser to resume processing delta events
|
|
121
117
|
// now that we have full locus from DESYNC.
|
|
122
|
-
|
|
123
118
|
_this2.locusParser.resume();
|
|
124
119
|
});
|
|
125
120
|
break;
|
|
126
|
-
|
|
127
121
|
default:
|
|
128
122
|
_loggerProxy.default.logger.info("Locus-info:index#applyLocusDeltaData --> Unknown locus delta action: ".concat(action));
|
|
129
|
-
|
|
130
123
|
}
|
|
131
124
|
}
|
|
125
|
+
|
|
132
126
|
/**
|
|
133
127
|
* Adds locus delta to parser's queue
|
|
134
128
|
* and registers a function handler
|
|
@@ -137,12 +131,10 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
137
131
|
* @param {Meeting} meeting
|
|
138
132
|
* @returns {undefined}
|
|
139
133
|
*/
|
|
140
|
-
|
|
141
134
|
}, {
|
|
142
135
|
key: "handleLocusDelta",
|
|
143
136
|
value: function handleLocusDelta(locus, meeting) {
|
|
144
137
|
var _this3 = this;
|
|
145
|
-
|
|
146
138
|
// register a function to process delta actions
|
|
147
139
|
if (!this.locusParser.onDeltaAction) {
|
|
148
140
|
// delta action, along with associated loci
|
|
@@ -150,20 +142,20 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
150
142
|
this.locusParser.onDeltaAction = function (action, parsedLoci) {
|
|
151
143
|
_this3.applyLocusDeltaData(action, parsedLoci, meeting);
|
|
152
144
|
};
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
|
|
145
|
+
}
|
|
146
|
+
// queue delta event with parser
|
|
156
147
|
this.locusParser.onDeltaEvent(locus);
|
|
157
148
|
}
|
|
149
|
+
|
|
158
150
|
/**
|
|
159
151
|
* @param {Locus} locus
|
|
160
152
|
* @returns {undefined}
|
|
161
153
|
* @memberof LocusInfo
|
|
162
154
|
*/
|
|
163
|
-
|
|
164
155
|
}, {
|
|
165
156
|
key: "init",
|
|
166
157
|
value: function init() {
|
|
158
|
+
var _locus$links;
|
|
167
159
|
var locus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
168
160
|
this.created = locus.created || null;
|
|
169
161
|
this.scheduledMeeting = locus.meeting || null;
|
|
@@ -175,6 +167,7 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
175
167
|
this.membership = locus.membership || null;
|
|
176
168
|
this.identities = locus.identities || null;
|
|
177
169
|
this.participants = locus.participants || null;
|
|
170
|
+
|
|
178
171
|
/**
|
|
179
172
|
* Stores the delta values for a changed participant.
|
|
180
173
|
*
|
|
@@ -192,50 +185,51 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
192
185
|
* @private
|
|
193
186
|
* @member LocusInfo
|
|
194
187
|
*/
|
|
188
|
+
this.deltaParticipants = [];
|
|
195
189
|
|
|
196
|
-
|
|
190
|
+
// above section only updates the locusInfo object
|
|
197
191
|
// The below section makes sure it updates the locusInfo as well as updates the meeting object
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
192
|
+
this.updateParticipants(locus.participants);
|
|
193
|
+
// For 1:1 space meeting the conversation Url does not exist in locus.conversation
|
|
201
194
|
this.updateConversationUrl(locus.conversationUrl, locus.info);
|
|
202
195
|
this.updateControls(locus.controls);
|
|
203
196
|
this.updateLocusUrl(locus.url);
|
|
204
197
|
this.updateFullState(locus.fullState);
|
|
205
198
|
this.updateMeetingInfo(locus.info);
|
|
206
|
-
this.updateEmbeddedApps(locus.embeddedApps);
|
|
207
|
-
|
|
199
|
+
this.updateEmbeddedApps(locus.embeddedApps);
|
|
200
|
+
// self and participants generate sipUrl for 1:1 meeting
|
|
208
201
|
this.updateSelf(locus.self, locus.participants);
|
|
209
202
|
this.updateHostInfo(locus.host);
|
|
210
203
|
this.updateMediaShares(locus.mediaShares);
|
|
204
|
+
this.updateServices((_locus$links = locus.links) === null || _locus$links === void 0 ? void 0 : _locus$links.services);
|
|
211
205
|
}
|
|
206
|
+
|
|
212
207
|
/**
|
|
213
208
|
* @param {Object} locus
|
|
214
209
|
* @returns {undefined}
|
|
215
210
|
* @memberof LocusInfo
|
|
216
211
|
*/
|
|
217
|
-
|
|
218
212
|
}, {
|
|
219
213
|
key: "initialSetup",
|
|
220
214
|
value: function initialSetup(locus) {
|
|
221
|
-
this.onFullLocus(locus);
|
|
215
|
+
this.onFullLocus(locus);
|
|
222
216
|
|
|
217
|
+
// Change it to true after it receives it first locus object
|
|
223
218
|
this.emitChange = true;
|
|
224
219
|
}
|
|
220
|
+
|
|
225
221
|
/**
|
|
226
222
|
* @param {Meeting} meeting
|
|
227
223
|
* @param {Object} data
|
|
228
224
|
* @returns {undefined}
|
|
229
225
|
* @memberof LocusInfo
|
|
230
226
|
*/
|
|
231
|
-
|
|
232
227
|
}, {
|
|
233
228
|
key: "parse",
|
|
234
229
|
value: function parse(meeting, data) {
|
|
230
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
235
231
|
var eventType = data.eventType;
|
|
236
|
-
|
|
237
232
|
_loggerProxy.default.logger.info("Locus-info:index#parse --> received locus data: ".concat(eventType));
|
|
238
|
-
|
|
239
233
|
switch (eventType) {
|
|
240
234
|
case _constants.LOCUSEVENT.PARTICIPANT_JOIN:
|
|
241
235
|
case _constants.LOCUSEVENT.PARTICIPANT_LEFT:
|
|
@@ -253,17 +247,16 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
253
247
|
case _constants.LOCUSEVENT.FLOOR_RELEASED:
|
|
254
248
|
this.onFullLocus(data.locus, eventType);
|
|
255
249
|
break;
|
|
256
|
-
|
|
257
250
|
case _constants.LOCUSEVENT.DIFFERENCE:
|
|
258
251
|
this.handleLocusDelta(data.locus, meeting);
|
|
259
252
|
break;
|
|
260
|
-
|
|
261
253
|
default:
|
|
262
254
|
// Why will there be a event with no eventType ????
|
|
263
255
|
// we may not need this, we can get full locus
|
|
264
256
|
this.handleLocusDelta(data.locus, meeting);
|
|
265
257
|
}
|
|
266
258
|
}
|
|
259
|
+
|
|
267
260
|
/**
|
|
268
261
|
* @param {String} scope
|
|
269
262
|
* @param {String} eventName
|
|
@@ -271,27 +264,26 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
271
264
|
* @returns {undefined}
|
|
272
265
|
* @memberof LocusInfo
|
|
273
266
|
*/
|
|
274
|
-
|
|
275
267
|
}, {
|
|
276
268
|
key: "emitScoped",
|
|
277
269
|
value: function emitScoped(scope, eventName, args) {
|
|
278
270
|
return this.emit(scope, eventName, args);
|
|
279
271
|
}
|
|
272
|
+
|
|
280
273
|
/**
|
|
281
274
|
* updates the locus with full locus object
|
|
282
275
|
* @param {object} locus locus object
|
|
283
|
-
* @param {
|
|
276
|
+
* @param {string} eventType particulat locus event
|
|
284
277
|
* @returns {object} null
|
|
285
278
|
* @memberof LocusInfo
|
|
286
279
|
*/
|
|
287
|
-
|
|
280
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
288
281
|
}, {
|
|
289
282
|
key: "onFullLocus",
|
|
290
283
|
value: function onFullLocus(locus, eventType) {
|
|
291
284
|
if (!locus) {
|
|
292
285
|
_loggerProxy.default.logger.error('Locus-info:index#onFullLocus --> object passed as argument was invalid, continuing.');
|
|
293
286
|
}
|
|
294
|
-
|
|
295
287
|
this.updateParticipantDeltas(locus.participants);
|
|
296
288
|
this.scheduledMeeting = locus.meeting || null;
|
|
297
289
|
this.participants = locus.participants;
|
|
@@ -299,17 +291,18 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
299
291
|
this.updateParticipants(locus.participants);
|
|
300
292
|
this.isMeetingActive();
|
|
301
293
|
this.handleOneOnOneEvent(eventType);
|
|
302
|
-
this.updateEmbeddedApps(locus.embeddedApps);
|
|
303
|
-
|
|
294
|
+
this.updateEmbeddedApps(locus.embeddedApps);
|
|
295
|
+
// set current (working copy) for parser
|
|
304
296
|
this.locusParser.workingCopy = locus;
|
|
305
|
-
}
|
|
297
|
+
}
|
|
306
298
|
|
|
299
|
+
// used for ringing stops on one on one
|
|
307
300
|
/**
|
|
308
301
|
* @param {String} eventType
|
|
309
302
|
* @returns {undefined}
|
|
310
303
|
* @memberof LocusInfo
|
|
311
304
|
*/
|
|
312
|
-
|
|
305
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
313
306
|
}, {
|
|
314
307
|
key: "handleOneOnOneEvent",
|
|
315
308
|
value: function handleOneOnOneEvent(eventType) {
|
|
@@ -324,9 +317,8 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
324
317
|
remoteDeclined: true,
|
|
325
318
|
remoteAnswered: false
|
|
326
319
|
});
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
|
|
320
|
+
}
|
|
321
|
+
// for 1:1 bob calls alice and alice answers, notify the meeting state
|
|
330
322
|
if (eventType === _constants.LOCUSEVENT.PARTICIPANT_JOIN) {
|
|
331
323
|
// trigger the event for stop ringing
|
|
332
324
|
this.emitScoped({
|
|
@@ -339,12 +331,12 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
339
331
|
}
|
|
340
332
|
}
|
|
341
333
|
}
|
|
334
|
+
|
|
342
335
|
/**
|
|
343
336
|
* @param {Object} locus
|
|
344
337
|
* @returns {undefined}
|
|
345
338
|
* @memberof LocusInfo
|
|
346
339
|
*/
|
|
347
|
-
|
|
348
340
|
}, {
|
|
349
341
|
key: "onDeltaLocus",
|
|
350
342
|
value: function onDeltaLocus(locus) {
|
|
@@ -352,15 +344,22 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
352
344
|
this.updateParticipants(locus.participants);
|
|
353
345
|
this.isMeetingActive();
|
|
354
346
|
}
|
|
347
|
+
|
|
355
348
|
/**
|
|
356
349
|
* @param {Object} locus
|
|
357
350
|
* @returns {undefined}
|
|
358
351
|
* @memberof LocusInfo
|
|
359
352
|
*/
|
|
360
|
-
|
|
361
353
|
}, {
|
|
362
354
|
key: "updateLocusInfo",
|
|
363
355
|
value: function updateLocusInfo(locus) {
|
|
356
|
+
var _locus$self, _locus$self2, _locus$links2;
|
|
357
|
+
if (((_locus$self = locus.self) === null || _locus$self === void 0 ? void 0 : _locus$self.reason) === 'MOVED' && ((_locus$self2 = locus.self) === null || _locus$self2 === void 0 ? void 0 : _locus$self2.state) === 'LEFT') {
|
|
358
|
+
// When moved to a breakout session locus sends a message for the previous locus
|
|
359
|
+
// indicating that we have been moved. It isn't helpful to continue parsing this
|
|
360
|
+
// as it gets interpreted as if we have left the call
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
364
363
|
this.updateControls(locus.controls);
|
|
365
364
|
this.updateConversationUrl(locus.conversationUrl, locus.info);
|
|
366
365
|
this.updateCreated(locus.created);
|
|
@@ -378,53 +377,59 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
378
377
|
this.updateMemberShip(locus.membership);
|
|
379
378
|
this.updateIdentifiers(locus.identities);
|
|
380
379
|
this.updateEmbeddedApps(locus.embeddedApps);
|
|
381
|
-
this.
|
|
380
|
+
this.updateServices((_locus$links2 = locus.links) === null || _locus$links2 === void 0 ? void 0 : _locus$links2.services);
|
|
381
|
+
this.compareAndUpdate();
|
|
382
|
+
// update which required to compare different objects from locus
|
|
382
383
|
}
|
|
384
|
+
|
|
383
385
|
/**
|
|
384
386
|
* @param {Array} participants
|
|
385
387
|
* @param {Object} self
|
|
386
388
|
* @returns {Array}
|
|
387
389
|
* @memberof LocusInfo
|
|
388
390
|
*/
|
|
389
|
-
|
|
390
391
|
}, {
|
|
391
392
|
key: "getLocusPartner",
|
|
392
393
|
value: function getLocusPartner(participants, self) {
|
|
393
394
|
if (!participants || participants.length === 0) {
|
|
394
395
|
return null;
|
|
395
396
|
}
|
|
396
|
-
|
|
397
397
|
return participants.find(function (participant) {
|
|
398
398
|
return self && participant.identity !== self.identity && (participants.length <= 2 || participant.type === _constants._USER_ && !participant.removed);
|
|
399
|
-
}
|
|
400
|
-
|
|
399
|
+
}
|
|
400
|
+
// @ts-ignore
|
|
401
|
+
) || this.partner;
|
|
402
|
+
}
|
|
401
403
|
|
|
404
|
+
// TODO: all the leave states need to be checked
|
|
402
405
|
/**
|
|
403
406
|
* @returns {undefined}
|
|
404
407
|
* @memberof LocusInfo
|
|
405
408
|
*/
|
|
406
|
-
|
|
407
409
|
}, {
|
|
408
410
|
key: "isMeetingActive",
|
|
409
411
|
value: function isMeetingActive() {
|
|
410
412
|
if (this.parsedLocus.fullState.type === _constants._CALL_ || this.parsedLocus.fullState.type === _constants._SIP_BRIDGE_) {
|
|
413
|
+
// @ts-ignore
|
|
411
414
|
var partner = this.getLocusPartner(this.participants, this.self);
|
|
412
415
|
this.updateMeeting({
|
|
413
416
|
partner: partner
|
|
414
|
-
});
|
|
417
|
+
});
|
|
418
|
+
|
|
419
|
+
// Check if guest user needs to be checked here
|
|
420
|
+
|
|
415
421
|
// 1) when bob declines call from bob, (bob='DECLINED')
|
|
416
422
|
// 2) When alice rejects call to bob , (bob='NOTIFIED')
|
|
423
|
+
|
|
417
424
|
// When we dont add MEDIA for condition 2. The state of bob='IDLE'
|
|
418
425
|
|
|
419
426
|
if (this.fullState && this.fullState.state === _constants.LOCUS.STATE.INACTIVE) {
|
|
420
427
|
// TODO: update the meeting state
|
|
421
428
|
_loggerProxy.default.logger.warn('Locus-info:index#isMeetingActive --> Call Ended, locus state is inactive.');
|
|
422
|
-
|
|
423
429
|
_metrics.default.postEvent({
|
|
424
430
|
event: _config.eventType.REMOTE_ENDED,
|
|
425
431
|
meetingId: this.meetingId
|
|
426
432
|
});
|
|
427
|
-
|
|
428
433
|
this.emitScoped({
|
|
429
434
|
file: 'locus-info',
|
|
430
435
|
function: 'isMeetingActive'
|
|
@@ -437,7 +442,6 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
437
442
|
event: _config.eventType.REMOTE_ENDED,
|
|
438
443
|
meetingId: this.meetingId
|
|
439
444
|
});
|
|
440
|
-
|
|
441
445
|
this.emitScoped({
|
|
442
446
|
file: 'locus-info',
|
|
443
447
|
function: 'isMeetingActive'
|
|
@@ -451,7 +455,6 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
451
455
|
event: _config.eventType.REMOTE_ENDED,
|
|
452
456
|
meetingId: this.meetingId
|
|
453
457
|
});
|
|
454
|
-
|
|
455
458
|
this.emitScoped({
|
|
456
459
|
file: 'locus-info',
|
|
457
460
|
function: 'isMeetingActive'
|
|
@@ -461,14 +464,14 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
461
464
|
});
|
|
462
465
|
}
|
|
463
466
|
} else if (this.parsedLocus.fullState.type === _constants._MEETING_) {
|
|
464
|
-
if (this.fullState && (this.fullState.state === _constants.LOCUS.STATE.INACTIVE ||
|
|
467
|
+
if (this.fullState && (this.fullState.state === _constants.LOCUS.STATE.INACTIVE ||
|
|
468
|
+
// @ts-ignore
|
|
469
|
+
this.fullState.state === _constants.LOCUS.STATE.TERMINATING)) {
|
|
465
470
|
_loggerProxy.default.logger.warn('Locus-info:index#isMeetingActive --> Meeting is ending due to inactive or terminating');
|
|
466
|
-
|
|
467
471
|
_metrics.default.postEvent({
|
|
468
472
|
event: _config.eventType.REMOTE_ENDED,
|
|
469
473
|
meetingId: this.meetingId
|
|
470
474
|
});
|
|
471
|
-
|
|
472
475
|
this.emitScoped({
|
|
473
476
|
file: 'locus-info',
|
|
474
477
|
function: 'isMeetingActive'
|
|
@@ -482,7 +485,6 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
482
485
|
event: _config.eventType.REMOTE_ENDED,
|
|
483
486
|
meetingId: this.meetingId
|
|
484
487
|
});
|
|
485
|
-
|
|
486
488
|
this.emitScoped({
|
|
487
489
|
file: 'locus-info',
|
|
488
490
|
function: 'isMeetingActive'
|
|
@@ -490,7 +492,8 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
490
492
|
reason: _constants.MEETING_REMOVED_REASON.FULLSTATE_REMOVED,
|
|
491
493
|
shouldLeave: false
|
|
492
494
|
});
|
|
493
|
-
}
|
|
495
|
+
}
|
|
496
|
+
// If you are guest and you are removed from the meeting
|
|
494
497
|
// You wont get any further events
|
|
495
498
|
else if (this.parsedLocus.self && this.parsedLocus.self.removed) {
|
|
496
499
|
// Check if we need to send an event
|
|
@@ -506,13 +509,13 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
506
509
|
_loggerProxy.default.logger.warn('Locus-info:index#isMeetingActive --> Meeting Type is unknown.');
|
|
507
510
|
}
|
|
508
511
|
}
|
|
512
|
+
|
|
509
513
|
/**
|
|
510
514
|
* checks if the host permissions have changed while in the meeting
|
|
511
515
|
* This would be the case if your role as host or moderator has been updated
|
|
512
516
|
* @returns {undefined}
|
|
513
517
|
* @memberof LocusInfo
|
|
514
518
|
*/
|
|
515
|
-
|
|
516
519
|
}, {
|
|
517
520
|
key: "compareAndUpdate",
|
|
518
521
|
value: function compareAndUpdate() {
|
|
@@ -522,17 +525,16 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
522
525
|
this.compareSelfAndHost();
|
|
523
526
|
}
|
|
524
527
|
}
|
|
528
|
+
|
|
525
529
|
/**
|
|
526
530
|
* compared the self object to check if the user has host permissions
|
|
527
531
|
* @returns {undefined}
|
|
528
532
|
* @memberof LocusInfo
|
|
529
533
|
*/
|
|
530
|
-
|
|
531
534
|
}, {
|
|
532
535
|
key: "compareSelfAndHost",
|
|
533
536
|
value: function compareSelfAndHost() {
|
|
534
537
|
var _this$parsedLocus$hos;
|
|
535
|
-
|
|
536
538
|
// In some cases the host info is not present but the moderator values changes from null to false so it triggers an update
|
|
537
539
|
if (this.parsedLocus.self.selfIdentity === ((_this$parsedLocus$hos = this.parsedLocus.host) === null || _this$parsedLocus$hos === void 0 ? void 0 : _this$parsedLocus$hos.hostId) && this.parsedLocus.self.moderator) {
|
|
538
540
|
this.emitScoped({
|
|
@@ -550,6 +552,7 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
550
552
|
});
|
|
551
553
|
}
|
|
552
554
|
}
|
|
555
|
+
|
|
553
556
|
/**
|
|
554
557
|
* Update the deltaParticipants property of this object based on a list of
|
|
555
558
|
* provided participants.
|
|
@@ -557,22 +560,19 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
557
560
|
* @param {Array} [participants] - The participants to update against.
|
|
558
561
|
* @returns {void}
|
|
559
562
|
*/
|
|
560
|
-
|
|
561
563
|
}, {
|
|
562
564
|
key: "updateParticipantDeltas",
|
|
563
565
|
value: function updateParticipantDeltas() {
|
|
564
566
|
var _this4 = this;
|
|
565
|
-
|
|
566
567
|
var participants = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
567
|
-
|
|
568
568
|
// Used to find a participant within a participants collection.
|
|
569
569
|
var findParticipant = function findParticipant(participant, collection) {
|
|
570
570
|
return collection.find(function (item) {
|
|
571
571
|
return item.person.id === participant.person.id;
|
|
572
572
|
});
|
|
573
|
-
};
|
|
574
|
-
|
|
573
|
+
};
|
|
575
574
|
|
|
575
|
+
// Generates an object that indicates which state properties have changed.
|
|
576
576
|
var generateDelta = function generateDelta() {
|
|
577
577
|
var prevState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
578
578
|
var newState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -581,8 +581,9 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
581
581
|
audioStatus: prevState.audioStatus !== newState.audioStatus,
|
|
582
582
|
videoSlidesStatus: prevState.videoSlidesStatus !== newState.videoSlidesStatus,
|
|
583
583
|
videoStatus: prevState.videoStatus !== newState.videoStatus
|
|
584
|
-
};
|
|
584
|
+
};
|
|
585
585
|
|
|
586
|
+
// Clean the object
|
|
586
587
|
(0, _keys.default)(deltas).forEach(function (key) {
|
|
587
588
|
if (deltas[key] !== true) {
|
|
588
589
|
delete deltas[key];
|
|
@@ -590,22 +591,20 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
590
591
|
});
|
|
591
592
|
return deltas;
|
|
592
593
|
};
|
|
593
|
-
|
|
594
594
|
this.deltaParticipants = participants.reduce(function (collection, participant) {
|
|
595
595
|
var existingParticipant = findParticipant(participant, _this4.participants || []) || {};
|
|
596
596
|
var delta = generateDelta(existingParticipant.status, participant.status);
|
|
597
597
|
var changed = (0, _keys.default)(delta).length > 0;
|
|
598
|
-
|
|
599
598
|
if (changed) {
|
|
600
599
|
collection.push({
|
|
601
600
|
person: participant.person,
|
|
602
601
|
delta: delta
|
|
603
602
|
});
|
|
604
603
|
}
|
|
605
|
-
|
|
606
604
|
return collection;
|
|
607
605
|
}, []);
|
|
608
606
|
}
|
|
607
|
+
|
|
609
608
|
/**
|
|
610
609
|
*
|
|
611
610
|
* @param {Object} participants new participants object
|
|
@@ -613,12 +612,10 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
613
612
|
* @returns {Array} updatedParticipants
|
|
614
613
|
* @memberof LocusInfo
|
|
615
614
|
*/
|
|
616
|
-
|
|
617
615
|
}, {
|
|
618
616
|
key: "updateParticipants",
|
|
619
617
|
value: function updateParticipants(participants) {
|
|
620
618
|
var _this$parsedLocus$con;
|
|
621
|
-
|
|
622
619
|
this.emitScoped({
|
|
623
620
|
file: 'locus-info',
|
|
624
621
|
function: 'updateParticipants'
|
|
@@ -630,30 +627,28 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
630
627
|
hostId: this.parsedLocus.host && this.parsedLocus.host.hostId
|
|
631
628
|
});
|
|
632
629
|
}
|
|
630
|
+
|
|
633
631
|
/**
|
|
634
632
|
* @param {Object} controls
|
|
635
633
|
* @returns {undefined}
|
|
636
634
|
* @memberof LocusInfo
|
|
637
635
|
*/
|
|
638
|
-
|
|
639
636
|
}, {
|
|
640
637
|
key: "updateControls",
|
|
641
638
|
value: function updateControls(controls) {
|
|
642
639
|
if (controls && !(0, _isEqual2.default)(this.controls, controls)) {
|
|
643
640
|
this.parsedLocus.controls = _controlsUtils.default.parse(controls);
|
|
644
|
-
|
|
645
641
|
var _ControlsUtils$getCon = _controlsUtils.default.getControls(this.controls, controls),
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
642
|
+
_ControlsUtils$getCon2 = _ControlsUtils$getCon.updates,
|
|
643
|
+
hasRecordingChanged = _ControlsUtils$getCon2.hasRecordingChanged,
|
|
644
|
+
hasRecordingPausedChanged = _ControlsUtils$getCon2.hasRecordingPausedChanged,
|
|
645
|
+
hasMeetingContainerChanged = _ControlsUtils$getCon2.hasMeetingContainerChanged,
|
|
646
|
+
hasTranscribeChanged = _ControlsUtils$getCon2.hasTranscribeChanged,
|
|
647
|
+
hasEntryExitToneChanged = _ControlsUtils$getCon2.hasEntryExitToneChanged,
|
|
648
|
+
hasBreakoutChanged = _ControlsUtils$getCon2.hasBreakoutChanged,
|
|
649
|
+
current = _ControlsUtils$getCon.current;
|
|
654
650
|
if (hasRecordingChanged || hasRecordingPausedChanged) {
|
|
655
651
|
var state = null;
|
|
656
|
-
|
|
657
652
|
if (hasRecordingPausedChanged) {
|
|
658
653
|
if (current.record.paused) {
|
|
659
654
|
state = _constants.RECORDING_STATE.PAUSED;
|
|
@@ -664,7 +659,6 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
664
659
|
} else if (hasRecordingChanged) {
|
|
665
660
|
state = current.record.recording ? _constants.RECORDING_STATE.RECORDING : _constants.RECORDING_STATE.IDLE;
|
|
666
661
|
}
|
|
667
|
-
|
|
668
662
|
this.emitScoped({
|
|
669
663
|
file: 'locus-info',
|
|
670
664
|
function: 'updateControls'
|
|
@@ -674,7 +668,6 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
674
668
|
lastModified: current.record.lastModified
|
|
675
669
|
});
|
|
676
670
|
}
|
|
677
|
-
|
|
678
671
|
if (hasMeetingContainerChanged) {
|
|
679
672
|
var meetingContainerUrl = current.meetingContainer.meetingContainerUrl;
|
|
680
673
|
this.emitScoped({
|
|
@@ -684,11 +677,10 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
684
677
|
meetingContainerUrl: meetingContainerUrl
|
|
685
678
|
});
|
|
686
679
|
}
|
|
687
|
-
|
|
688
680
|
if (hasTranscribeChanged) {
|
|
689
681
|
var _current$transcribe = current.transcribe,
|
|
690
|
-
|
|
691
|
-
|
|
682
|
+
transcribing = _current$transcribe.transcribing,
|
|
683
|
+
caption = _current$transcribe.caption;
|
|
692
684
|
this.emitScoped({
|
|
693
685
|
file: 'locus-info',
|
|
694
686
|
function: 'updateControls'
|
|
@@ -697,7 +689,15 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
697
689
|
caption: caption
|
|
698
690
|
});
|
|
699
691
|
}
|
|
700
|
-
|
|
692
|
+
if (hasBreakoutChanged) {
|
|
693
|
+
var breakout = current.breakout;
|
|
694
|
+
this.emitScoped({
|
|
695
|
+
file: 'locus-info',
|
|
696
|
+
function: 'updateControls'
|
|
697
|
+
}, _constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_BREAKOUT_UPDATED, {
|
|
698
|
+
breakout: breakout
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
701
|
if (hasEntryExitToneChanged) {
|
|
702
702
|
var entryExitTone = current.entryExitTone;
|
|
703
703
|
this.emitScoped({
|
|
@@ -710,17 +710,16 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
710
710
|
entryExitTone: entryExitTone
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
|
-
|
|
714
713
|
this.controls = controls;
|
|
715
714
|
}
|
|
716
715
|
}
|
|
716
|
+
|
|
717
717
|
/**
|
|
718
718
|
* @param {String} conversationUrl
|
|
719
719
|
* @param {Object} info
|
|
720
720
|
* @returns {undefined}
|
|
721
721
|
* @memberof LocusInfo
|
|
722
722
|
*/
|
|
723
|
-
|
|
724
723
|
}, {
|
|
725
724
|
key: "updateConversationUrl",
|
|
726
725
|
value: function updateConversationUrl(conversationUrl, info) {
|
|
@@ -736,12 +735,12 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
736
735
|
});
|
|
737
736
|
}
|
|
738
737
|
}
|
|
738
|
+
|
|
739
739
|
/**
|
|
740
740
|
* @param {Object} created
|
|
741
741
|
* @returns {undefined}
|
|
742
742
|
* @memberof LocusInfo
|
|
743
743
|
*/
|
|
744
|
-
|
|
745
744
|
}, {
|
|
746
745
|
key: "updateCreated",
|
|
747
746
|
value: function updateCreated(created) {
|
|
@@ -749,20 +748,37 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
749
748
|
this.created = created;
|
|
750
749
|
}
|
|
751
750
|
}
|
|
751
|
+
|
|
752
752
|
/**
|
|
753
|
-
* @param {Object}
|
|
753
|
+
* @param {Object} services
|
|
754
754
|
* @returns {undefined}
|
|
755
755
|
* @memberof LocusInfo
|
|
756
756
|
*/
|
|
757
|
+
}, {
|
|
758
|
+
key: "updateServices",
|
|
759
|
+
value: function updateServices(services) {
|
|
760
|
+
if (services && !(0, _isEqual2.default)(this.services, services)) {
|
|
761
|
+
this.services = services;
|
|
762
|
+
this.emitScoped({
|
|
763
|
+
file: 'locus-info',
|
|
764
|
+
function: 'updateServices'
|
|
765
|
+
}, _constants.LOCUSINFO.EVENTS.LINKS_SERVICES, {
|
|
766
|
+
services: services
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
}
|
|
757
770
|
|
|
771
|
+
/**
|
|
772
|
+
* @param {Object} fullState
|
|
773
|
+
* @returns {undefined}
|
|
774
|
+
* @memberof LocusInfo
|
|
775
|
+
*/
|
|
758
776
|
}, {
|
|
759
777
|
key: "updateFullState",
|
|
760
778
|
value: function updateFullState(fullState) {
|
|
761
779
|
if (fullState && !(0, _isEqual2.default)(this.fullState, fullState)) {
|
|
762
780
|
var result = _fullState.default.getFullState(this.fullState, fullState);
|
|
763
|
-
|
|
764
781
|
this.updateMeeting(result.current);
|
|
765
|
-
|
|
766
782
|
if (result.updates.meetingStateChangedTo) {
|
|
767
783
|
this.emitScoped({
|
|
768
784
|
file: 'locus-info',
|
|
@@ -772,7 +788,6 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
772
788
|
currentState: result.current.meetingState
|
|
773
789
|
});
|
|
774
790
|
}
|
|
775
|
-
|
|
776
791
|
if (result.updates.meetingTypeChangedTo) {
|
|
777
792
|
this.emitScoped({
|
|
778
793
|
file: 'locus-info',
|
|
@@ -781,11 +796,11 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
781
796
|
type: result.current.type
|
|
782
797
|
});
|
|
783
798
|
}
|
|
784
|
-
|
|
785
799
|
this.parsedLocus.fullState = result.current;
|
|
786
800
|
this.fullState = fullState;
|
|
787
801
|
}
|
|
788
802
|
}
|
|
803
|
+
|
|
789
804
|
/**
|
|
790
805
|
* handles when the locus.host is updated
|
|
791
806
|
* @param {Object} host the locus.host property
|
|
@@ -793,16 +808,13 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
793
808
|
* @memberof LocusInfo
|
|
794
809
|
* emits internal event locus_info_update_host
|
|
795
810
|
*/
|
|
796
|
-
|
|
797
811
|
}, {
|
|
798
812
|
key: "updateHostInfo",
|
|
799
813
|
value: function updateHostInfo(host) {
|
|
800
814
|
if (host && !(0, _isEqual2.default)(this.host, host)) {
|
|
801
815
|
var parsedHosts = _hostUtils.default.getHosts(this.host, host);
|
|
802
|
-
|
|
803
816
|
this.updateMeeting(parsedHosts.current);
|
|
804
817
|
this.parsedLocus.host = parsedHosts.current;
|
|
805
|
-
|
|
806
818
|
if (parsedHosts.updates.isNewHost) {
|
|
807
819
|
this.compareAndUpdateFlags.compareSelfAndHost = true;
|
|
808
820
|
this.emitScoped({
|
|
@@ -813,31 +825,26 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
813
825
|
oldHost: parsedHosts.previous
|
|
814
826
|
});
|
|
815
827
|
}
|
|
816
|
-
|
|
817
828
|
this.host = host;
|
|
818
829
|
} else {
|
|
819
830
|
this.compareAndUpdateFlags.compareSelfAndHost = false;
|
|
820
831
|
}
|
|
821
832
|
}
|
|
833
|
+
|
|
822
834
|
/**
|
|
823
835
|
* @param {Object} info
|
|
824
836
|
* @param {Object} self
|
|
825
837
|
* @returns {undefined}
|
|
826
838
|
* @memberof LocusInfo
|
|
827
839
|
*/
|
|
828
|
-
|
|
829
840
|
}, {
|
|
830
841
|
key: "updateMeetingInfo",
|
|
831
842
|
value: function updateMeetingInfo(info, self) {
|
|
832
843
|
if (info && !(0, _isEqual2.default)(this.info, info)) {
|
|
833
844
|
var _this$parsedLocus$sel;
|
|
834
|
-
|
|
835
845
|
var roles = self ? _selfUtils.default.getRoles(self) : ((_this$parsedLocus$sel = this.parsedLocus.self) === null || _this$parsedLocus$sel === void 0 ? void 0 : _this$parsedLocus$sel.roles) || [];
|
|
836
|
-
|
|
837
846
|
var isJoined = _selfUtils.default.isJoined(self || this.parsedLocus.self);
|
|
838
|
-
|
|
839
847
|
var parsedInfo = _infoUtils.default.getInfos(this.parsedLocus.info, info, roles, isJoined);
|
|
840
|
-
|
|
841
848
|
this.emitScoped({
|
|
842
849
|
file: 'locus-info',
|
|
843
850
|
function: 'updateMeetingInfo'
|
|
@@ -845,33 +852,30 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
845
852
|
info: parsedInfo.current,
|
|
846
853
|
self: self
|
|
847
854
|
});
|
|
848
|
-
|
|
849
855
|
if (parsedInfo.updates.isLocked) {
|
|
850
856
|
this.emitScoped({
|
|
851
857
|
file: 'locus-info',
|
|
852
858
|
function: 'updateMeetingInfo'
|
|
853
859
|
}, _constants.LOCUSINFO.EVENTS.MEETING_LOCKED, info);
|
|
854
860
|
}
|
|
855
|
-
|
|
856
861
|
if (parsedInfo.updates.isUnlocked) {
|
|
857
862
|
this.emitScoped({
|
|
858
863
|
file: 'locus-info',
|
|
859
864
|
function: 'updateMeetingInfo'
|
|
860
865
|
}, _constants.LOCUSINFO.EVENTS.MEETING_UNLOCKED, info);
|
|
861
866
|
}
|
|
862
|
-
|
|
863
867
|
this.info = info;
|
|
864
|
-
this.parsedLocus.info = parsedInfo.current;
|
|
865
|
-
|
|
868
|
+
this.parsedLocus.info = parsedInfo.current;
|
|
869
|
+
// Parses the info and adds necessary values
|
|
866
870
|
this.updateMeeting(parsedInfo.current);
|
|
867
871
|
}
|
|
868
872
|
}
|
|
873
|
+
|
|
869
874
|
/**
|
|
870
875
|
* @param {Object} embeddedApps
|
|
871
876
|
* @returns {undefined}
|
|
872
877
|
* @memberof LocusInfo
|
|
873
878
|
*/
|
|
874
|
-
|
|
875
879
|
}, {
|
|
876
880
|
key: "updateEmbeddedApps",
|
|
877
881
|
value: function updateEmbeddedApps(embeddedApps) {
|
|
@@ -879,9 +883,7 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
879
883
|
if (_embeddedAppsUtils.default.areSimilar(this.embeddedApps, embeddedApps)) {
|
|
880
884
|
return;
|
|
881
885
|
}
|
|
882
|
-
|
|
883
886
|
var parsedEmbeddedApps = _embeddedAppsUtils.default.parse(embeddedApps);
|
|
884
|
-
|
|
885
887
|
this.updateMeeting({
|
|
886
888
|
embeddedApps: parsedEmbeddedApps
|
|
887
889
|
});
|
|
@@ -891,6 +893,7 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
891
893
|
}, _constants.LOCUSINFO.EVENTS.EMBEDDED_APPS_UPDATED, parsedEmbeddedApps);
|
|
892
894
|
this.embeddedApps = embeddedApps;
|
|
893
895
|
}
|
|
896
|
+
|
|
894
897
|
/**
|
|
895
898
|
* handles when the locus.mediaShares is updated
|
|
896
899
|
* @param {Object} mediaShares the locus.mediaShares property
|
|
@@ -898,13 +901,11 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
898
901
|
* @memberof LocusInfo
|
|
899
902
|
* emits internal event locus_info_update_media_shares
|
|
900
903
|
*/
|
|
901
|
-
|
|
902
904
|
}, {
|
|
903
905
|
key: "updateMediaShares",
|
|
904
906
|
value: function updateMediaShares(mediaShares) {
|
|
905
907
|
if (mediaShares && !(0, _isEqual2.default)(this.mediaShares, mediaShares)) {
|
|
906
908
|
var parsedMediaShares = _mediaSharesUtils.default.getMediaShares(this.mediaShares, mediaShares);
|
|
907
|
-
|
|
908
909
|
this.updateMeeting(parsedMediaShares.current);
|
|
909
910
|
this.emitScoped({
|
|
910
911
|
file: 'locus-info',
|
|
@@ -917,12 +918,12 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
917
918
|
this.mediaShares = mediaShares;
|
|
918
919
|
}
|
|
919
920
|
}
|
|
921
|
+
|
|
920
922
|
/**
|
|
921
923
|
* @param {String} participantsUrl
|
|
922
924
|
* @returns {undefined}
|
|
923
925
|
* @memberof LocusInfo
|
|
924
926
|
*/
|
|
925
|
-
|
|
926
927
|
}, {
|
|
927
928
|
key: "updateParticipantsUrl",
|
|
928
929
|
value: function updateParticipantsUrl(participantsUrl) {
|
|
@@ -930,12 +931,12 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
930
931
|
this.participantsUrl = participantsUrl;
|
|
931
932
|
}
|
|
932
933
|
}
|
|
934
|
+
|
|
933
935
|
/**
|
|
934
936
|
* @param {Object} replace
|
|
935
937
|
* @returns {undefined}
|
|
936
938
|
* @memberof LocusInfo
|
|
937
939
|
*/
|
|
938
|
-
|
|
939
940
|
}, {
|
|
940
941
|
key: "updateReplace",
|
|
941
942
|
value: function updateReplace(replace) {
|
|
@@ -943,6 +944,7 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
943
944
|
this.replace = replace;
|
|
944
945
|
}
|
|
945
946
|
}
|
|
947
|
+
|
|
946
948
|
/**
|
|
947
949
|
* handles when the locus.self is updated
|
|
948
950
|
* @param {Object} self the locus.mediaShares property
|
|
@@ -951,35 +953,31 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
951
953
|
* @memberof LocusInfo
|
|
952
954
|
* emits internal events self_admitted_guest, self_unadmitted_guest, locus_info_update_self
|
|
953
955
|
*/
|
|
954
|
-
|
|
955
956
|
}, {
|
|
956
957
|
key: "updateSelf",
|
|
957
958
|
value: function updateSelf(self, participants) {
|
|
959
|
+
// @ts-ignore - check where this.self come from
|
|
958
960
|
if (self && !(0, _isEqual2.default)(this.self, self)) {
|
|
961
|
+
// @ts-ignore
|
|
959
962
|
var parsedSelves = _selfUtils.default.getSelves(this.self, self, this.webex.internal.device.url);
|
|
960
|
-
|
|
961
963
|
this.updateMeeting(parsedSelves.current);
|
|
962
964
|
this.parsedLocus.self = parsedSelves.current;
|
|
963
965
|
var element = this.parsedLocus.states[this.parsedLocus.states.length - 1];
|
|
964
|
-
|
|
965
966
|
if (element !== parsedSelves.current.state) {
|
|
966
967
|
this.parsedLocus.states.push(parsedSelves.current.state);
|
|
967
|
-
}
|
|
968
|
-
// this.emit(LOCUSINFO.EVENTS.MEETING_UPDATE, SelfUtils.getSipUrl(this.getLocusPartner(participants, self), this.parsedLocus.fullState.type, this.parsedLocus.info.sipUri));
|
|
969
|
-
|
|
968
|
+
}
|
|
970
969
|
|
|
970
|
+
// TODO: check if we need to save the sipUri here as well
|
|
971
|
+
// this.emit(LOCUSINFO.EVENTS.MEETING_UPDATE, SelfUtils.getSipUrl(this.getLocusPartner(participants, self), this.parsedLocus.fullState.type, this.parsedLocus.info.sipUri));
|
|
971
972
|
var result = _selfUtils.default.getSipUrl(this.getLocusPartner(participants, self), this.parsedLocus.fullState.type, this.parsedLocus.info.sipUri);
|
|
972
|
-
|
|
973
973
|
if (result.sipUri) {
|
|
974
974
|
this.updateMeeting(result);
|
|
975
975
|
}
|
|
976
|
-
|
|
977
976
|
if (parsedSelves.updates.moderatorChanged) {
|
|
978
977
|
this.compareAndUpdateFlags.compareHostAndSelf = true;
|
|
979
978
|
} else {
|
|
980
979
|
this.compareAndUpdateFlags.compareHostAndSelf = false;
|
|
981
980
|
}
|
|
982
|
-
|
|
983
981
|
if (parsedSelves.updates.layoutChanged) {
|
|
984
982
|
this.emitScoped({
|
|
985
983
|
file: 'locus-info',
|
|
@@ -988,7 +986,14 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
988
986
|
layout: parsedSelves.current.layout
|
|
989
987
|
});
|
|
990
988
|
}
|
|
991
|
-
|
|
989
|
+
if (parsedSelves.updates.breakoutsChanged) {
|
|
990
|
+
this.emitScoped({
|
|
991
|
+
file: 'locus-info',
|
|
992
|
+
function: 'updateSelf'
|
|
993
|
+
}, _constants.LOCUSINFO.EVENTS.SELF_MEETING_BREAKOUTS_CHANGED, {
|
|
994
|
+
breakoutSessions: parsedSelves.current.breakoutSessions
|
|
995
|
+
});
|
|
996
|
+
}
|
|
992
997
|
if (parsedSelves.updates.isMediaInactiveOrReleased) {
|
|
993
998
|
this.emitScoped({
|
|
994
999
|
file: 'locus-info',
|
|
@@ -997,14 +1002,12 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
997
1002
|
reason: self.reason
|
|
998
1003
|
});
|
|
999
1004
|
}
|
|
1000
|
-
|
|
1001
1005
|
if (parsedSelves.updates.moderatorChanged) {
|
|
1002
1006
|
this.emitScoped({
|
|
1003
1007
|
file: 'locus-info',
|
|
1004
1008
|
function: 'updateSelf'
|
|
1005
1009
|
}, _constants.LOCUSINFO.EVENTS.SELF_MODERATOR_CHANGED, self);
|
|
1006
1010
|
}
|
|
1007
|
-
|
|
1008
1011
|
if (parsedSelves.updates.localAudioUnmuteRequiredByServer) {
|
|
1009
1012
|
this.emitScoped({
|
|
1010
1013
|
file: 'locus-info',
|
|
@@ -1014,7 +1017,6 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
1014
1017
|
unmuteAllowed: parsedSelves.current.unmuteAllowed
|
|
1015
1018
|
});
|
|
1016
1019
|
}
|
|
1017
|
-
|
|
1018
1020
|
if (parsedSelves.updates.isMutedByOthersChanged) {
|
|
1019
1021
|
this.emitScoped({
|
|
1020
1022
|
file: 'locus-info',
|
|
@@ -1024,38 +1026,34 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
1024
1026
|
unmuteAllowed: parsedSelves.current.unmuteAllowed
|
|
1025
1027
|
});
|
|
1026
1028
|
}
|
|
1027
|
-
|
|
1028
1029
|
if (parsedSelves.updates.localAudioUnmuteRequestedByServer) {
|
|
1029
1030
|
this.emitScoped({
|
|
1030
1031
|
file: 'locus-info',
|
|
1031
1032
|
function: 'updateSelf'
|
|
1032
1033
|
}, _constants.LOCUSINFO.EVENTS.LOCAL_UNMUTE_REQUESTED, {});
|
|
1033
1034
|
}
|
|
1034
|
-
|
|
1035
1035
|
if (parsedSelves.updates.isUserUnadmitted) {
|
|
1036
1036
|
this.emitScoped({
|
|
1037
1037
|
file: 'locus-info',
|
|
1038
1038
|
function: 'updateSelf'
|
|
1039
1039
|
}, _constants.LOCUSINFO.EVENTS.SELF_UNADMITTED_GUEST, self);
|
|
1040
1040
|
}
|
|
1041
|
-
|
|
1042
1041
|
if (parsedSelves.updates.isUserAdmitted) {
|
|
1043
1042
|
this.emitScoped({
|
|
1044
1043
|
file: 'locus-info',
|
|
1045
1044
|
function: 'updateSelf'
|
|
1046
1045
|
}, _constants.LOCUSINFO.EVENTS.SELF_ADMITTED_GUEST, self);
|
|
1047
1046
|
}
|
|
1048
|
-
|
|
1049
1047
|
if (parsedSelves.updates.isMediaInactive) {
|
|
1050
1048
|
this.emitScoped({
|
|
1051
1049
|
file: 'locus-info',
|
|
1052
1050
|
function: 'updateSelf'
|
|
1053
|
-
},
|
|
1051
|
+
},
|
|
1052
|
+
// @ts-ignore
|
|
1053
|
+
_constants.LOCUSINFO.EVENTS.MEDIA_INACTIVITY, _selfUtils.default.getMediaStatus(self.mediaSessions));
|
|
1054
1054
|
}
|
|
1055
|
-
|
|
1056
1055
|
if (parsedSelves.updates.audioStateChange || parsedSelves.updates.videoStateChange || parsedSelves.updates.shareStateChange) {
|
|
1057
1056
|
var _parsedSelves$current, _parsedSelves$current2, _parsedSelves$current3;
|
|
1058
|
-
|
|
1059
1057
|
this.emitScoped({
|
|
1060
1058
|
file: 'locus-info',
|
|
1061
1059
|
function: 'updateSelf'
|
|
@@ -1065,14 +1063,12 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
1065
1063
|
shareStatus: (_parsedSelves$current3 = parsedSelves.current.currentMediaStatus) === null || _parsedSelves$current3 === void 0 ? void 0 : _parsedSelves$current3.share
|
|
1066
1064
|
});
|
|
1067
1065
|
}
|
|
1068
|
-
|
|
1069
1066
|
if (parsedSelves.updates.isUserObserving) {
|
|
1070
1067
|
this.emitScoped({
|
|
1071
1068
|
file: 'locus-info',
|
|
1072
1069
|
function: 'updateSelf'
|
|
1073
1070
|
}, _constants.LOCUSINFO.EVENTS.SELF_OBSERVING);
|
|
1074
1071
|
}
|
|
1075
|
-
|
|
1076
1072
|
if (parsedSelves.updates.canNotViewTheParticipantListChanged) {
|
|
1077
1073
|
this.emitScoped({
|
|
1078
1074
|
file: 'locus-info',
|
|
@@ -1081,7 +1077,6 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
1081
1077
|
canNotViewTheParticipantList: parsedSelves.current.canNotViewTheParticipantList
|
|
1082
1078
|
});
|
|
1083
1079
|
}
|
|
1084
|
-
|
|
1085
1080
|
if (parsedSelves.updates.isSharingBlockedChanged) {
|
|
1086
1081
|
this.emitScoped({
|
|
1087
1082
|
file: 'locus-info',
|
|
@@ -1090,7 +1085,6 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
1090
1085
|
isSharingBlocked: parsedSelves.current.isSharingBlocked
|
|
1091
1086
|
});
|
|
1092
1087
|
}
|
|
1093
|
-
|
|
1094
1088
|
this.emitScoped({
|
|
1095
1089
|
file: 'locus-info',
|
|
1096
1090
|
function: 'updateSelf'
|
|
@@ -1099,18 +1093,19 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
1099
1093
|
newSelf: parsedSelves.current
|
|
1100
1094
|
});
|
|
1101
1095
|
this.parsedLocus.self = parsedSelves.current;
|
|
1096
|
+
// @ts-ignore
|
|
1102
1097
|
this.self = self;
|
|
1103
1098
|
} else {
|
|
1104
1099
|
this.compareAndUpdateFlags.compareHostAndSelf = false;
|
|
1105
1100
|
}
|
|
1106
1101
|
}
|
|
1102
|
+
|
|
1107
1103
|
/**
|
|
1108
1104
|
* handles when the locus.url is updated
|
|
1109
1105
|
* @param {String} url
|
|
1110
1106
|
* @returns {undefined}
|
|
1111
1107
|
* emits internal event locus_info_update_url
|
|
1112
1108
|
*/
|
|
1113
|
-
|
|
1114
1109
|
}, {
|
|
1115
1110
|
key: "updateLocusUrl",
|
|
1116
1111
|
value: function updateLocusUrl(url) {
|
|
@@ -1125,12 +1120,12 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
1125
1120
|
}, _constants.EVENTS.LOCUS_INFO_UPDATE_URL, url);
|
|
1126
1121
|
}
|
|
1127
1122
|
}
|
|
1123
|
+
|
|
1128
1124
|
/**
|
|
1129
1125
|
* @param {String} aclUrl
|
|
1130
1126
|
* @returns {undefined}
|
|
1131
1127
|
* @memberof LocusInfo
|
|
1132
1128
|
*/
|
|
1133
|
-
|
|
1134
1129
|
}, {
|
|
1135
1130
|
key: "updateAclUrl",
|
|
1136
1131
|
value: function updateAclUrl(aclUrl) {
|
|
@@ -1138,12 +1133,12 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
1138
1133
|
this.aclUrl = aclUrl;
|
|
1139
1134
|
}
|
|
1140
1135
|
}
|
|
1136
|
+
|
|
1141
1137
|
/**
|
|
1142
1138
|
* @param {Number} baseSequence
|
|
1143
1139
|
* @returns {undefined}
|
|
1144
1140
|
* @memberof LocusInfo
|
|
1145
1141
|
*/
|
|
1146
|
-
|
|
1147
1142
|
}, {
|
|
1148
1143
|
key: "updateBasequence",
|
|
1149
1144
|
value: function updateBasequence(baseSequence) {
|
|
@@ -1151,12 +1146,12 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
1151
1146
|
this.baseSequence = baseSequence;
|
|
1152
1147
|
}
|
|
1153
1148
|
}
|
|
1149
|
+
|
|
1154
1150
|
/**
|
|
1155
1151
|
* @param {Number} sequence
|
|
1156
1152
|
* @returns {undefined}
|
|
1157
1153
|
* @memberof LocusInfo
|
|
1158
1154
|
*/
|
|
1159
|
-
|
|
1160
1155
|
}, {
|
|
1161
1156
|
key: "updateSequence",
|
|
1162
1157
|
value: function updateSequence(sequence) {
|
|
@@ -1164,12 +1159,12 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
1164
1159
|
this.sequence = sequence;
|
|
1165
1160
|
}
|
|
1166
1161
|
}
|
|
1162
|
+
|
|
1167
1163
|
/**
|
|
1168
1164
|
* @param {Object} membership
|
|
1169
1165
|
* @returns {undefined}
|
|
1170
1166
|
* @memberof LocusInfo
|
|
1171
1167
|
*/
|
|
1172
|
-
|
|
1173
1168
|
}, {
|
|
1174
1169
|
key: "updateMemberShip",
|
|
1175
1170
|
value: function updateMemberShip(membership) {
|
|
@@ -1177,12 +1172,12 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
1177
1172
|
this.membership = membership;
|
|
1178
1173
|
}
|
|
1179
1174
|
}
|
|
1175
|
+
|
|
1180
1176
|
/**
|
|
1181
1177
|
* @param {Array} identities
|
|
1182
1178
|
* @returns {undefined}
|
|
1183
1179
|
* @memberof LocusInfo
|
|
1184
1180
|
*/
|
|
1185
|
-
|
|
1186
1181
|
}, {
|
|
1187
1182
|
key: "updateIdentifiers",
|
|
1188
1183
|
value: function updateIdentifiers(identities) {
|
|
@@ -1193,6 +1188,5 @@ var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
|
1193
1188
|
}]);
|
|
1194
1189
|
return LocusInfo;
|
|
1195
1190
|
}(_eventsScope.default);
|
|
1196
|
-
|
|
1197
1191
|
exports.default = LocusInfo;
|
|
1198
1192
|
//# sourceMappingURL=index.js.map
|