@webex/plugin-meetings 3.0.0-beta.16 → 3.0.0-beta.161
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 +45 -1
- package/dist/annotation/annotation.types.js +7 -0
- package/dist/annotation/annotation.types.js.map +1 -0
- package/dist/annotation/constants.js +49 -0
- package/dist/annotation/constants.js.map +1 -0
- package/dist/annotation/index.js +359 -0
- package/dist/annotation/index.js.map +1 -0
- package/dist/breakouts/breakout.js +212 -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/edit-lock-error.js +52 -0
- package/dist/breakouts/edit-lock-error.js.map +1 -0
- package/dist/breakouts/events.js +43 -0
- package/dist/breakouts/events.js.map +1 -0
- package/dist/breakouts/index.js +1046 -0
- package/dist/breakouts/index.js.map +1 -0
- package/dist/breakouts/request.js +78 -0
- package/dist/breakouts/request.js.map +1 -0
- package/dist/breakouts/utils.js +67 -0
- package/dist/breakouts/utils.js.map +1 -0
- package/dist/common/errors/webex-errors.js +3 -2
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/logs/logger-proxy.js +1 -1
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/config.js +6 -8
- package/dist/config.js.map +1 -1
- package/dist/constants.js +175 -26
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js +14 -0
- package/dist/controls-options-manager/constants.js.map +1 -0
- package/dist/controls-options-manager/enums.js +27 -0
- package/dist/controls-options-manager/enums.js.map +1 -0
- package/dist/controls-options-manager/index.js +297 -0
- package/dist/controls-options-manager/index.js.map +1 -0
- package/dist/controls-options-manager/types.js +7 -0
- package/dist/controls-options-manager/types.js.map +1 -0
- package/dist/controls-options-manager/util.js +300 -0
- package/dist/controls-options-manager/util.js.map +1 -0
- package/dist/index.js +77 -0
- package/dist/index.js.map +1 -1
- package/dist/interpretation/collection.js +23 -0
- package/dist/interpretation/collection.js.map +1 -0
- package/dist/interpretation/index.js +214 -0
- package/dist/interpretation/index.js.map +1 -0
- package/dist/interpretation/siLanguage.js +25 -0
- package/dist/interpretation/siLanguage.js.map +1 -0
- package/dist/locus-info/controlsUtils.js +92 -2
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +317 -24
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js +43 -1
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.js +2 -1
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js +97 -14
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.js +39 -134
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +19 -97
- package/dist/media/properties.js.map +1 -1
- package/dist/mediaQualityMetrics/config.js +505 -493
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +79 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +2349 -2178
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +291 -0
- package/dist/meeting/locusMediaRequest.js.map +1 -0
- package/dist/meeting/muteState.js +229 -124
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +191 -167
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js.map +1 -1
- package/dist/meeting/util.js +444 -443
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +157 -49
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/utilv2.js +20 -5
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.js +22 -0
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.js +365 -73
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js +7 -0
- package/dist/meetings/meetings.types.js.map +1 -0
- package/dist/meetings/request.js +16 -12
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +88 -1
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +43 -0
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js +15 -0
- package/dist/member/types.js.map +1 -0
- package/dist/member/util.js +97 -3
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.js +10 -0
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.js +94 -11
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +109 -39
- package/dist/members/request.js.map +1 -1
- package/dist/members/types.js +15 -0
- package/dist/members/types.js.map +1 -0
- package/dist/members/util.js +316 -233
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/config.js +50 -14
- package/dist/metrics/config.js.map +1 -1
- package/dist/metrics/constants.js +3 -5
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +48 -29
- package/dist/metrics/index.js.map +1 -1
- package/dist/multistream/mediaRequestManager.js +265 -36
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +52 -19
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/receiveSlotManager.js +53 -33
- package/dist/multistream/receiveSlotManager.js.map +1 -1
- package/dist/multistream/remoteMedia.js +44 -18
- package/dist/multistream/remoteMedia.js.map +1 -1
- package/dist/multistream/remoteMediaGroup.js +60 -3
- package/dist/multistream/remoteMediaGroup.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +322 -103
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/networkQualityMonitor/index.js +4 -2
- package/dist/networkQualityMonitor/index.js.map +1 -1
- package/dist/reachability/index.js +117 -60
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.js +12 -5
- 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 +2 -2
- package/dist/reactions/reactions.js.map +1 -1
- package/dist/reactions/reactions.type.js +18 -18
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.js +190 -145
- 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 +21 -29
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js +127 -92
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/turnDiscovery.js +135 -53
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/statsAnalyzer/global.js +1 -93
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/statsAnalyzer/index.js +329 -314
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.js +103 -54
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/types/annotation/annotation.types.d.ts +43 -0
- package/dist/types/annotation/constants.d.ts +31 -0
- package/dist/types/annotation/index.d.ts +124 -0
- package/dist/types/breakouts/breakout.d.ts +8 -0
- package/dist/types/breakouts/collection.d.ts +5 -0
- package/dist/types/breakouts/edit-lock-error.d.ts +15 -0
- package/dist/types/breakouts/events.d.ts +2 -0
- package/dist/types/breakouts/index.d.ts +5 -0
- package/dist/types/breakouts/request.d.ts +22 -0
- package/dist/types/breakouts/utils.d.ts +15 -0
- package/dist/types/common/browser-detection.d.ts +9 -0
- package/dist/types/common/collection.d.ts +48 -0
- package/dist/types/common/config.d.ts +2 -0
- package/dist/types/common/errors/captcha-error.d.ts +15 -0
- package/dist/types/common/errors/intent-to-join.d.ts +16 -0
- package/dist/types/common/errors/join-meeting.d.ts +17 -0
- package/dist/types/common/errors/media.d.ts +15 -0
- package/dist/types/common/errors/parameter.d.ts +15 -0
- package/dist/types/common/errors/password-error.d.ts +15 -0
- package/dist/types/common/errors/permission.d.ts +14 -0
- package/dist/types/common/errors/reconnection-in-progress.d.ts +9 -0
- package/dist/types/common/errors/reconnection.d.ts +15 -0
- package/dist/types/common/errors/stats.d.ts +15 -0
- package/dist/types/common/errors/webex-errors.d.ts +69 -0
- package/dist/types/common/errors/webex-meetings-error.d.ts +20 -0
- package/dist/types/common/events/events-scope.d.ts +17 -0
- package/dist/types/common/events/events.d.ts +12 -0
- package/dist/types/common/events/trigger-proxy.d.ts +2 -0
- package/dist/types/common/events/util.d.ts +2 -0
- package/dist/types/common/logs/logger-config.d.ts +2 -0
- package/dist/types/common/logs/logger-proxy.d.ts +2 -0
- package/dist/types/common/logs/request.d.ts +34 -0
- package/dist/types/common/queue.d.ts +32 -0
- package/dist/types/config.d.ts +72 -0
- package/dist/types/constants.d.ts +987 -0
- package/dist/types/controls-options-manager/constants.d.ts +4 -0
- package/dist/types/controls-options-manager/enums.d.ts +15 -0
- package/dist/types/controls-options-manager/index.d.ts +136 -0
- package/dist/types/controls-options-manager/types.d.ts +43 -0
- package/dist/types/controls-options-manager/util.d.ts +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/interpretation/collection.d.ts +5 -0
- package/dist/types/interpretation/index.d.ts +5 -0
- package/dist/types/interpretation/siLanguage.d.ts +5 -0
- package/dist/types/locus-info/controlsUtils.d.ts +2 -0
- package/dist/types/locus-info/embeddedAppsUtils.d.ts +2 -0
- package/dist/types/locus-info/fullState.d.ts +2 -0
- package/dist/types/locus-info/hostUtils.d.ts +2 -0
- package/dist/types/locus-info/index.d.ts +315 -0
- package/dist/types/locus-info/infoUtils.d.ts +2 -0
- package/dist/types/locus-info/mediaSharesUtils.d.ts +2 -0
- package/dist/types/locus-info/parser.d.ts +212 -0
- package/dist/types/locus-info/selfUtils.d.ts +2 -0
- package/dist/types/media/index.d.ts +34 -0
- package/dist/types/media/properties.d.ts +86 -0
- package/dist/types/media/util.d.ts +2 -0
- package/dist/types/mediaQualityMetrics/config.d.ts +365 -0
- package/dist/types/meeting/in-meeting-actions.d.ts +149 -0
- package/dist/types/meeting/index.d.ts +1524 -0
- package/dist/types/meeting/locusMediaRequest.d.ts +70 -0
- package/dist/types/meeting/muteState.d.ts +184 -0
- package/dist/types/meeting/request.d.ts +270 -0
- package/dist/types/meeting/request.type.d.ts +11 -0
- package/dist/types/meeting/state.d.ts +9 -0
- package/dist/types/meeting/util.d.ts +75 -0
- package/dist/types/meeting-info/collection.d.ts +20 -0
- package/dist/types/meeting-info/index.d.ts +57 -0
- package/dist/types/meeting-info/meeting-info-v2.d.ts +122 -0
- package/dist/types/meeting-info/request.d.ts +22 -0
- package/dist/types/meeting-info/util.d.ts +2 -0
- package/dist/types/meeting-info/utilv2.d.ts +2 -0
- package/dist/types/meetings/collection.d.ts +31 -0
- package/dist/types/meetings/index.d.ts +364 -0
- package/dist/types/meetings/meetings.types.d.ts +4 -0
- package/dist/types/meetings/request.d.ts +27 -0
- package/dist/types/meetings/util.d.ts +18 -0
- package/dist/types/member/index.d.ts +158 -0
- package/dist/types/member/types.d.ts +21 -0
- package/dist/types/member/util.d.ts +2 -0
- package/dist/types/members/collection.d.ts +29 -0
- package/dist/types/members/index.d.ts +353 -0
- package/dist/types/members/request.d.ts +114 -0
- package/dist/types/members/types.d.ts +24 -0
- package/dist/types/members/util.d.ts +210 -0
- package/dist/types/metrics/config.d.ts +195 -0
- package/dist/types/metrics/constants.d.ts +55 -0
- package/dist/types/metrics/index.d.ts +169 -0
- package/dist/types/multistream/mediaRequestManager.d.ts +118 -0
- package/dist/types/multistream/receiveSlot.d.ts +68 -0
- package/dist/types/multistream/receiveSlotManager.d.ts +56 -0
- package/dist/types/multistream/remoteMedia.d.ts +72 -0
- package/dist/types/multistream/remoteMediaGroup.d.ts +47 -0
- package/dist/types/multistream/remoteMediaManager.d.ts +277 -0
- package/dist/types/networkQualityMonitor/index.d.ts +70 -0
- package/dist/types/personal-meeting-room/index.d.ts +47 -0
- package/dist/types/personal-meeting-room/request.d.ts +14 -0
- package/dist/types/personal-meeting-room/util.d.ts +2 -0
- package/dist/types/reachability/index.d.ts +152 -0
- package/dist/types/reachability/request.d.ts +37 -0
- package/dist/types/reactions/constants.d.ts +3 -0
- package/dist/types/reactions/reactions.d.ts +4 -0
- package/dist/types/reactions/reactions.type.d.ts +52 -0
- package/dist/types/reconnection-manager/index.d.ts +126 -0
- package/dist/types/recording-controller/enums.d.ts +7 -0
- package/dist/types/recording-controller/index.d.ts +193 -0
- package/dist/types/recording-controller/util.d.ts +13 -0
- package/dist/types/roap/index.d.ts +77 -0
- package/dist/types/roap/request.d.ts +36 -0
- package/dist/types/roap/turnDiscovery.d.ts +91 -0
- package/dist/types/statsAnalyzer/global.d.ts +36 -0
- package/dist/types/statsAnalyzer/index.d.ts +200 -0
- package/dist/types/statsAnalyzer/mqaUtil.d.ts +24 -0
- package/dist/types/transcription/index.d.ts +64 -0
- package/package.json +28 -21
- package/src/annotation/annotation.types.ts +52 -0
- package/src/annotation/constants.ts +36 -0
- package/src/annotation/index.ts +343 -0
- package/src/breakouts/README.md +220 -0
- package/src/breakouts/breakout.ts +180 -0
- package/src/breakouts/collection.ts +19 -0
- package/src/breakouts/edit-lock-error.ts +25 -0
- package/src/breakouts/events.ts +37 -0
- package/src/breakouts/index.ts +921 -0
- package/src/breakouts/request.ts +55 -0
- package/src/breakouts/utils.ts +57 -0
- package/src/common/errors/webex-errors.ts +6 -2
- package/src/common/logs/logger-proxy.ts +1 -1
- package/src/config.ts +5 -7
- package/src/constants.ts +165 -20
- package/src/controls-options-manager/constants.ts +5 -0
- package/src/controls-options-manager/enums.ts +18 -0
- package/src/controls-options-manager/index.ts +278 -0
- package/src/controls-options-manager/types.ts +59 -0
- package/src/controls-options-manager/util.ts +286 -0
- package/src/index.ts +34 -0
- package/src/interpretation/README.md +51 -0
- package/src/interpretation/collection.ts +19 -0
- package/src/interpretation/index.ts +182 -0
- package/src/interpretation/siLanguage.ts +18 -0
- package/src/locus-info/controlsUtils.ts +110 -0
- package/src/locus-info/index.ts +339 -21
- package/src/locus-info/mediaSharesUtils.ts +48 -0
- package/src/locus-info/parser.ts +2 -1
- package/src/locus-info/selfUtils.ts +86 -2
- package/src/media/index.ts +70 -142
- package/src/media/properties.ts +41 -104
- package/src/mediaQualityMetrics/config.ts +379 -377
- package/src/meeting/in-meeting-actions.ts +156 -0
- package/src/meeting/index.ts +1779 -1741
- package/src/meeting/locusMediaRequest.ts +309 -0
- package/src/meeting/muteState.ts +228 -132
- package/src/meeting/request.ts +100 -91
- package/src/meeting/request.type.ts +2 -0
- package/src/meeting/util.ts +422 -421
- package/src/meeting-info/meeting-info-v2.ts +134 -13
- package/src/meeting-info/utilv2.ts +13 -3
- package/src/meetings/collection.ts +20 -0
- package/src/meetings/index.ts +385 -83
- package/src/meetings/meetings.types.ts +12 -0
- package/src/meetings/request.ts +3 -1
- package/src/meetings/util.ts +103 -4
- package/src/member/index.ts +42 -0
- package/src/member/types.ts +24 -0
- package/src/member/util.ts +95 -1
- package/src/members/collection.ts +8 -0
- package/src/members/index.ts +108 -6
- package/src/members/request.ts +98 -17
- package/src/members/types.ts +28 -0
- package/src/members/util.ts +319 -240
- package/src/metrics/config.ts +49 -10
- package/src/metrics/constants.ts +2 -4
- package/src/metrics/index.ts +43 -27
- package/src/multistream/mediaRequestManager.ts +337 -63
- package/src/multistream/receiveSlot.ts +68 -26
- package/src/multistream/receiveSlotManager.ts +61 -38
- package/src/multistream/remoteMedia.ts +29 -3
- package/src/multistream/remoteMediaGroup.ts +61 -2
- package/src/multistream/remoteMediaManager.ts +260 -66
- package/src/networkQualityMonitor/index.ts +6 -6
- package/src/reachability/index.ts +75 -25
- package/src/reachability/request.ts +10 -5
- package/src/reactions/constants.ts +4 -0
- package/src/reactions/reactions.ts +4 -4
- package/src/reactions/reactions.type.ts +28 -3
- package/src/reconnection-manager/index.ts +53 -32
- 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.ts +21 -30
- package/src/roap/request.ts +51 -52
- package/src/roap/turnDiscovery.ts +51 -27
- package/src/statsAnalyzer/global.ts +1 -94
- package/src/statsAnalyzer/index.ts +380 -390
- package/src/statsAnalyzer/mqaUtil.ts +106 -99
- package/test/integration/spec/converged-space-meetings.js +233 -0
- package/test/integration/spec/journey.js +331 -254
- package/test/integration/spec/space-meeting.js +77 -4
- package/test/unit/spec/annotation/index.ts +436 -0
- package/test/unit/spec/breakouts/breakout.ts +233 -0
- package/test/unit/spec/breakouts/collection.ts +15 -0
- package/test/unit/spec/breakouts/edit-lock-error.ts +30 -0
- package/test/unit/spec/breakouts/events.ts +77 -0
- package/test/unit/spec/breakouts/index.ts +1790 -0
- package/test/unit/spec/breakouts/request.ts +104 -0
- package/test/unit/spec/breakouts/utils.js +72 -0
- package/test/unit/spec/controls-options-manager/index.js +287 -0
- package/test/unit/spec/controls-options-manager/util.js +518 -0
- package/test/unit/spec/fixture/locus.js +1 -0
- package/test/unit/spec/interpretation/collection.ts +15 -0
- package/test/unit/spec/interpretation/index.ts +329 -0
- package/test/unit/spec/interpretation/siLanguage.ts +26 -0
- package/test/unit/spec/locus-info/controlsUtils.js +323 -30
- package/test/unit/spec/locus-info/index.js +680 -4
- package/test/unit/spec/locus-info/mediaSharesUtils.ts +22 -0
- package/test/unit/spec/locus-info/selfConstant.js +48 -0
- package/test/unit/spec/locus-info/selfUtils.js +275 -0
- package/test/unit/spec/media/index.ts +118 -22
- package/test/unit/spec/media/properties.ts +9 -9
- package/test/unit/spec/meeting/in-meeting-actions.ts +76 -0
- package/test/unit/spec/meeting/index.js +2695 -1513
- package/test/unit/spec/meeting/locusMediaRequest.ts +436 -0
- package/test/unit/spec/meeting/muteState.js +370 -208
- package/test/unit/spec/meeting/request.js +354 -42
- package/test/unit/spec/meeting/utils.js +270 -156
- package/test/unit/spec/meeting-info/meetinginfov2.js +383 -5
- package/test/unit/spec/meeting-info/utilv2.js +21 -0
- package/test/unit/spec/meetings/collection.js +14 -0
- package/test/unit/spec/meetings/index.js +866 -120
- package/test/unit/spec/meetings/utils.js +206 -2
- package/test/unit/spec/member/index.js +31 -0
- package/test/unit/spec/member/util.js +408 -32
- package/test/unit/spec/members/index.js +320 -1
- package/test/unit/spec/members/request.js +206 -27
- package/test/unit/spec/members/utils.js +184 -0
- package/test/unit/spec/metrics/index.js +98 -0
- package/test/unit/spec/multistream/mediaRequestManager.ts +1012 -109
- package/test/unit/spec/multistream/receiveSlot.ts +77 -18
- package/test/unit/spec/multistream/receiveSlotManager.ts +69 -39
- package/test/unit/spec/multistream/remoteMedia.ts +32 -2
- package/test/unit/spec/multistream/remoteMediaGroup.ts +271 -5
- package/test/unit/spec/multistream/remoteMediaManager.ts +672 -65
- package/test/unit/spec/networkQualityMonitor/index.js +4 -4
- package/test/unit/spec/reachability/index.ts +176 -25
- package/test/unit/spec/reachability/request.js +66 -0
- package/test/unit/spec/reconnection-manager/index.js +46 -13
- 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 +21 -51
- package/test/unit/spec/roap/request.ts +187 -0
- package/test/unit/spec/roap/turnDiscovery.ts +73 -34
- package/test/unit/spec/stats-analyzer/index.js +94 -43
- package/test/utils/constants.js +9 -0
- package/test/utils/integrationTestUtils.js +46 -0
- package/test/utils/testUtils.js +0 -45
- package/test/utils/webex-config.js +4 -0
- package/test/utils/webex-test-users.js +7 -3
- package/tsconfig.json +6 -0
- package/dist/media/internal-media-core-wrapper.js +0 -18
- package/dist/media/internal-media-core-wrapper.js.map +0 -1
- package/dist/meeting/effectsState.js +0 -262
- package/dist/meeting/effectsState.js.map +0 -1
- package/dist/multistream/multistreamMedia.js +0 -106
- package/dist/multistream/multistreamMedia.js.map +0 -1
- package/src/index.js +0 -15
- package/src/media/internal-media-core-wrapper.ts +0 -9
- package/src/meeting/effectsState.ts +0 -211
- package/src/multistream/multistreamMedia.ts +0 -93
- package/test/unit/spec/meeting/effectsState.js +0 -281
package/src/meeting/request.ts
CHANGED
|
@@ -9,6 +9,7 @@ import LoggerProxy from '../common/logs/logger-proxy';
|
|
|
9
9
|
import {
|
|
10
10
|
ALERT,
|
|
11
11
|
ALTERNATE_REDIRECT_TRUE,
|
|
12
|
+
BREAKOUTS,
|
|
12
13
|
CALL,
|
|
13
14
|
CONTROLS,
|
|
14
15
|
DECLINE,
|
|
@@ -18,30 +19,70 @@ import {
|
|
|
18
19
|
LEAVE,
|
|
19
20
|
LOCI,
|
|
20
21
|
LOCUS,
|
|
21
|
-
MEDIA,
|
|
22
22
|
PARTICIPANT,
|
|
23
23
|
PROVISIONAL_TYPE_DIAL_IN,
|
|
24
24
|
PROVISIONAL_TYPE_DIAL_OUT,
|
|
25
|
+
REACHABILITY,
|
|
25
26
|
SEND_DTMF_ENDPOINT,
|
|
26
27
|
_SLIDES_,
|
|
28
|
+
ANNOTATION,
|
|
27
29
|
} from '../constants';
|
|
28
|
-
import {Reaction} from '../reactions/reactions.type';
|
|
29
30
|
import {SendReactionOptions, ToggleReactionsOptions} from './request.type';
|
|
31
|
+
import MeetingUtil from './util';
|
|
32
|
+
import {AnnotationInfo} from '../annotation/annotation.types';
|
|
30
33
|
|
|
31
34
|
/**
|
|
32
35
|
* @class MeetingRequest
|
|
33
36
|
*/
|
|
34
37
|
export default class MeetingRequest extends StatelessWebexPlugin {
|
|
35
38
|
changeVideoLayoutDebounced: any;
|
|
39
|
+
meetingRef: WeakRef<any>;
|
|
40
|
+
locusDeltaRequest: (options: object) => Promise<any>;
|
|
36
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Constructor
|
|
44
|
+
* @param {Object} attrs
|
|
45
|
+
* @param {Object} options
|
|
46
|
+
*/
|
|
37
47
|
constructor(attrs: any, options: any) {
|
|
38
|
-
|
|
48
|
+
const {meeting, ...otherAttrs} = attrs;
|
|
49
|
+
|
|
50
|
+
super(otherAttrs, options);
|
|
51
|
+
|
|
52
|
+
this.locusDeltaRequest = MeetingUtil.generateLocusDeltaRequest(meeting);
|
|
53
|
+
|
|
39
54
|
this.changeVideoLayoutDebounced = debounce(this.changeVideoLayout, 2000, {
|
|
40
55
|
leading: true,
|
|
41
56
|
trailing: true,
|
|
42
57
|
});
|
|
43
58
|
}
|
|
44
59
|
|
|
60
|
+
/**
|
|
61
|
+
* Returns joinCookie from boundedStorage if present.
|
|
62
|
+
* @returns {Object} joinCookie
|
|
63
|
+
*/
|
|
64
|
+
private getJoinCookie = async () => {
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
const joinCookieRaw = await this.webex.boundedStorage
|
|
67
|
+
.get(REACHABILITY.namespace, REACHABILITY.localStorageJoinCookie)
|
|
68
|
+
.catch(() => {});
|
|
69
|
+
|
|
70
|
+
if (joinCookieRaw) {
|
|
71
|
+
try {
|
|
72
|
+
const joinCookie = JSON.parse(joinCookieRaw);
|
|
73
|
+
if (joinCookie) {
|
|
74
|
+
return joinCookie;
|
|
75
|
+
}
|
|
76
|
+
} catch (e) {
|
|
77
|
+
LoggerProxy.logger.error(
|
|
78
|
+
`MeetingRequest#constructor --> Error in parsing join cookie data: ${e}`
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return null;
|
|
84
|
+
};
|
|
85
|
+
|
|
45
86
|
/**
|
|
46
87
|
* Make a network request to join a meeting
|
|
47
88
|
* @param {Object} options
|
|
@@ -55,6 +96,10 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
55
96
|
* @param {boolean} options.pin
|
|
56
97
|
* @param {boolean} options.moveToResource
|
|
57
98
|
* @param {Object} options.roapMessage
|
|
99
|
+
* @param {boolean} options.breakoutsSupported
|
|
100
|
+
* @param {String} options.locale,
|
|
101
|
+
* @param {Array} options.deviceCapabilities
|
|
102
|
+
* @param {boolean} options.liveAnnotationSupported
|
|
58
103
|
* @returns {Promise}
|
|
59
104
|
*/
|
|
60
105
|
async joinMeeting(options: {
|
|
@@ -73,6 +118,10 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
73
118
|
meetingNumber: any;
|
|
74
119
|
permissionToken: any;
|
|
75
120
|
preferTranscoding: any;
|
|
121
|
+
breakoutsSupported: boolean;
|
|
122
|
+
locale?: string;
|
|
123
|
+
deviceCapabilities?: Array<string>;
|
|
124
|
+
liveAnnotationSupported: boolean;
|
|
76
125
|
}) {
|
|
77
126
|
const {
|
|
78
127
|
asResourceOccupant,
|
|
@@ -89,12 +138,18 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
89
138
|
moveToResource,
|
|
90
139
|
roapMessage,
|
|
91
140
|
preferTranscoding,
|
|
141
|
+
breakoutsSupported,
|
|
142
|
+
locale,
|
|
143
|
+
deviceCapabilities = [],
|
|
144
|
+
liveAnnotationSupported,
|
|
92
145
|
} = options;
|
|
93
146
|
|
|
94
147
|
LoggerProxy.logger.info('Meeting:request#joinMeeting --> Joining a meeting', correlationId);
|
|
95
148
|
|
|
96
149
|
let url = '';
|
|
97
150
|
|
|
151
|
+
const joinCookie = await this.getJoinCookie();
|
|
152
|
+
|
|
98
153
|
const body: any = {
|
|
99
154
|
asResourceOccupant,
|
|
100
155
|
device: {
|
|
@@ -111,9 +166,25 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
111
166
|
supportsNativeLobby: 1,
|
|
112
167
|
clientMediaPreferences: {
|
|
113
168
|
preferTranscoding: preferTranscoding ?? true,
|
|
169
|
+
joinCookie,
|
|
114
170
|
},
|
|
115
171
|
};
|
|
116
172
|
|
|
173
|
+
if (breakoutsSupported) {
|
|
174
|
+
deviceCapabilities.push(BREAKOUTS.BREAKOUTS_SUPPORTED);
|
|
175
|
+
}
|
|
176
|
+
if (liveAnnotationSupported) {
|
|
177
|
+
deviceCapabilities.push(ANNOTATION.ANNOTATION_ON_SHARE_SUPPORTED);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (locale) {
|
|
181
|
+
body.locale = locale;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// add deviceCapabilities prop
|
|
185
|
+
if (deviceCapabilities.length) {
|
|
186
|
+
body.deviceCapabilities = deviceCapabilities;
|
|
187
|
+
}
|
|
117
188
|
// @ts-ignore
|
|
118
189
|
if (this.webex.meetings.clientRegion) {
|
|
119
190
|
// @ts-ignore
|
|
@@ -243,7 +314,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
243
314
|
};
|
|
244
315
|
|
|
245
316
|
// @ts-ignore
|
|
246
|
-
return this.
|
|
317
|
+
return this.locusDeltaRequest({
|
|
247
318
|
method: HTTP_VERBS.POST,
|
|
248
319
|
uri,
|
|
249
320
|
body,
|
|
@@ -298,7 +369,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
298
369
|
};
|
|
299
370
|
|
|
300
371
|
// @ts-ignore
|
|
301
|
-
return this.
|
|
372
|
+
return this.locusDeltaRequest({
|
|
302
373
|
method: HTTP_VERBS.POST,
|
|
303
374
|
uri,
|
|
304
375
|
body,
|
|
@@ -413,7 +484,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
413
484
|
};
|
|
414
485
|
|
|
415
486
|
// @ts-ignore
|
|
416
|
-
return this.
|
|
487
|
+
return this.locusDeltaRequest({
|
|
417
488
|
method: HTTP_VERBS.PUT,
|
|
418
489
|
uri,
|
|
419
490
|
body,
|
|
@@ -462,8 +533,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
462
533
|
correlationId,
|
|
463
534
|
};
|
|
464
535
|
|
|
465
|
-
|
|
466
|
-
return this.request({
|
|
536
|
+
return this.locusDeltaRequest({
|
|
467
537
|
method: HTTP_VERBS.PUT,
|
|
468
538
|
uri,
|
|
469
539
|
body,
|
|
@@ -489,8 +559,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
489
559
|
correlationId: options.correlationId,
|
|
490
560
|
};
|
|
491
561
|
|
|
492
|
-
|
|
493
|
-
return this.request({
|
|
562
|
+
return this.locusDeltaRequest({
|
|
494
563
|
method: HTTP_VERBS.PUT,
|
|
495
564
|
uri,
|
|
496
565
|
body,
|
|
@@ -498,36 +567,11 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
498
567
|
}
|
|
499
568
|
|
|
500
569
|
/**
|
|
501
|
-
*
|
|
570
|
+
* Makes a network request to lock the meeting
|
|
502
571
|
* @param {Object} options
|
|
503
|
-
* @param {
|
|
504
|
-
* @param {String} options.deviceUrl
|
|
505
|
-
* @param {String} options.id
|
|
572
|
+
* @param {Boolean} options.lock Whether it is locked or not
|
|
506
573
|
* @returns {Promise}
|
|
507
574
|
*/
|
|
508
|
-
recordMeeting(options: {
|
|
509
|
-
locusUrl: string;
|
|
510
|
-
deviceUrl: string;
|
|
511
|
-
id: string;
|
|
512
|
-
recording: any;
|
|
513
|
-
paused: any;
|
|
514
|
-
}) {
|
|
515
|
-
const uri = `${options.locusUrl}/${CONTROLS}`;
|
|
516
|
-
const body = {
|
|
517
|
-
record: {
|
|
518
|
-
recording: options.recording,
|
|
519
|
-
paused: options.paused,
|
|
520
|
-
},
|
|
521
|
-
};
|
|
522
|
-
|
|
523
|
-
// @ts-ignore
|
|
524
|
-
return this.request({
|
|
525
|
-
method: HTTP_VERBS.PATCH,
|
|
526
|
-
uri,
|
|
527
|
-
body,
|
|
528
|
-
});
|
|
529
|
-
}
|
|
530
|
-
|
|
531
575
|
lockMeeting(options) {
|
|
532
576
|
const uri = `${options.locusUrl}/${CONTROLS}`;
|
|
533
577
|
const body = {
|
|
@@ -536,8 +580,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
536
580
|
},
|
|
537
581
|
};
|
|
538
582
|
|
|
539
|
-
|
|
540
|
-
return this.request({
|
|
583
|
+
return this.locusDeltaRequest({
|
|
541
584
|
method: HTTP_VERBS.PATCH,
|
|
542
585
|
uri,
|
|
543
586
|
body,
|
|
@@ -563,54 +606,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
563
606
|
...(options.reason && {reason: options.reason}),
|
|
564
607
|
};
|
|
565
608
|
|
|
566
|
-
|
|
567
|
-
return this.request({
|
|
568
|
-
method: HTTP_VERBS.PUT,
|
|
569
|
-
uri,
|
|
570
|
-
body,
|
|
571
|
-
});
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* Toggle remote audio and/or video
|
|
576
|
-
* @param {Object} options options for toggling
|
|
577
|
-
* @param {String} options.selfId Locus self id??
|
|
578
|
-
* @param {String} options.locusUrl Locus url
|
|
579
|
-
* @param {String} options.deviceUrl Url of a device
|
|
580
|
-
* @param {String} options.resourceId Populated if you are paired to a device
|
|
581
|
-
* @param {String} options.localMedias local sdps
|
|
582
|
-
* @param {Boolean} options.preferTranscoding false for multistream (Homer), true for transcoded media (Edonus)
|
|
583
|
-
* @returns {Promise}
|
|
584
|
-
*/
|
|
585
|
-
remoteAudioVideoToggle(
|
|
586
|
-
options:
|
|
587
|
-
| {
|
|
588
|
-
selfId: string;
|
|
589
|
-
locusUrl: string;
|
|
590
|
-
deviceUrl: string;
|
|
591
|
-
resourceId: string;
|
|
592
|
-
localMedias: string;
|
|
593
|
-
}
|
|
594
|
-
| any
|
|
595
|
-
) {
|
|
596
|
-
const uri = `${options.locusUrl}/${PARTICIPANT}/${options.selfId}/${MEDIA}`;
|
|
597
|
-
const body = {
|
|
598
|
-
device: {
|
|
599
|
-
// @ts-ignore
|
|
600
|
-
deviceType: this.config.meetings.deviceType,
|
|
601
|
-
url: options.deviceUrl,
|
|
602
|
-
},
|
|
603
|
-
usingResource: options.resourceId || null,
|
|
604
|
-
correlationId: options.correlationId,
|
|
605
|
-
respOnlySdp: true,
|
|
606
|
-
localMedias: options.localMedias,
|
|
607
|
-
clientMediaPreferences: {
|
|
608
|
-
preferTranscoding: options.preferTranscoding ?? true,
|
|
609
|
-
},
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
// @ts-ignore
|
|
613
|
-
return this.request({
|
|
609
|
+
return this.locusDeltaRequest({
|
|
614
610
|
method: HTTP_VERBS.PUT,
|
|
615
611
|
uri,
|
|
616
612
|
body,
|
|
@@ -635,6 +631,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
635
631
|
deviceUrl: string;
|
|
636
632
|
resourceId: string;
|
|
637
633
|
uri: string;
|
|
634
|
+
annotationInfo: AnnotationInfo;
|
|
638
635
|
}
|
|
639
636
|
| any
|
|
640
637
|
) {
|
|
@@ -668,6 +665,9 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
668
665
|
if (options?.resourceToken) {
|
|
669
666
|
body.resourceToken = options?.resourceToken;
|
|
670
667
|
}
|
|
668
|
+
if (options?.annotationInfo) {
|
|
669
|
+
body.annotation = options?.annotationInfo;
|
|
670
|
+
}
|
|
671
671
|
|
|
672
672
|
// @ts-ignore
|
|
673
673
|
return this.request({
|
|
@@ -687,7 +687,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
687
687
|
*/
|
|
688
688
|
sendDTMF({locusUrl, deviceUrl, tones}: {locusUrl: string; deviceUrl: string; tones: string}) {
|
|
689
689
|
// @ts-ignore
|
|
690
|
-
return this.
|
|
690
|
+
return this.locusDeltaRequest({
|
|
691
691
|
method: HTTP_VERBS.POST,
|
|
692
692
|
uri: `${locusUrl}/${SEND_DTMF_ENDPOINT}`,
|
|
693
693
|
body: {
|
|
@@ -768,7 +768,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
768
768
|
: undefined;
|
|
769
769
|
|
|
770
770
|
// @ts-ignore
|
|
771
|
-
return this.
|
|
771
|
+
return this.locusDeltaRequest({
|
|
772
772
|
method: HTTP_VERBS.PUT,
|
|
773
773
|
uri: `${locusUrl}/${CONTROLS}`,
|
|
774
774
|
body: {
|
|
@@ -791,7 +791,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
791
791
|
const uri = `${locusUrl}/${END}`;
|
|
792
792
|
|
|
793
793
|
// @ts-ignore
|
|
794
|
-
return this.
|
|
794
|
+
return this.locusDeltaRequest({
|
|
795
795
|
method: HTTP_VERBS.POST,
|
|
796
796
|
uri,
|
|
797
797
|
});
|
|
@@ -842,7 +842,8 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
842
842
|
toggleReactions({enable, locusUrl, requestingParticipantId}: ToggleReactionsOptions) {
|
|
843
843
|
const uri = `${locusUrl}/${CONTROLS}`;
|
|
844
844
|
|
|
845
|
-
|
|
845
|
+
// @ts-ignore
|
|
846
|
+
return this.locusDeltaRequest({
|
|
846
847
|
method: HTTP_VERBS.PUT,
|
|
847
848
|
uri,
|
|
848
849
|
body: {
|
|
@@ -853,4 +854,12 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
853
854
|
},
|
|
854
855
|
});
|
|
855
856
|
}
|
|
857
|
+
|
|
858
|
+
getLocusStatusByUrl(locusUrl: string) {
|
|
859
|
+
// @ts-ignore
|
|
860
|
+
return this.request({
|
|
861
|
+
method: HTTP_VERBS.GET,
|
|
862
|
+
uri: locusUrl,
|
|
863
|
+
});
|
|
864
|
+
}
|
|
856
865
|
}
|