@webex/plugin-meetings 2.60.0-next.9 → 2.60.1
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/README.md +8 -46
- package/dist/common/browser-detection.js +3 -2
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js +4 -3
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.js +2 -1
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.js +2 -1
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js +2 -1
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-meeting.js +2 -1
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/media.js +2 -1
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/parameter.js +4 -3
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js +2 -1
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js +2 -1
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/{reclaim-host-role-errors.js → reclaim-host-role-error.js} +11 -7
- package/dist/common/errors/reclaim-host-role-error.js.map +1 -0
- package/dist/common/errors/reconnection-in-progress.js +2 -1
- package/dist/common/errors/reconnection-in-progress.js.map +1 -1
- package/dist/common/errors/reconnection.js +2 -1
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js +2 -1
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.d.ts +8 -20
- package/dist/common/errors/webex-errors.js +28 -48
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.js +2 -1
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.js +2 -1
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.js +2 -1
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.js +2 -1
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.js +2 -1
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.js +2 -1
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.js +3 -2
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.d.ts +1 -3
- package/dist/common/logs/request.js +5 -8
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.d.ts +7 -9
- package/dist/common/queue.js +9 -22
- package/dist/common/queue.js.map +1 -1
- package/dist/config.d.ts +7 -5
- package/dist/config.js +11 -8
- package/dist/config.js.map +1 -1
- package/dist/constants.d.ts +97 -217
- package/dist/constants.js +441 -416
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js +6 -3
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/enums.d.ts +1 -11
- package/dist/controls-options-manager/enums.js +6 -15
- package/dist/controls-options-manager/enums.js.map +1 -1
- package/dist/controls-options-manager/index.d.ts +1 -17
- package/dist/controls-options-manager/index.js +38 -127
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/util.d.ts +7 -1
- package/dist/controls-options-manager/util.js +19 -309
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/index.d.ts +3 -6
- package/dist/index.js +4 -116
- package/dist/index.js.map +1 -1
- package/dist/locus-info/controlsUtils.js +11 -100
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.js +4 -3
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.js +2 -1
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.js +2 -1
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.d.ts +4 -57
- package/dist/locus-info/index.js +84 -425
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +5 -13
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js +3 -58
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.d.ts +6 -66
- package/dist/locus-info/parser.js +80 -253
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js +13 -97
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.d.ts +0 -2
- package/dist/media/index.js +319 -107
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.d.ts +53 -38
- package/dist/media/properties.js +153 -96
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js +22 -1
- package/dist/media/util.js.map +1 -1
- package/dist/mediaQualityMetrics/config.d.ts +230 -234
- package/dist/mediaQualityMetrics/config.js +498 -302
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/meeting/effectsState.d.ts +42 -0
- package/dist/meeting/effectsState.js +260 -0
- package/dist/meeting/effectsState.js.map +1 -0
- package/dist/meeting/in-meeting-actions.d.ts +0 -88
- package/dist/meeting/in-meeting-actions.js +3 -94
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.d.ts +494 -591
- package/dist/meeting/index.js +2969 -4707
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/muteState.d.ts +25 -93
- package/dist/meeting/muteState.js +133 -224
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.d.ts +47 -82
- package/dist/meeting/request.js +199 -297
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/state.js +2 -1
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/util.d.ts +1 -102
- package/dist/meeting/util.js +435 -605
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/collection.js +4 -3
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.d.ts +1 -13
- package/dist/meeting-info/index.js +7 -74
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.d.ts +1 -31
- package/dist/meeting-info/meeting-info-v2.js +63 -200
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js +2 -1
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js +3 -2
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js +41 -39
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.d.ts +0 -17
- package/dist/meetings/collection.js +4 -42
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.d.ts +21 -103
- package/dist/meetings/index.js +124 -486
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/request.js +3 -4
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +6 -107
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.d.ts +1 -13
- package/dist/member/index.js +2 -45
- package/dist/member/index.js.map +1 -1
- package/dist/member/member.types.js +4 -3
- package/dist/member/member.types.js.map +1 -1
- package/dist/member/util.js +29 -120
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.d.ts +0 -5
- package/dist/members/collection.js +2 -11
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.d.ts +11 -56
- package/dist/members/index.js +47 -174
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.d.ts +11 -67
- package/dist/members/request.js +54 -102
- package/dist/members/request.js.map +1 -1
- package/dist/members/types.js +4 -3
- package/dist/members/types.js.map +1 -1
- package/dist/members/util.d.ts +1 -214
- package/dist/members/util.js +284 -327
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/config.d.ts +169 -0
- package/dist/metrics/config.js +289 -0
- package/dist/metrics/config.js.map +1 -0
- package/dist/metrics/constants.d.ts +6 -15
- package/dist/metrics/constants.js +9 -17
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.d.ts +111 -4
- package/dist/metrics/index.js +452 -4
- package/dist/metrics/index.js.map +1 -1
- package/dist/networkQualityMonitor/index.js +4 -5
- package/dist/networkQualityMonitor/index.js.map +1 -1
- package/dist/peer-connection-manager/index.d.ts +6 -0
- package/dist/peer-connection-manager/index.js +671 -0
- package/dist/peer-connection-manager/index.js.map +1 -0
- package/dist/peer-connection-manager/util.d.ts +6 -0
- package/dist/peer-connection-manager/util.js +110 -0
- package/dist/peer-connection-manager/util.js.map +1 -0
- package/dist/personal-meeting-room/index.js +3 -2
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js +3 -2
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js +2 -1
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/index.d.ts +7 -62
- package/dist/reachability/index.js +72 -265
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.d.ts +3 -7
- package/dist/reachability/request.js +10 -18
- package/dist/reachability/request.js.map +1 -1
- package/dist/reactions/reactions.d.ts +2 -2
- package/dist/reactions/reactions.js +6 -4
- package/dist/reactions/reactions.js.map +1 -1
- package/dist/reactions/reactions.type.d.ts +3 -23
- package/dist/reactions/reactions.type.js +23 -21
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.d.ts +8 -32
- package/dist/reconnection-manager/index.js +231 -282
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/enums.js +5 -4
- package/dist/recording-controller/enums.js.map +1 -1
- package/dist/recording-controller/index.d.ts +1 -15
- package/dist/recording-controller/index.js +46 -57
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/recording-controller/util.d.ts +4 -5
- package/dist/recording-controller/util.js +10 -10
- package/dist/recording-controller/util.js.map +1 -1
- package/dist/roap/collection.d.ts +10 -0
- package/dist/roap/collection.js +63 -0
- package/dist/roap/collection.js.map +1 -0
- package/dist/roap/handler.d.ts +47 -0
- package/dist/roap/handler.js +279 -0
- package/dist/roap/handler.js.map +1 -0
- package/dist/roap/index.d.ts +47 -9
- package/dist/roap/index.js +235 -101
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.d.ts +12 -18
- package/dist/roap/request.js +180 -126
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/state.d.ts +9 -0
- package/dist/roap/state.js +127 -0
- package/dist/roap/state.js.map +1 -0
- package/dist/roap/turnDiscovery.d.ts +16 -27
- package/dist/roap/turnDiscovery.js +105 -115
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/roap/util.d.ts +2 -0
- package/dist/roap/util.js +76 -0
- package/dist/roap/util.js.map +1 -0
- package/dist/statsAnalyzer/global.d.ts +83 -1
- package/dist/statsAnalyzer/global.js +85 -2
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/statsAnalyzer/index.d.ts +30 -28
- package/dist/statsAnalyzer/index.js +509 -374
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.d.ts +6 -8
- package/dist/statsAnalyzer/mqaUtil.js +83 -116
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/transcription/index.js +2 -1
- package/dist/transcription/index.js.map +1 -1
- package/package.json +26 -35
- package/src/common/errors/webex-errors.ts +12 -36
- package/src/common/logs/logger-proxy.ts +1 -1
- package/src/common/logs/request.ts +1 -5
- package/src/common/queue.ts +8 -22
- package/src/config.ts +7 -5
- package/src/constants.ts +97 -244
- package/src/controls-options-manager/enums.ts +0 -12
- package/src/controls-options-manager/index.ts +21 -116
- package/src/controls-options-manager/util.ts +14 -294
- package/src/index.js +15 -0
- package/src/locus-info/controlsUtils.ts +0 -110
- package/src/locus-info/index.ts +61 -449
- package/src/locus-info/infoUtils.ts +2 -14
- package/src/locus-info/mediaSharesUtils.ts +0 -64
- package/src/locus-info/parser.ts +47 -258
- package/src/locus-info/selfUtils.ts +2 -85
- package/src/media/index.ts +370 -153
- package/src/media/properties.ts +136 -106
- package/src/media/util.ts +21 -0
- package/src/mediaQualityMetrics/config.ts +377 -244
- package/src/meeting/effectsState.ts +209 -0
- package/src/meeting/in-meeting-actions.ts +0 -176
- package/src/meeting/index.ts +2482 -3929
- package/src/meeting/muteState.ts +138 -224
- package/src/meeting/request.ts +127 -207
- package/src/meeting/util.ts +423 -590
- package/src/meeting-info/index.ts +8 -81
- package/src/meeting-info/meeting-info-v2.ts +13 -163
- package/src/meeting-info/util.ts +1 -1
- package/src/meeting-info/utilv2.ts +28 -28
- package/src/meetings/collection.ts +0 -33
- package/src/meetings/index.ts +126 -486
- package/src/meetings/request.ts +0 -2
- package/src/meetings/util.ts +5 -116
- package/src/member/index.ts +1 -43
- package/src/member/util.ts +28 -125
- package/src/members/collection.ts +0 -8
- package/src/members/index.ts +52 -187
- package/src/members/request.ts +27 -87
- package/src/members/util.ts +291 -332
- package/src/metrics/config.ts +485 -0
- package/src/metrics/constants.ts +6 -15
- package/src/metrics/index.ts +471 -1
- package/src/networkQualityMonitor/index.ts +6 -6
- package/src/peer-connection-manager/index.ts +847 -0
- package/src/peer-connection-manager/util.ts +119 -0
- package/src/reachability/index.ts +45 -238
- package/src/reachability/request.ts +8 -17
- package/src/reactions/reactions.ts +4 -4
- package/src/reactions/reactions.type.ts +4 -30
- package/src/reconnection-manager/index.ts +156 -168
- package/src/recording-controller/index.ts +3 -20
- package/src/recording-controller/util.ts +9 -26
- package/src/roap/collection.ts +62 -0
- package/src/roap/handler.ts +294 -0
- package/src/roap/index.ts +241 -98
- package/src/roap/request.ts +148 -74
- package/src/roap/state.ts +156 -0
- package/src/roap/turnDiscovery.ts +56 -62
- package/src/roap/util.ts +100 -0
- package/src/statsAnalyzer/global.ts +84 -1
- package/src/statsAnalyzer/index.ts +642 -413
- package/src/statsAnalyzer/mqaUtil.ts +114 -111
- package/test/integration/spec/journey.js +264 -320
- package/test/integration/spec/space-meeting.js +4 -77
- package/test/unit/spec/common/queue.js +2 -31
- package/test/unit/spec/controls-options-manager/index.js +0 -163
- package/test/unit/spec/controls-options-manager/util.js +60 -576
- package/test/unit/spec/fixture/locus.js +0 -1
- package/test/unit/spec/locus-info/controlsUtils.js +30 -323
- package/test/unit/spec/locus-info/index.js +15 -1389
- package/test/unit/spec/locus-info/infoUtils.js +16 -54
- package/test/unit/spec/locus-info/lib/SeqCmp.json +0 -16
- package/test/unit/spec/locus-info/lib/selfConstant.js +0 -48
- package/test/unit/spec/locus-info/parser.js +35 -116
- package/test/unit/spec/locus-info/selfUtils.js +0 -275
- package/test/unit/spec/media/properties.ts +84 -75
- package/test/unit/spec/meeting/effectsState.js +281 -0
- package/test/unit/spec/meeting/in-meeting-actions.ts +0 -86
- package/test/unit/spec/meeting/index.js +3136 -8547
- package/test/unit/spec/meeting/muteState.js +213 -409
- package/test/unit/spec/meeting/request.js +42 -512
- package/test/unit/spec/meeting/utils.js +24 -741
- package/test/unit/spec/meeting-info/meetinginfov2.js +5 -527
- package/test/unit/spec/meeting-info/utilv2.js +0 -21
- package/test/unit/spec/meetings/collection.js +0 -26
- package/test/unit/spec/meetings/index.js +211 -1278
- package/test/unit/spec/meetings/utils.js +2 -202
- package/test/unit/spec/member/index.js +9 -32
- package/test/unit/spec/member/util.js +61 -499
- package/test/unit/spec/members/index.js +5 -394
- package/test/unit/spec/members/request.js +27 -206
- package/test/unit/spec/members/utils.js +38 -173
- package/test/unit/spec/metrics/index.js +50 -1
- package/test/unit/spec/networkQualityMonitor/index.js +4 -4
- package/test/unit/spec/peerconnection-manager/index.js +218 -0
- package/test/unit/spec/peerconnection-manager/utils.js +49 -0
- package/test/unit/spec/peerconnection-manager/utils.test-fixtures.ts +388 -0
- package/test/unit/spec/reachability/index.ts +24 -598
- package/test/unit/spec/reconnection-manager/index.js +24 -162
- package/test/unit/spec/recording-controller/index.js +218 -293
- package/test/unit/spec/recording-controller/util.js +96 -223
- package/test/unit/spec/roap/index.ts +76 -200
- package/test/unit/spec/roap/turnDiscovery.ts +48 -86
- package/test/unit/spec/roap/util.js +30 -0
- package/test/unit/spec/stats-analyzer/index.js +174 -188
- package/test/utils/testUtils.js +45 -0
- package/test/utils/webex-config.js +0 -4
- package/test/utils/webex-test-users.js +3 -7
- package/dist/annotation/annotation.types.d.ts +0 -42
- package/dist/annotation/annotation.types.js +0 -7
- package/dist/annotation/annotation.types.js.map +0 -1
- package/dist/annotation/constants.d.ts +0 -31
- package/dist/annotation/constants.js +0 -41
- package/dist/annotation/constants.js.map +0 -1
- package/dist/annotation/index.d.ts +0 -117
- package/dist/annotation/index.js +0 -357
- package/dist/annotation/index.js.map +0 -1
- package/dist/breakouts/breakout.d.ts +0 -8
- package/dist/breakouts/breakout.js +0 -215
- package/dist/breakouts/breakout.js.map +0 -1
- package/dist/breakouts/collection.d.ts +0 -5
- package/dist/breakouts/collection.js +0 -22
- package/dist/breakouts/collection.js.map +0 -1
- package/dist/breakouts/edit-lock-error.d.ts +0 -15
- package/dist/breakouts/edit-lock-error.js +0 -51
- package/dist/breakouts/edit-lock-error.js.map +0 -1
- package/dist/breakouts/events.d.ts +0 -8
- package/dist/breakouts/events.js +0 -44
- package/dist/breakouts/events.js.map +0 -1
- package/dist/breakouts/index.d.ts +0 -5
- package/dist/breakouts/index.js +0 -1047
- package/dist/breakouts/index.js.map +0 -1
- package/dist/breakouts/request.d.ts +0 -22
- package/dist/breakouts/request.js +0 -77
- package/dist/breakouts/request.js.map +0 -1
- package/dist/breakouts/utils.d.ts +0 -15
- package/dist/breakouts/utils.js +0 -64
- package/dist/breakouts/utils.js.map +0 -1
- package/dist/common/errors/no-meeting-info.d.ts +0 -14
- package/dist/common/errors/no-meeting-info.js +0 -50
- package/dist/common/errors/no-meeting-info.js.map +0 -1
- package/dist/common/errors/reclaim-host-role-errors.js.map +0 -1
- package/dist/controls-options-manager/types.d.ts +0 -43
- package/dist/controls-options-manager/types.js +0 -7
- package/dist/controls-options-manager/types.js.map +0 -1
- package/dist/interpretation/collection.d.ts +0 -5
- package/dist/interpretation/collection.js +0 -22
- package/dist/interpretation/collection.js.map +0 -1
- package/dist/interpretation/index.d.ts +0 -5
- package/dist/interpretation/index.js +0 -365
- package/dist/interpretation/index.js.map +0 -1
- package/dist/interpretation/siLanguage.d.ts +0 -5
- package/dist/interpretation/siLanguage.js +0 -24
- package/dist/interpretation/siLanguage.js.map +0 -1
- package/dist/meeting/locusMediaRequest.d.ts +0 -74
- package/dist/meeting/locusMediaRequest.js +0 -291
- package/dist/meeting/locusMediaRequest.js.map +0 -1
- package/dist/meeting/request.type.d.ts +0 -11
- package/dist/meeting/request.type.js +0 -7
- package/dist/meeting/request.type.js.map +0 -1
- package/dist/meetings/meetings.types.d.ts +0 -4
- package/dist/meetings/meetings.types.js +0 -7
- package/dist/meetings/meetings.types.js.map +0 -1
- package/dist/member/types.d.ts +0 -32
- package/dist/member/types.js +0 -23
- package/dist/member/types.js.map +0 -1
- package/dist/multistream/mediaRequestManager.d.ts +0 -118
- package/dist/multistream/mediaRequestManager.js +0 -344
- package/dist/multistream/mediaRequestManager.js.map +0 -1
- package/dist/multistream/receiveSlot.d.ts +0 -68
- package/dist/multistream/receiveSlot.js +0 -200
- package/dist/multistream/receiveSlot.js.map +0 -1
- package/dist/multistream/receiveSlotManager.d.ts +0 -56
- package/dist/multistream/receiveSlotManager.js +0 -174
- package/dist/multistream/receiveSlotManager.js.map +0 -1
- package/dist/multistream/remoteMedia.d.ts +0 -72
- package/dist/multistream/remoteMedia.js +0 -268
- package/dist/multistream/remoteMedia.js.map +0 -1
- package/dist/multistream/remoteMediaGroup.d.ts +0 -47
- package/dist/multistream/remoteMediaGroup.js +0 -267
- package/dist/multistream/remoteMediaGroup.js.map +0 -1
- package/dist/multistream/remoteMediaManager.d.ts +0 -285
- package/dist/multistream/remoteMediaManager.js +0 -1211
- package/dist/multistream/remoteMediaManager.js.map +0 -1
- package/dist/multistream/sendSlotManager.d.ts +0 -61
- package/dist/multistream/sendSlotManager.js +0 -236
- package/dist/multistream/sendSlotManager.js.map +0 -1
- package/dist/reactions/constants.d.ts +0 -3
- package/dist/reactions/constants.js +0 -12
- package/dist/reactions/constants.js.map +0 -1
- package/dist/rtcMetrics/constants.d.ts +0 -4
- package/dist/rtcMetrics/constants.js +0 -11
- package/dist/rtcMetrics/constants.js.map +0 -1
- package/dist/rtcMetrics/index.d.ts +0 -54
- package/dist/rtcMetrics/index.js +0 -140
- package/dist/rtcMetrics/index.js.map +0 -1
- package/dist/webinar/collection.d.ts +0 -16
- package/dist/webinar/collection.js +0 -43
- package/dist/webinar/collection.js.map +0 -1
- package/dist/webinar/index.d.ts +0 -5
- package/dist/webinar/index.js +0 -68
- package/dist/webinar/index.js.map +0 -1
- package/src/annotation/annotation.types.ts +0 -50
- package/src/annotation/constants.ts +0 -36
- package/src/annotation/index.ts +0 -328
- package/src/breakouts/README.md +0 -220
- package/src/breakouts/breakout.ts +0 -188
- package/src/breakouts/collection.ts +0 -19
- package/src/breakouts/edit-lock-error.ts +0 -25
- package/src/breakouts/events.ts +0 -56
- package/src/breakouts/index.ts +0 -925
- package/src/breakouts/request.ts +0 -55
- package/src/breakouts/utils.ts +0 -57
- package/src/common/errors/no-meeting-info.ts +0 -24
- package/src/controls-options-manager/types.ts +0 -59
- package/src/index.ts +0 -40
- package/src/interpretation/README.md +0 -60
- package/src/interpretation/collection.ts +0 -19
- package/src/interpretation/index.ts +0 -332
- package/src/interpretation/siLanguage.ts +0 -18
- package/src/meeting/locusMediaRequest.ts +0 -313
- package/src/meeting/request.type.ts +0 -13
- package/src/meetings/meetings.types.ts +0 -12
- package/src/member/types.ts +0 -38
- package/src/multistream/mediaRequestManager.ts +0 -440
- package/src/multistream/receiveSlot.ts +0 -184
- package/src/multistream/receiveSlotManager.ts +0 -166
- package/src/multistream/remoteMedia.ts +0 -254
- package/src/multistream/remoteMediaGroup.ts +0 -284
- package/src/multistream/remoteMediaManager.ts +0 -1145
- package/src/multistream/sendSlotManager.ts +0 -170
- package/src/reactions/constants.ts +0 -4
- package/src/rtcMetrics/constants.ts +0 -3
- package/src/rtcMetrics/index.ts +0 -124
- package/src/webinar/collection.ts +0 -31
- package/src/webinar/index.ts +0 -62
- package/test/integration/spec/converged-space-meetings.js +0 -233
- package/test/unit/spec/annotation/index.ts +0 -418
- package/test/unit/spec/breakouts/breakout.ts +0 -237
- package/test/unit/spec/breakouts/collection.ts +0 -15
- package/test/unit/spec/breakouts/edit-lock-error.ts +0 -30
- package/test/unit/spec/breakouts/events.ts +0 -89
- package/test/unit/spec/breakouts/index.ts +0 -1790
- package/test/unit/spec/breakouts/request.ts +0 -104
- package/test/unit/spec/breakouts/utils.js +0 -72
- package/test/unit/spec/interpretation/collection.ts +0 -15
- package/test/unit/spec/interpretation/index.ts +0 -589
- package/test/unit/spec/interpretation/siLanguage.ts +0 -28
- package/test/unit/spec/locus-info/mediaSharesUtils.ts +0 -32
- package/test/unit/spec/media/index.ts +0 -290
- package/test/unit/spec/meeting/locusMediaRequest.ts +0 -442
- package/test/unit/spec/meeting-info/index.js +0 -300
- package/test/unit/spec/multistream/mediaRequestManager.ts +0 -1418
- package/test/unit/spec/multistream/receiveSlot.ts +0 -163
- package/test/unit/spec/multistream/receiveSlotManager.ts +0 -203
- package/test/unit/spec/multistream/remoteMedia.ts +0 -255
- package/test/unit/spec/multistream/remoteMediaGroup.ts +0 -662
- package/test/unit/spec/multistream/remoteMediaManager.ts +0 -1924
- package/test/unit/spec/multistream/sendSlotManager.ts +0 -242
- package/test/unit/spec/reachability/request.js +0 -68
- package/test/unit/spec/roap/request.ts +0 -232
- package/test/unit/spec/rtcMetrics/index.ts +0 -93
- package/test/unit/spec/webinar/collection.ts +0 -13
- package/test/unit/spec/webinar/index.ts +0 -60
- package/test/utils/constants.js +0 -9
- package/test/utils/integrationTestUtils.js +0 -46
- /package/dist/common/errors/{reclaim-host-role-errors.d.ts → reclaim-host-role-error.d.ts} +0 -0
- /package/src/common/errors/{reclaim-host-role-errors.ts → reclaim-host-role-error.ts} +0 -0
package/dist/locus-info/index.js
CHANGED
|
@@ -15,10 +15,12 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/
|
|
|
15
15
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
|
|
16
16
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf"));
|
|
17
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
18
|
-
var
|
|
18
|
+
var _isEqual2 = _interopRequireDefault(require("lodash/isEqual"));
|
|
19
19
|
var _loggerProxy = _interopRequireDefault(require("../common/logs/logger-proxy"));
|
|
20
20
|
var _eventsScope = _interopRequireDefault(require("../common/events/events-scope"));
|
|
21
21
|
var _constants = require("../constants");
|
|
22
|
+
var _metrics = _interopRequireDefault(require("../metrics"));
|
|
23
|
+
var _config = require("../metrics/config");
|
|
22
24
|
var _infoUtils = _interopRequireDefault(require("./infoUtils"));
|
|
23
25
|
var _fullState = _interopRequireDefault(require("./fullState"));
|
|
24
26
|
var _selfUtils = _interopRequireDefault(require("./selfUtils"));
|
|
@@ -27,8 +29,6 @@ var _controlsUtils = _interopRequireDefault(require("./controlsUtils"));
|
|
|
27
29
|
var _embeddedAppsUtils = _interopRequireDefault(require("./embeddedAppsUtils"));
|
|
28
30
|
var _mediaSharesUtils = _interopRequireDefault(require("./mediaSharesUtils"));
|
|
29
31
|
var _parser = _interopRequireDefault(require("./parser"));
|
|
30
|
-
var _metrics = _interopRequireDefault(require("../metrics"));
|
|
31
|
-
var _constants2 = _interopRequireDefault(require("../metrics/constants"));
|
|
32
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); }; }
|
|
33
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; } }
|
|
34
34
|
/**
|
|
@@ -37,16 +37,9 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_R
|
|
|
37
37
|
* @private
|
|
38
38
|
* @class LocusInfo
|
|
39
39
|
*/
|
|
40
|
-
var LocusInfo =
|
|
40
|
+
var LocusInfo = /*#__PURE__*/function (_EventsScope) {
|
|
41
41
|
(0, _inherits2.default)(LocusInfo, _EventsScope);
|
|
42
42
|
var _super = _createSuper(LocusInfo);
|
|
43
|
-
/**
|
|
44
|
-
* Constructor
|
|
45
|
-
* @param {function} updateMeeting callback to update the meeting object from an object
|
|
46
|
-
* @param {object} webex
|
|
47
|
-
* @param {string} meetingId
|
|
48
|
-
* @returns {undefined}
|
|
49
|
-
*/
|
|
50
43
|
function LocusInfo(updateMeeting, webex, meetingId) {
|
|
51
44
|
var _this;
|
|
52
45
|
(0, _classCallCheck2.default)(this, LocusInfo);
|
|
@@ -75,12 +68,10 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
75
68
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "fullState", void 0);
|
|
76
69
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "host", void 0);
|
|
77
70
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "info", void 0);
|
|
78
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "roles", void 0);
|
|
79
71
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mediaShares", void 0);
|
|
80
72
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "replace", void 0);
|
|
81
73
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "url", void 0);
|
|
82
74
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "services", void 0);
|
|
83
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mainSessionLocusCache", void 0);
|
|
84
75
|
_this.parsedLocus = {
|
|
85
76
|
states: []
|
|
86
77
|
};
|
|
@@ -94,95 +85,38 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
94
85
|
}
|
|
95
86
|
|
|
96
87
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
88
|
+
* Apply locus delta data to meeting
|
|
89
|
+
* @param {string} action Locus delta action
|
|
90
|
+
* @param {Locus} locus
|
|
99
91
|
* @param {Meeting} meeting
|
|
100
92
|
* @returns {undefined}
|
|
101
93
|
*/
|
|
102
94
|
(0, _createClass2.default)(LocusInfo, [{
|
|
103
|
-
key: "doLocusSync",
|
|
104
|
-
value: function doLocusSync(meeting) {
|
|
105
|
-
var _this2 = this;
|
|
106
|
-
var isDelta;
|
|
107
|
-
var url;
|
|
108
|
-
if (this.locusParser.workingCopy.syncUrl) {
|
|
109
|
-
url = this.locusParser.workingCopy.syncUrl;
|
|
110
|
-
isDelta = true;
|
|
111
|
-
} else {
|
|
112
|
-
url = meeting.locusUrl;
|
|
113
|
-
isDelta = false;
|
|
114
|
-
}
|
|
115
|
-
_loggerProxy.default.logger.info("Locus-info:index#doLocusSync --> doing Locus sync (getting ".concat(isDelta ? 'delta' : 'full', " DTO)"));
|
|
116
|
-
|
|
117
|
-
// return value ignored on purpose
|
|
118
|
-
meeting.meetingRequest.getLocusDTO({
|
|
119
|
-
url: url
|
|
120
|
-
}).catch(function (e) {
|
|
121
|
-
if (isDelta) {
|
|
122
|
-
_loggerProxy.default.logger.info('Locus-info:index#doLocusSync --> delta sync failed, falling back to full sync');
|
|
123
|
-
_metrics.default.sendBehavioralMetric(_constants2.default.LOCUS_DELTA_SYNC_FAILED, {
|
|
124
|
-
correlationId: meeting.correlationId,
|
|
125
|
-
url: url,
|
|
126
|
-
reason: e.message,
|
|
127
|
-
errorName: e.name,
|
|
128
|
-
stack: e.stack,
|
|
129
|
-
code: e.code
|
|
130
|
-
});
|
|
131
|
-
isDelta = false;
|
|
132
|
-
return meeting.meetingRequest.getLocusDTO({
|
|
133
|
-
url: meeting.locusUrl
|
|
134
|
-
}).catch(function (err) {
|
|
135
|
-
_loggerProxy.default.logger.info('Locus-info:index#doLocusSync --> fallback full sync failed, destroying the meeting');
|
|
136
|
-
_this2.webex.meetings.destroy(meeting, _constants.MEETING_REMOVED_REASON.LOCUS_DTO_SYNC_FAILED);
|
|
137
|
-
throw err;
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
_loggerProxy.default.logger.info('Locus-info:index#doLocusSync --> fallback full sync failed, destroying the meeting');
|
|
141
|
-
_this2.webex.meetings.destroy(meeting, _constants.MEETING_REMOVED_REASON.LOCUS_DTO_SYNC_FAILED);
|
|
142
|
-
throw e;
|
|
143
|
-
}).then(function (res) {
|
|
144
|
-
if (isDelta) {
|
|
145
|
-
if (!(0, _lodash.isEmpty)(res.body)) {
|
|
146
|
-
meeting.locusInfo.handleLocusDelta(res.body, meeting);
|
|
147
|
-
} else {
|
|
148
|
-
_loggerProxy.default.logger.info('Locus-info:index#doLocusSync --> received empty body from syncUrl, so we already have latest Locus DTO');
|
|
149
|
-
}
|
|
150
|
-
} else {
|
|
151
|
-
meeting.locusInfo.onFullLocus(res.body);
|
|
152
|
-
}
|
|
153
|
-
// Notify parser to resume processing delta events.
|
|
154
|
-
// Any deltas in the queue that have now been superseded by this sync will simply be ignored
|
|
155
|
-
_this2.locusParser.resume();
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Apply locus delta data to meeting
|
|
161
|
-
* @param {string} action Locus delta action
|
|
162
|
-
* @param {Locus} locus
|
|
163
|
-
* @param {Meeting} meeting
|
|
164
|
-
* @returns {undefined}
|
|
165
|
-
*/
|
|
166
|
-
}, {
|
|
167
95
|
key: "applyLocusDeltaData",
|
|
168
96
|
value: function applyLocusDeltaData(action, locus, meeting) {
|
|
97
|
+
var _this2 = this;
|
|
169
98
|
var _LocusDeltaParser$loc = _parser.default.loci,
|
|
170
99
|
DESYNC = _LocusDeltaParser$loc.DESYNC,
|
|
171
100
|
USE_CURRENT = _LocusDeltaParser$loc.USE_CURRENT,
|
|
172
|
-
USE_INCOMING = _LocusDeltaParser$loc.USE_INCOMING
|
|
173
|
-
WAIT = _LocusDeltaParser$loc.WAIT,
|
|
174
|
-
LOCUS_URL_CHANGED = _LocusDeltaParser$loc.LOCUS_URL_CHANGED;
|
|
101
|
+
USE_INCOMING = _LocusDeltaParser$loc.USE_INCOMING;
|
|
175
102
|
switch (action) {
|
|
176
103
|
case USE_INCOMING:
|
|
177
104
|
meeting.locusInfo.onDeltaLocus(locus);
|
|
178
105
|
break;
|
|
179
106
|
case USE_CURRENT:
|
|
180
|
-
|
|
181
|
-
|
|
107
|
+
meeting.locusDesync = false;
|
|
108
|
+
meeting.needToGetFullLocus = false;
|
|
182
109
|
break;
|
|
183
110
|
case DESYNC:
|
|
184
|
-
|
|
185
|
-
|
|
111
|
+
meeting.meetingRequest.getFullLocus({
|
|
112
|
+
desync: true,
|
|
113
|
+
locusUrl: meeting.locusUrl
|
|
114
|
+
}).then(function (res) {
|
|
115
|
+
meeting.locusInfo.onFullLocus(res.body);
|
|
116
|
+
// Notify parser to resume processing delta events
|
|
117
|
+
// now that we have full locus from DESYNC.
|
|
118
|
+
_this2.locusParser.resume();
|
|
119
|
+
});
|
|
186
120
|
break;
|
|
187
121
|
default:
|
|
188
122
|
_loggerProxy.default.logger.info("Locus-info:index#applyLocusDeltaData --> Unknown locus delta action: ".concat(action));
|
|
@@ -252,13 +186,13 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
252
186
|
* @member LocusInfo
|
|
253
187
|
*/
|
|
254
188
|
this.deltaParticipants = [];
|
|
255
|
-
|
|
189
|
+
|
|
256
190
|
// above section only updates the locusInfo object
|
|
257
191
|
// The below section makes sure it updates the locusInfo as well as updates the meeting object
|
|
258
192
|
this.updateParticipants(locus.participants);
|
|
259
193
|
// For 1:1 space meeting the conversation Url does not exist in locus.conversation
|
|
260
194
|
this.updateConversationUrl(locus.conversationUrl, locus.info);
|
|
261
|
-
this.updateControls(locus.controls
|
|
195
|
+
this.updateControls(locus.controls);
|
|
262
196
|
this.updateLocusUrl(locus.url);
|
|
263
197
|
this.updateFullState(locus.fullState);
|
|
264
198
|
this.updateMeetingInfo(locus.info);
|
|
@@ -278,7 +212,6 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
278
212
|
}, {
|
|
279
213
|
key: "initialSetup",
|
|
280
214
|
value: function initialSetup(locus) {
|
|
281
|
-
this.updateLocusCache(locus);
|
|
282
215
|
this.onFullLocus(locus);
|
|
283
216
|
|
|
284
217
|
// Change it to true after it receives it first locus object
|
|
@@ -296,7 +229,6 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
296
229
|
value: function parse(meeting, data) {
|
|
297
230
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
298
231
|
var eventType = data.eventType;
|
|
299
|
-
var locus = this.getTheLocusToUpdate(data.locus);
|
|
300
232
|
_loggerProxy.default.logger.info("Locus-info:index#parse --> received locus data: ".concat(eventType));
|
|
301
233
|
switch (eventType) {
|
|
302
234
|
case _constants.LOCUSEVENT.PARTICIPANT_JOIN:
|
|
@@ -313,15 +245,15 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
313
245
|
case _constants.LOCUSEVENT.PARTICIPANT_DECLINED:
|
|
314
246
|
case _constants.LOCUSEVENT.FLOOR_GRANTED:
|
|
315
247
|
case _constants.LOCUSEVENT.FLOOR_RELEASED:
|
|
316
|
-
this.onFullLocus(locus, eventType);
|
|
248
|
+
this.onFullLocus(data.locus, eventType);
|
|
317
249
|
break;
|
|
318
250
|
case _constants.LOCUSEVENT.DIFFERENCE:
|
|
319
|
-
this.handleLocusDelta(locus, meeting);
|
|
251
|
+
this.handleLocusDelta(data.locus, meeting);
|
|
320
252
|
break;
|
|
321
253
|
default:
|
|
322
254
|
// Why will there be a event with no eventType ????
|
|
323
255
|
// we may not need this, we can get full locus
|
|
324
|
-
this.handleLocusDelta(locus, meeting);
|
|
256
|
+
this.handleLocusDelta(data.locus, meeting);
|
|
325
257
|
}
|
|
326
258
|
}
|
|
327
259
|
|
|
@@ -345,22 +277,18 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
345
277
|
* @returns {object} null
|
|
346
278
|
* @memberof LocusInfo
|
|
347
279
|
*/
|
|
280
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
348
281
|
}, {
|
|
349
282
|
key: "onFullLocus",
|
|
350
283
|
value: function onFullLocus(locus, eventType) {
|
|
351
284
|
if (!locus) {
|
|
352
285
|
_loggerProxy.default.logger.error('Locus-info:index#onFullLocus --> object passed as argument was invalid, continuing.');
|
|
353
286
|
}
|
|
354
|
-
if (!this.locusParser.isNewFullLocus(locus)) {
|
|
355
|
-
_loggerProxy.default.logger.info("Locus-info:index#onFullLocus --> ignoring old full locus DTO, eventType=".concat(eventType));
|
|
356
|
-
return;
|
|
357
|
-
}
|
|
358
287
|
this.updateParticipantDeltas(locus.participants);
|
|
359
288
|
this.scheduledMeeting = locus.meeting || null;
|
|
360
289
|
this.participants = locus.participants;
|
|
361
|
-
var isReplaceMembers = _controlsUtils.default.isNeedReplaceMembers(this.controls, locus.controls);
|
|
362
290
|
this.updateLocusInfo(locus);
|
|
363
|
-
this.updateParticipants(locus.participants
|
|
291
|
+
this.updateParticipants(locus.participants);
|
|
364
292
|
this.isMeetingActive();
|
|
365
293
|
this.handleOneOnOneEvent(eventType);
|
|
366
294
|
this.updateEmbeddedApps(locus.embeddedApps);
|
|
@@ -412,9 +340,8 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
412
340
|
}, {
|
|
413
341
|
key: "onDeltaLocus",
|
|
414
342
|
value: function onDeltaLocus(locus) {
|
|
415
|
-
var isReplaceMembers = _controlsUtils.default.isNeedReplaceMembers(this.controls, locus.controls);
|
|
416
343
|
this.updateLocusInfo(locus);
|
|
417
|
-
this.updateParticipants(locus.participants
|
|
344
|
+
this.updateParticipants(locus.participants);
|
|
418
345
|
this.isMeetingActive();
|
|
419
346
|
}
|
|
420
347
|
|
|
@@ -426,14 +353,8 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
426
353
|
}, {
|
|
427
354
|
key: "updateLocusInfo",
|
|
428
355
|
value: function updateLocusInfo(locus) {
|
|
429
|
-
var _locus$
|
|
430
|
-
|
|
431
|
-
// When moved to a breakout session locus sends a message for the previous locus
|
|
432
|
-
// indicating that we have been moved. It isn't helpful to continue parsing this
|
|
433
|
-
// as it gets interpreted as if we have left the call
|
|
434
|
-
return;
|
|
435
|
-
}
|
|
436
|
-
this.updateControls(locus.controls, locus.self);
|
|
356
|
+
var _locus$links2;
|
|
357
|
+
this.updateControls(locus.controls);
|
|
437
358
|
this.updateConversationUrl(locus.conversationUrl, locus.info);
|
|
438
359
|
this.updateCreated(locus.created);
|
|
439
360
|
this.updateFullState(locus.fullState);
|
|
@@ -499,13 +420,9 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
499
420
|
if (this.fullState && this.fullState.state === _constants.LOCUS.STATE.INACTIVE) {
|
|
500
421
|
// TODO: update the meeting state
|
|
501
422
|
_loggerProxy.default.logger.warn('Locus-info:index#isMeetingActive --> Call Ended, locus state is inactive.');
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
name: 'client.call.remote-ended',
|
|
506
|
-
options: {
|
|
507
|
-
meetingId: this.meetingId
|
|
508
|
-
}
|
|
423
|
+
_metrics.default.postEvent({
|
|
424
|
+
event: _config.eventType.REMOTE_ENDED,
|
|
425
|
+
meetingId: this.meetingId
|
|
509
426
|
});
|
|
510
427
|
this.emitScoped({
|
|
511
428
|
file: 'locus-info',
|
|
@@ -515,12 +432,9 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
515
432
|
shouldLeave: false
|
|
516
433
|
});
|
|
517
434
|
} else if (partner.state === _constants.MEETING_STATE.STATES.LEFT && this.parsedLocus.self && (this.parsedLocus.self.state === _constants.MEETING_STATE.STATES.DECLINED || this.parsedLocus.self.state === _constants.MEETING_STATE.STATES.NOTIFIED || this.parsedLocus.self.state === _constants.MEETING_STATE.STATES.JOINED)) {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
options: {
|
|
522
|
-
meetingId: this.meetingId
|
|
523
|
-
}
|
|
435
|
+
_metrics.default.postEvent({
|
|
436
|
+
event: _config.eventType.REMOTE_ENDED,
|
|
437
|
+
meetingId: this.meetingId
|
|
524
438
|
});
|
|
525
439
|
this.emitScoped({
|
|
526
440
|
file: 'locus-info',
|
|
@@ -531,12 +445,9 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
531
445
|
});
|
|
532
446
|
} else if (this.parsedLocus.self && this.parsedLocus.self.state === _constants.MEETING_STATE.STATES.LEFT && (partner.state === _constants.MEETING_STATE.STATES.LEFT || partner.state === _constants.MEETING_STATE.STATES.DECLINED || partner.state === _constants.MEETING_STATE.STATES.NOTIFIED || partner.state === _constants.MEETING_STATE.STATES.IDLE) // Happens when user just joins and adds no Media
|
|
533
447
|
) {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
options: {
|
|
538
|
-
meetingId: this.meetingId
|
|
539
|
-
}
|
|
448
|
+
_metrics.default.postEvent({
|
|
449
|
+
event: _config.eventType.REMOTE_ENDED,
|
|
450
|
+
meetingId: this.meetingId
|
|
540
451
|
});
|
|
541
452
|
this.emitScoped({
|
|
542
453
|
file: 'locus-info',
|
|
@@ -551,13 +462,9 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
551
462
|
// @ts-ignore
|
|
552
463
|
this.fullState.state === _constants.LOCUS.STATE.TERMINATING)) {
|
|
553
464
|
_loggerProxy.default.logger.warn('Locus-info:index#isMeetingActive --> Meeting is ending due to inactive or terminating');
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
name: 'client.call.remote-ended',
|
|
558
|
-
options: {
|
|
559
|
-
meetingId: this.meetingId
|
|
560
|
-
}
|
|
465
|
+
_metrics.default.postEvent({
|
|
466
|
+
event: _config.eventType.REMOTE_ENDED,
|
|
467
|
+
meetingId: this.meetingId
|
|
561
468
|
});
|
|
562
469
|
this.emitScoped({
|
|
563
470
|
file: 'locus-info',
|
|
@@ -568,13 +475,9 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
568
475
|
});
|
|
569
476
|
} else if (this.fullState && this.fullState.removed) {
|
|
570
477
|
// user has been dropped from a meeting
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
name: 'client.call.remote-ended',
|
|
575
|
-
options: {
|
|
576
|
-
meetingId: this.meetingId
|
|
577
|
-
}
|
|
478
|
+
_metrics.default.postEvent({
|
|
479
|
+
event: _config.eventType.REMOTE_ENDED,
|
|
480
|
+
meetingId: this.meetingId
|
|
578
481
|
});
|
|
579
482
|
this.emitScoped({
|
|
580
483
|
file: 'locus-info',
|
|
@@ -697,15 +600,15 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
697
600
|
}
|
|
698
601
|
|
|
699
602
|
/**
|
|
700
|
-
*
|
|
603
|
+
*
|
|
701
604
|
* @param {Object} participants new participants object
|
|
702
|
-
* @param {
|
|
605
|
+
* @param {boolen} deltaParticpantFlag delta event
|
|
703
606
|
* @returns {Array} updatedParticipants
|
|
704
607
|
* @memberof LocusInfo
|
|
705
608
|
*/
|
|
706
609
|
}, {
|
|
707
610
|
key: "updateParticipants",
|
|
708
|
-
value: function updateParticipants(participants
|
|
611
|
+
value: function updateParticipants(participants) {
|
|
709
612
|
var _this$parsedLocus$con;
|
|
710
613
|
this.emitScoped({
|
|
711
614
|
file: 'locus-info',
|
|
@@ -715,21 +618,19 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
715
618
|
recordingId: this.parsedLocus.controls && ((_this$parsedLocus$con = this.parsedLocus.controls.record) === null || _this$parsedLocus$con === void 0 ? void 0 : _this$parsedLocus$con.modifiedBy),
|
|
716
619
|
selfIdentity: this.parsedLocus.self && this.parsedLocus.self.selfIdentity,
|
|
717
620
|
selfId: this.parsedLocus.self && this.parsedLocus.self.selfId,
|
|
718
|
-
hostId: this.parsedLocus.host && this.parsedLocus.host.hostId
|
|
719
|
-
isReplace: isReplace
|
|
621
|
+
hostId: this.parsedLocus.host && this.parsedLocus.host.hostId
|
|
720
622
|
});
|
|
721
623
|
}
|
|
722
624
|
|
|
723
625
|
/**
|
|
724
626
|
* @param {Object} controls
|
|
725
|
-
* @param {Object} self
|
|
726
627
|
* @returns {undefined}
|
|
727
628
|
* @memberof LocusInfo
|
|
728
629
|
*/
|
|
729
630
|
}, {
|
|
730
631
|
key: "updateControls",
|
|
731
|
-
value: function updateControls(controls
|
|
732
|
-
if (controls && !(0,
|
|
632
|
+
value: function updateControls(controls) {
|
|
633
|
+
if (controls && !(0, _isEqual2.default)(this.controls, controls)) {
|
|
733
634
|
this.parsedLocus.controls = _controlsUtils.default.parse(controls);
|
|
734
635
|
var _ControlsUtils$getCon = _controlsUtils.default.getControls(this.controls, controls),
|
|
735
636
|
_ControlsUtils$getCon2 = _ControlsUtils$getCon.updates,
|
|
@@ -738,74 +639,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
738
639
|
hasMeetingContainerChanged = _ControlsUtils$getCon2.hasMeetingContainerChanged,
|
|
739
640
|
hasTranscribeChanged = _ControlsUtils$getCon2.hasTranscribeChanged,
|
|
740
641
|
hasEntryExitToneChanged = _ControlsUtils$getCon2.hasEntryExitToneChanged,
|
|
741
|
-
hasBreakoutChanged = _ControlsUtils$getCon2.hasBreakoutChanged,
|
|
742
|
-
hasVideoEnabledChanged = _ControlsUtils$getCon2.hasVideoEnabledChanged,
|
|
743
|
-
hasMuteOnEntryChanged = _ControlsUtils$getCon2.hasMuteOnEntryChanged,
|
|
744
|
-
hasShareControlChanged = _ControlsUtils$getCon2.hasShareControlChanged,
|
|
745
|
-
hasDisallowUnmuteChanged = _ControlsUtils$getCon2.hasDisallowUnmuteChanged,
|
|
746
|
-
hasReactionsChanged = _ControlsUtils$getCon2.hasReactionsChanged,
|
|
747
|
-
hasReactionDisplayNamesChanged = _ControlsUtils$getCon2.hasReactionDisplayNamesChanged,
|
|
748
|
-
hasViewTheParticipantListChanged = _ControlsUtils$getCon2.hasViewTheParticipantListChanged,
|
|
749
|
-
hasRaiseHandChanged = _ControlsUtils$getCon2.hasRaiseHandChanged,
|
|
750
|
-
hasVideoChanged = _ControlsUtils$getCon2.hasVideoChanged,
|
|
751
|
-
hasInterpretationChanged = _ControlsUtils$getCon2.hasInterpretationChanged,
|
|
752
642
|
current = _ControlsUtils$getCon.current;
|
|
753
|
-
if (hasMuteOnEntryChanged) {
|
|
754
|
-
this.emitScoped({
|
|
755
|
-
file: 'locus-info',
|
|
756
|
-
function: 'updateControls'
|
|
757
|
-
}, _constants.LOCUSINFO.EVENTS.CONTROLS_MUTE_ON_ENTRY_CHANGED, {
|
|
758
|
-
state: current.muteOnEntry
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
if (hasShareControlChanged) {
|
|
762
|
-
this.emitScoped({
|
|
763
|
-
file: 'locus-info',
|
|
764
|
-
function: 'updateControls'
|
|
765
|
-
}, _constants.LOCUSINFO.EVENTS.CONTROLS_SHARE_CONTROL_CHANGED, {
|
|
766
|
-
state: current.shareControl
|
|
767
|
-
});
|
|
768
|
-
}
|
|
769
|
-
if (hasDisallowUnmuteChanged) {
|
|
770
|
-
this.emitScoped({
|
|
771
|
-
file: 'locus-info',
|
|
772
|
-
function: 'updateControls'
|
|
773
|
-
}, _constants.LOCUSINFO.EVENTS.CONTROLS_DISALLOW_UNMUTE_CHANGED, {
|
|
774
|
-
state: current.disallowUnmute
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
if (hasReactionsChanged || hasReactionDisplayNamesChanged) {
|
|
778
|
-
this.emitScoped({
|
|
779
|
-
file: 'locus-info',
|
|
780
|
-
function: 'updateControls'
|
|
781
|
-
}, _constants.LOCUSINFO.EVENTS.CONTROLS_REACTIONS_CHANGED, {
|
|
782
|
-
state: current.reactions
|
|
783
|
-
});
|
|
784
|
-
}
|
|
785
|
-
if (hasViewTheParticipantListChanged) {
|
|
786
|
-
this.emitScoped({
|
|
787
|
-
file: 'locus-info',
|
|
788
|
-
function: 'updateControls'
|
|
789
|
-
}, _constants.LOCUSINFO.EVENTS.CONTROLS_VIEW_THE_PARTICIPANTS_LIST_CHANGED, {
|
|
790
|
-
state: current.viewTheParticipantList
|
|
791
|
-
});
|
|
792
|
-
}
|
|
793
|
-
if (hasRaiseHandChanged) {
|
|
794
|
-
this.emitScoped({
|
|
795
|
-
file: 'locus-info',
|
|
796
|
-
function: 'updateControls'
|
|
797
|
-
}, _constants.LOCUSINFO.EVENTS.CONTROLS_RAISE_HAND_CHANGED, {
|
|
798
|
-
state: current.raiseHand
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
if (hasVideoChanged) {
|
|
802
|
-
this.emitScoped({
|
|
803
|
-
file: 'locus-info',
|
|
804
|
-
function: 'updateControls'
|
|
805
|
-
}, _constants.LOCUSINFO.EVENTS.CONTROLS_VIDEO_CHANGED, {
|
|
806
|
-
state: current.video
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
643
|
if (hasRecordingChanged || hasRecordingPausedChanged) {
|
|
810
644
|
var state = null;
|
|
811
645
|
if (hasRecordingPausedChanged) {
|
|
@@ -848,51 +682,16 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
848
682
|
caption: caption
|
|
849
683
|
});
|
|
850
684
|
}
|
|
851
|
-
if (hasBreakoutChanged) {
|
|
852
|
-
var breakout = current.breakout;
|
|
853
|
-
breakout.breakoutMoveId = _selfUtils.default.getReplacedBreakoutMoveId(self, this.webex.internal.device.url);
|
|
854
|
-
this.emitScoped({
|
|
855
|
-
file: 'locus-info',
|
|
856
|
-
function: 'updateControls'
|
|
857
|
-
}, _constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_BREAKOUT_UPDATED, {
|
|
858
|
-
breakout: breakout
|
|
859
|
-
});
|
|
860
|
-
}
|
|
861
|
-
if (hasInterpretationChanged) {
|
|
862
|
-
var interpretation = current.interpretation;
|
|
863
|
-
this.emitScoped({
|
|
864
|
-
file: 'locus-info',
|
|
865
|
-
function: 'updateControls'
|
|
866
|
-
}, _constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_INTERPRETATION_UPDATED, {
|
|
867
|
-
interpretation: interpretation
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
685
|
if (hasEntryExitToneChanged) {
|
|
871
686
|
var entryExitTone = current.entryExitTone;
|
|
872
|
-
this.updateMeeting({
|
|
873
|
-
entryExitTone: entryExitTone
|
|
874
|
-
});
|
|
875
687
|
this.emitScoped({
|
|
876
688
|
file: 'locus-info',
|
|
877
689
|
function: 'updateControls'
|
|
878
690
|
}, _constants.LOCUSINFO.EVENTS.CONTROLS_ENTRY_EXIT_TONE_UPDATED, {
|
|
879
691
|
entryExitTone: entryExitTone
|
|
880
692
|
});
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
// videoEnabled is handled differently than other controls,
|
|
884
|
-
// to fit with audio mute status logic
|
|
885
|
-
if (hasVideoEnabledChanged) {
|
|
886
|
-
var videoEnabled = current.videoEnabled;
|
|
887
693
|
this.updateMeeting({
|
|
888
|
-
|
|
889
|
-
});
|
|
890
|
-
this.emitScoped({
|
|
891
|
-
file: 'locus-info',
|
|
892
|
-
function: 'updateControls'
|
|
893
|
-
}, _constants.LOCUSINFO.EVENTS.SELF_REMOTE_VIDEO_MUTE_STATUS_UPDATED, {
|
|
894
|
-
// muted: not part of locus.controls
|
|
895
|
-
unmuteAllowed: videoEnabled
|
|
694
|
+
entryExitTone: entryExitTone
|
|
896
695
|
});
|
|
897
696
|
}
|
|
898
697
|
this.controls = controls;
|
|
@@ -908,12 +707,12 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
908
707
|
}, {
|
|
909
708
|
key: "updateConversationUrl",
|
|
910
709
|
value: function updateConversationUrl(conversationUrl, info) {
|
|
911
|
-
if (conversationUrl && !(0,
|
|
710
|
+
if (conversationUrl && !(0, _isEqual2.default)(this.conversationUrl, conversationUrl)) {
|
|
912
711
|
this.conversationUrl = conversationUrl;
|
|
913
712
|
this.updateMeeting({
|
|
914
713
|
conversationUrl: conversationUrl
|
|
915
714
|
});
|
|
916
|
-
} else if (info && info.conversationUrl && !(0,
|
|
715
|
+
} else if (info && info.conversationUrl && !(0, _isEqual2.default)(this.conversationUrl, info.conversationUrl)) {
|
|
917
716
|
this.conversationUrl = info.conversationUrl;
|
|
918
717
|
this.updateMeeting({
|
|
919
718
|
conversationUrl: info.conversationUrl
|
|
@@ -929,7 +728,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
929
728
|
}, {
|
|
930
729
|
key: "updateCreated",
|
|
931
730
|
value: function updateCreated(created) {
|
|
932
|
-
if (created && !(0,
|
|
731
|
+
if (created && !(0, _isEqual2.default)(this.created, created)) {
|
|
933
732
|
this.created = created;
|
|
934
733
|
}
|
|
935
734
|
}
|
|
@@ -942,7 +741,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
942
741
|
}, {
|
|
943
742
|
key: "updateServices",
|
|
944
743
|
value: function updateServices(services) {
|
|
945
|
-
if (services && !(0,
|
|
744
|
+
if (services && !(0, _isEqual2.default)(this.services, services)) {
|
|
946
745
|
this.services = services;
|
|
947
746
|
this.emitScoped({
|
|
948
747
|
file: 'locus-info',
|
|
@@ -961,7 +760,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
961
760
|
}, {
|
|
962
761
|
key: "updateFullState",
|
|
963
762
|
value: function updateFullState(fullState) {
|
|
964
|
-
if (fullState && !(0,
|
|
763
|
+
if (fullState && !(0, _isEqual2.default)(this.fullState, fullState)) {
|
|
965
764
|
var result = _fullState.default.getFullState(this.fullState, fullState);
|
|
966
765
|
this.updateMeeting(result.current);
|
|
967
766
|
if (result.updates.meetingStateChangedTo) {
|
|
@@ -996,7 +795,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
996
795
|
}, {
|
|
997
796
|
key: "updateHostInfo",
|
|
998
797
|
value: function updateHostInfo(host) {
|
|
999
|
-
if (host && !(0,
|
|
798
|
+
if (host && !(0, _isEqual2.default)(this.host, host)) {
|
|
1000
799
|
var parsedHosts = _hostUtils.default.getHosts(this.host, host);
|
|
1001
800
|
this.updateMeeting(parsedHosts.current);
|
|
1002
801
|
this.parsedLocus.host = parsedHosts.current;
|
|
@@ -1025,11 +824,18 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1025
824
|
}, {
|
|
1026
825
|
key: "updateMeetingInfo",
|
|
1027
826
|
value: function updateMeetingInfo(info, self) {
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
827
|
+
if (info && !(0, _isEqual2.default)(this.info, info)) {
|
|
828
|
+
var _this$parsedLocus$sel;
|
|
829
|
+
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) || [];
|
|
1031
830
|
var isJoined = _selfUtils.default.isJoined(self || this.parsedLocus.self);
|
|
1032
831
|
var parsedInfo = _infoUtils.default.getInfos(this.parsedLocus.info, info, roles, isJoined);
|
|
832
|
+
this.emitScoped({
|
|
833
|
+
file: 'locus-info',
|
|
834
|
+
function: 'updateMeetingInfo'
|
|
835
|
+
}, _constants.LOCUSINFO.EVENTS.MEETING_INFO_UPDATED, {
|
|
836
|
+
info: parsedInfo.current,
|
|
837
|
+
self: self
|
|
838
|
+
});
|
|
1033
839
|
if (parsedInfo.updates.isLocked) {
|
|
1034
840
|
this.emitScoped({
|
|
1035
841
|
file: 'locus-info',
|
|
@@ -1046,12 +852,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1046
852
|
this.parsedLocus.info = parsedInfo.current;
|
|
1047
853
|
// Parses the info and adds necessary values
|
|
1048
854
|
this.updateMeeting(parsedInfo.current);
|
|
1049
|
-
this.emitScoped({
|
|
1050
|
-
file: 'locus-info',
|
|
1051
|
-
function: 'updateMeetingInfo'
|
|
1052
|
-
}, _constants.LOCUSINFO.EVENTS.MEETING_INFO_UPDATED);
|
|
1053
855
|
}
|
|
1054
|
-
this.roles = roles;
|
|
1055
856
|
}
|
|
1056
857
|
|
|
1057
858
|
/**
|
|
@@ -1087,11 +888,9 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1087
888
|
}, {
|
|
1088
889
|
key: "updateMediaShares",
|
|
1089
890
|
value: function updateMediaShares(mediaShares) {
|
|
1090
|
-
if (mediaShares && !(0,
|
|
891
|
+
if (mediaShares && !(0, _isEqual2.default)(this.mediaShares, mediaShares)) {
|
|
1091
892
|
var parsedMediaShares = _mediaSharesUtils.default.getMediaShares(this.mediaShares, mediaShares);
|
|
1092
893
|
this.updateMeeting(parsedMediaShares.current);
|
|
1093
|
-
this.parsedLocus.mediaShares = parsedMediaShares.current;
|
|
1094
|
-
this.mediaShares = mediaShares;
|
|
1095
894
|
this.emitScoped({
|
|
1096
895
|
file: 'locus-info',
|
|
1097
896
|
function: 'updateMediaShares'
|
|
@@ -1099,6 +898,8 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1099
898
|
current: parsedMediaShares.current,
|
|
1100
899
|
previous: parsedMediaShares.previous
|
|
1101
900
|
});
|
|
901
|
+
this.parsedLocus.mediaShares = parsedMediaShares.current;
|
|
902
|
+
this.mediaShares = mediaShares;
|
|
1102
903
|
}
|
|
1103
904
|
}
|
|
1104
905
|
|
|
@@ -1110,7 +911,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1110
911
|
}, {
|
|
1111
912
|
key: "updateParticipantsUrl",
|
|
1112
913
|
value: function updateParticipantsUrl(participantsUrl) {
|
|
1113
|
-
if (participantsUrl && !(0,
|
|
914
|
+
if (participantsUrl && !(0, _isEqual2.default)(this.participantsUrl, participantsUrl)) {
|
|
1114
915
|
this.participantsUrl = participantsUrl;
|
|
1115
916
|
}
|
|
1116
917
|
}
|
|
@@ -1123,7 +924,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1123
924
|
}, {
|
|
1124
925
|
key: "updateReplace",
|
|
1125
926
|
value: function updateReplace(replace) {
|
|
1126
|
-
if (replace && !(0,
|
|
927
|
+
if (replace && !(0, _isEqual2.default)(this.replace, replace)) {
|
|
1127
928
|
this.replace = replace;
|
|
1128
929
|
}
|
|
1129
930
|
}
|
|
@@ -1140,7 +941,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1140
941
|
key: "updateSelf",
|
|
1141
942
|
value: function updateSelf(self, participants) {
|
|
1142
943
|
// @ts-ignore - check where this.self come from
|
|
1143
|
-
if (self && !(0,
|
|
944
|
+
if (self && !(0, _isEqual2.default)(this.self, self)) {
|
|
1144
945
|
// @ts-ignore
|
|
1145
946
|
var parsedSelves = _selfUtils.default.getSelves(this.self, self, this.webex.internal.device.url);
|
|
1146
947
|
this.updateMeeting(parsedSelves.current);
|
|
@@ -1169,23 +970,6 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1169
970
|
layout: parsedSelves.current.layout
|
|
1170
971
|
});
|
|
1171
972
|
}
|
|
1172
|
-
if (parsedSelves.updates.breakoutsChanged) {
|
|
1173
|
-
this.emitScoped({
|
|
1174
|
-
file: 'locus-info',
|
|
1175
|
-
function: 'updateSelf'
|
|
1176
|
-
}, _constants.LOCUSINFO.EVENTS.SELF_MEETING_BREAKOUTS_CHANGED, {
|
|
1177
|
-
breakoutSessions: parsedSelves.current.breakoutSessions
|
|
1178
|
-
});
|
|
1179
|
-
}
|
|
1180
|
-
if (parsedSelves.updates.interpretationChanged) {
|
|
1181
|
-
this.emitScoped({
|
|
1182
|
-
file: 'locus-info',
|
|
1183
|
-
function: 'updateSelf'
|
|
1184
|
-
}, _constants.LOCUSINFO.EVENTS.SELF_MEETING_INTERPRETATION_CHANGED, {
|
|
1185
|
-
interpretation: parsedSelves.current.interpretation,
|
|
1186
|
-
selfParticipantId: parsedSelves.current.selfId
|
|
1187
|
-
});
|
|
1188
|
-
}
|
|
1189
973
|
if (parsedSelves.updates.isMediaInactiveOrReleased) {
|
|
1190
974
|
this.emitScoped({
|
|
1191
975
|
file: 'locus-info',
|
|
@@ -1200,26 +984,6 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1200
984
|
function: 'updateSelf'
|
|
1201
985
|
}, _constants.LOCUSINFO.EVENTS.SELF_MODERATOR_CHANGED, self);
|
|
1202
986
|
}
|
|
1203
|
-
if (parsedSelves.updates.isRolesChanged) {
|
|
1204
|
-
var _parsedSelves$previou, _parsedSelves$current;
|
|
1205
|
-
this.emitScoped({
|
|
1206
|
-
file: 'locus-info',
|
|
1207
|
-
function: 'updateSelf'
|
|
1208
|
-
}, _constants.LOCUSINFO.EVENTS.SELF_ROLES_CHANGED, {
|
|
1209
|
-
oldRoles: (_parsedSelves$previou = parsedSelves.previous) === null || _parsedSelves$previou === void 0 ? void 0 : _parsedSelves$previou.roles,
|
|
1210
|
-
newRoles: (_parsedSelves$current = parsedSelves.current) === null || _parsedSelves$current === void 0 ? void 0 : _parsedSelves$current.roles
|
|
1211
|
-
});
|
|
1212
|
-
}
|
|
1213
|
-
if (parsedSelves.updates.isVideoMutedByOthersChanged) {
|
|
1214
|
-
this.emitScoped({
|
|
1215
|
-
file: 'locus-info',
|
|
1216
|
-
function: 'updateSelf'
|
|
1217
|
-
}, _constants.LOCUSINFO.EVENTS.SELF_REMOTE_VIDEO_MUTE_STATUS_UPDATED, {
|
|
1218
|
-
muted: parsedSelves.current.remoteVideoMuted
|
|
1219
|
-
// unmuteAllowed: not part of .self
|
|
1220
|
-
});
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
987
|
if (parsedSelves.updates.localAudioUnmuteRequiredByServer) {
|
|
1224
988
|
this.emitScoped({
|
|
1225
989
|
file: 'locus-info',
|
|
@@ -1265,14 +1029,14 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1265
1029
|
_constants.LOCUSINFO.EVENTS.MEDIA_INACTIVITY, _selfUtils.default.getMediaStatus(self.mediaSessions));
|
|
1266
1030
|
}
|
|
1267
1031
|
if (parsedSelves.updates.audioStateChange || parsedSelves.updates.videoStateChange || parsedSelves.updates.shareStateChange) {
|
|
1268
|
-
var _parsedSelves$
|
|
1032
|
+
var _parsedSelves$current, _parsedSelves$current2, _parsedSelves$current3;
|
|
1269
1033
|
this.emitScoped({
|
|
1270
1034
|
file: 'locus-info',
|
|
1271
1035
|
function: 'updateSelf'
|
|
1272
1036
|
}, _constants.LOCUSINFO.EVENTS.MEDIA_STATUS_CHANGE, {
|
|
1273
|
-
audioStatus: (_parsedSelves$
|
|
1274
|
-
videoStatus: (_parsedSelves$
|
|
1275
|
-
shareStatus: (_parsedSelves$
|
|
1037
|
+
audioStatus: (_parsedSelves$current = parsedSelves.current.currentMediaStatus) === null || _parsedSelves$current === void 0 ? void 0 : _parsedSelves$current.audio,
|
|
1038
|
+
videoStatus: (_parsedSelves$current2 = parsedSelves.current.currentMediaStatus) === null || _parsedSelves$current2 === void 0 ? void 0 : _parsedSelves$current2.video,
|
|
1039
|
+
shareStatus: (_parsedSelves$current3 = parsedSelves.current.currentMediaStatus) === null || _parsedSelves$current3 === void 0 ? void 0 : _parsedSelves$current3.share
|
|
1276
1040
|
});
|
|
1277
1041
|
}
|
|
1278
1042
|
if (parsedSelves.updates.isUserObserving) {
|
|
@@ -1341,7 +1105,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1341
1105
|
}, {
|
|
1342
1106
|
key: "updateAclUrl",
|
|
1343
1107
|
value: function updateAclUrl(aclUrl) {
|
|
1344
|
-
if (aclUrl && !(0,
|
|
1108
|
+
if (aclUrl && !(0, _isEqual2.default)(this.aclUrl, aclUrl)) {
|
|
1345
1109
|
this.aclUrl = aclUrl;
|
|
1346
1110
|
}
|
|
1347
1111
|
}
|
|
@@ -1354,7 +1118,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1354
1118
|
}, {
|
|
1355
1119
|
key: "updateBasequence",
|
|
1356
1120
|
value: function updateBasequence(baseSequence) {
|
|
1357
|
-
if (baseSequence && !(0,
|
|
1121
|
+
if (baseSequence && !(0, _isEqual2.default)(this.baseSequence, baseSequence)) {
|
|
1358
1122
|
this.baseSequence = baseSequence;
|
|
1359
1123
|
}
|
|
1360
1124
|
}
|
|
@@ -1367,7 +1131,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1367
1131
|
}, {
|
|
1368
1132
|
key: "updateSequence",
|
|
1369
1133
|
value: function updateSequence(sequence) {
|
|
1370
|
-
if (sequence && !(0,
|
|
1134
|
+
if (sequence && !(0, _isEqual2.default)(this.sequence, sequence)) {
|
|
1371
1135
|
this.sequence = sequence;
|
|
1372
1136
|
}
|
|
1373
1137
|
}
|
|
@@ -1380,7 +1144,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1380
1144
|
}, {
|
|
1381
1145
|
key: "updateMemberShip",
|
|
1382
1146
|
value: function updateMemberShip(membership) {
|
|
1383
|
-
if (membership && !(0,
|
|
1147
|
+
if (membership && !(0, _isEqual2.default)(this.membership, membership)) {
|
|
1384
1148
|
this.membership = membership;
|
|
1385
1149
|
}
|
|
1386
1150
|
}
|
|
@@ -1393,117 +1157,12 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1393
1157
|
}, {
|
|
1394
1158
|
key: "updateIdentifiers",
|
|
1395
1159
|
value: function updateIdentifiers(identities) {
|
|
1396
|
-
if (identities && !(0,
|
|
1160
|
+
if (identities && !(0, _isEqual2.default)(this.identities, identities)) {
|
|
1397
1161
|
this.identities = identities;
|
|
1398
1162
|
}
|
|
1399
1163
|
}
|
|
1400
|
-
|
|
1401
|
-
/**
|
|
1402
|
-
* check the locus is main session's one or not, if is main session's, update main session cache
|
|
1403
|
-
* @param {Object} locus
|
|
1404
|
-
* @returns {undefined}
|
|
1405
|
-
* @memberof LocusInfo
|
|
1406
|
-
*/
|
|
1407
|
-
}, {
|
|
1408
|
-
key: "updateLocusCache",
|
|
1409
|
-
value: function updateLocusCache(locus) {
|
|
1410
|
-
var isMainSessionDTO = _controlsUtils.default.isMainSessionDTO(locus);
|
|
1411
|
-
if (isMainSessionDTO) {
|
|
1412
|
-
this.updateMainSessionLocusCache(locus);
|
|
1413
|
-
}
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
/**
|
|
1417
|
-
* if return from breakout to main session, need to use cached main session DTO since locus won't send the full locus (participants)
|
|
1418
|
-
* if join breakout from main session, need to query main locus url (if response with 403 means no privilege, need to clear the cache)
|
|
1419
|
-
* @param {Object} newLocus
|
|
1420
|
-
* @returns {Object}
|
|
1421
|
-
* @memberof LocusInfo
|
|
1422
|
-
*/
|
|
1423
|
-
}, {
|
|
1424
|
-
key: "getTheLocusToUpdate",
|
|
1425
|
-
value: function getTheLocusToUpdate(newLocus) {
|
|
1426
|
-
var switchStatus = _controlsUtils.default.getSessionSwitchStatus(this.controls, newLocus === null || newLocus === void 0 ? void 0 : newLocus.controls);
|
|
1427
|
-
if (switchStatus.isReturnToMain && this.mainSessionLocusCache) {
|
|
1428
|
-
return (0, _lodash.cloneDeep)(this.mainSessionLocusCache);
|
|
1429
|
-
}
|
|
1430
|
-
if (switchStatus.isJoinToBreakout) {
|
|
1431
|
-
this.emitScoped({
|
|
1432
|
-
file: 'locus-info',
|
|
1433
|
-
function: 'updateControls'
|
|
1434
|
-
}, _constants.LOCUSINFO.EVENTS.CONTROLS_JOIN_BREAKOUT_FROM_MAIN, {
|
|
1435
|
-
mainLocusUrl: this.url
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
return newLocus;
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
/**
|
|
1442
|
-
* merge participants by participant id
|
|
1443
|
-
* @param {Array} participants
|
|
1444
|
-
* @param {Array} sourceParticipants
|
|
1445
|
-
* @returns {Array} merged participants
|
|
1446
|
-
* @memberof LocusInfo
|
|
1447
|
-
*/
|
|
1448
|
-
// eslint-disable-next-line class-methods-use-this
|
|
1449
|
-
}, {
|
|
1450
|
-
key: "mergeParticipants",
|
|
1451
|
-
value: function mergeParticipants(participants, sourceParticipants) {
|
|
1452
|
-
if (!sourceParticipants || !sourceParticipants.length) return participants;
|
|
1453
|
-
if (!participants || !participants.length) {
|
|
1454
|
-
return sourceParticipants;
|
|
1455
|
-
}
|
|
1456
|
-
sourceParticipants.forEach(function (participant) {
|
|
1457
|
-
var existIndex = participants.findIndex(function (p) {
|
|
1458
|
-
return p.id === participant.id;
|
|
1459
|
-
});
|
|
1460
|
-
if (existIndex > -1) {
|
|
1461
|
-
participants.splice(existIndex, 1, participant);
|
|
1462
|
-
} else {
|
|
1463
|
-
participants.push(participant);
|
|
1464
|
-
}
|
|
1465
|
-
});
|
|
1466
|
-
return participants;
|
|
1467
|
-
}
|
|
1468
|
-
|
|
1469
|
-
/**
|
|
1470
|
-
* need cache main sessions' participants since locus will not send the full list when cohost/host leave breakout
|
|
1471
|
-
* @param {Object} mainLocus
|
|
1472
|
-
* @returns {undefined}
|
|
1473
|
-
* @memberof LocusInfo
|
|
1474
|
-
*/
|
|
1475
|
-
}, {
|
|
1476
|
-
key: "updateMainSessionLocusCache",
|
|
1477
|
-
value: function updateMainSessionLocusCache(mainLocus) {
|
|
1478
|
-
var _this5 = this;
|
|
1479
|
-
if (!mainLocus) {
|
|
1480
|
-
return;
|
|
1481
|
-
}
|
|
1482
|
-
var locusClone = (0, _lodash.cloneDeep)(mainLocus);
|
|
1483
|
-
if (this.mainSessionLocusCache) {
|
|
1484
|
-
// shallow merge and do special merge for participants
|
|
1485
|
-
(0, _lodash.assignWith)(this.mainSessionLocusCache, locusClone, function (objValue, srcValue, key) {
|
|
1486
|
-
if (key === 'participants') {
|
|
1487
|
-
return _this5.mergeParticipants(objValue, srcValue);
|
|
1488
|
-
}
|
|
1489
|
-
return srcValue || objValue;
|
|
1490
|
-
});
|
|
1491
|
-
} else {
|
|
1492
|
-
this.mainSessionLocusCache = locusClone;
|
|
1493
|
-
}
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
/**
|
|
1497
|
-
* clear main session cache
|
|
1498
|
-
* @returns {undefined}
|
|
1499
|
-
* @memberof LocusInfo
|
|
1500
|
-
*/
|
|
1501
|
-
}, {
|
|
1502
|
-
key: "clearMainSessionLocusCache",
|
|
1503
|
-
value: function clearMainSessionLocusCache() {
|
|
1504
|
-
this.mainSessionLocusCache = null;
|
|
1505
|
-
}
|
|
1506
1164
|
}]);
|
|
1507
1165
|
return LocusInfo;
|
|
1508
1166
|
}(_eventsScope.default);
|
|
1167
|
+
exports.default = LocusInfo;
|
|
1509
1168
|
//# sourceMappingURL=index.js.map
|