@webex/plugin-meetings 3.0.0-beta.3 → 3.0.0-beta.300
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 +46 -8
- package/UPGRADING.md +9 -9
- package/browsers.js +19 -24
- 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 +342 -0
- package/dist/annotation/index.js.map +1 -0
- package/dist/breakouts/breakout.js +216 -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 +45 -0
- package/dist/breakouts/events.js.map +1 -0
- package/dist/breakouts/index.js +1048 -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/browser-detection.js +1 -20
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js +5 -20
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.js +0 -7
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.js +10 -24
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js +11 -24
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-meeting.js +12 -25
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/media.js +10 -24
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/no-meeting-info.js +51 -0
- package/dist/common/errors/no-meeting-info.js.map +1 -0
- package/dist/common/errors/parameter.js +5 -33
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js +10 -24
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js +9 -23
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/reclaim-host-role-errors.js +158 -0
- package/dist/common/errors/reclaim-host-role-errors.js.map +1 -0
- package/dist/common/errors/reconnection-in-progress.js +0 -17
- package/dist/common/errors/reconnection-in-progress.js.map +1 -1
- package/dist/common/errors/reconnection.js +10 -24
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js +10 -24
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.js +54 -48
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.js +5 -25
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.js +0 -22
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.js +0 -23
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.js +0 -12
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.js +0 -15
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.js +0 -4
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.js +1 -8
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.js +41 -60
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.js +28 -23
- package/dist/common/queue.js.map +1 -1
- package/dist/config.js +9 -15
- package/dist/config.js.map +1 -1
- package/dist/constants.js +315 -68
- 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 +319 -0
- package/dist/controls-options-manager/util.js.map +1 -0
- package/dist/index.js +114 -17
- 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 +366 -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 +101 -29
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.js +3 -26
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.js +0 -15
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.js +4 -12
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.js +561 -246
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +10 -38
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js +68 -38
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.js +314 -163
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js +110 -92
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.js +103 -231
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +137 -222
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js +2 -9
- package/dist/media/util.js.map +1 -1
- package/dist/mediaQualityMetrics/config.js +505 -495
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +93 -14
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +4624 -3740
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +292 -0
- package/dist/meeting/locusMediaRequest.js.map +1 -0
- package/dist/meeting/muteState.js +249 -184
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +400 -346
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js +7 -0
- package/dist/meeting/request.type.js.map +1 -0
- package/dist/meeting/state.js +21 -31
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/util.js +598 -586
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/collection.js +6 -25
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.js +87 -39
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +349 -283
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js +3 -15
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js +98 -183
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js +143 -234
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.js +26 -19
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.js +813 -596
- 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 +26 -41
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +183 -156
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +135 -85
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js +25 -0
- package/dist/member/types.js.map +1 -0
- package/dist/member/util.js +158 -88
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.js +13 -12
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.js +194 -204
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +113 -68
- 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 +324 -259
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +14 -7
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +11 -558
- package/dist/metrics/index.js.map +1 -1
- package/dist/multistream/mediaRequestManager.js +263 -50
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +58 -65
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/receiveSlotManager.js +76 -95
- package/dist/multistream/receiveSlotManager.js.map +1 -1
- package/dist/multistream/remoteMedia.js +62 -76
- package/dist/multistream/remoteMedia.js.map +1 -1
- package/dist/multistream/remoteMediaGroup.js +66 -43
- package/dist/multistream/remoteMediaGroup.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +536 -439
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +233 -0
- package/dist/multistream/sendSlotManager.js.map +1 -0
- package/dist/networkQualityMonitor/index.js +40 -59
- package/dist/networkQualityMonitor/index.js.map +1 -1
- package/dist/personal-meeting-room/index.js +21 -45
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js +1 -31
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js +0 -13
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/index.js +322 -200
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.js +20 -26
- package/dist/reachability/request.js.map +1 -1
- package/dist/reactions/constants.js +13 -0
- package/dist/reactions/constants.js.map +1 -0
- package/dist/reactions/reactions.js +109 -0
- package/dist/reactions/reactions.js.map +1 -0
- package/dist/reactions/reactions.type.js +36 -0
- package/dist/reactions/reactions.type.js.map +1 -0
- package/dist/reconnection-manager/index.js +388 -476
- 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 +362 -0
- package/dist/recording-controller/index.js.map +1 -0
- package/dist/recording-controller/util.js +64 -0
- package/dist/recording-controller/util.js.map +1 -0
- package/dist/roap/index.js +99 -94
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js +131 -135
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/turnDiscovery.js +151 -101
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/rtcMetrics/constants.js +12 -0
- package/dist/rtcMetrics/constants.js.map +1 -0
- package/dist/rtcMetrics/index.js +117 -0
- package/dist/rtcMetrics/index.js.map +1 -0
- package/dist/statsAnalyzer/global.js +1 -95
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/statsAnalyzer/index.js +416 -497
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.js +145 -88
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/transcription/index.js +22 -47
- package/dist/transcription/index.js.map +1 -1
- package/dist/types/annotation/annotation.types.d.ts +42 -0
- package/dist/types/annotation/constants.d.ts +31 -0
- package/dist/types/annotation/index.d.ts +117 -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 +8 -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/no-meeting-info.d.ts +14 -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/reclaim-host-role-errors.d.ts +60 -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 +93 -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 +36 -0
- package/dist/types/common/queue.d.ts +34 -0
- package/dist/types/config.d.ts +71 -0
- package/dist/types/constants.d.ts +1066 -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 +322 -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 +273 -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 +93 -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 +163 -0
- package/dist/types/meeting/index.d.ts +1676 -0
- package/dist/types/meeting/locusMediaRequest.d.ts +74 -0
- package/dist/types/meeting/muteState.d.ts +184 -0
- package/dist/types/meeting/request.d.ts +290 -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 +102 -0
- package/dist/types/meeting-info/collection.d.ts +20 -0
- package/dist/types/meeting-info/index.d.ts +69 -0
- package/dist/types/meeting-info/meeting-info-v2.d.ts +123 -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 +367 -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 +160 -0
- package/dist/types/member/types.d.ts +32 -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 +25 -0
- package/dist/types/members/util.d.ts +215 -0
- package/dist/types/metrics/constants.d.ts +65 -0
- package/dist/types/metrics/index.d.ts +45 -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 +285 -0
- package/dist/types/multistream/sendSlotManager.d.ts +61 -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 +194 -0
- package/dist/types/reachability/request.d.ts +39 -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 +207 -0
- package/dist/types/recording-controller/util.d.ts +14 -0
- package/dist/types/roap/index.d.ts +78 -0
- package/dist/types/roap/request.d.ts +39 -0
- package/dist/types/roap/turnDiscovery.d.ts +92 -0
- package/dist/types/rtcMetrics/constants.d.ts +4 -0
- package/dist/types/rtcMetrics/index.d.ts +47 -0
- package/dist/types/statsAnalyzer/global.d.ts +36 -0
- package/dist/types/statsAnalyzer/index.d.ts +201 -0
- package/dist/types/statsAnalyzer/mqaUtil.d.ts +24 -0
- package/dist/types/transcription/index.d.ts +64 -0
- package/dist/types/webinar/collection.d.ts +16 -0
- package/dist/types/webinar/index.d.ts +5 -0
- package/dist/webinar/collection.js +44 -0
- package/dist/webinar/collection.js.map +1 -0
- package/dist/webinar/index.js +69 -0
- package/dist/webinar/index.js.map +1 -0
- package/internal-README.md +7 -6
- package/package.json +29 -21
- package/src/annotation/annotation.types.ts +50 -0
- package/src/annotation/constants.ts +36 -0
- package/src/annotation/index.ts +328 -0
- package/src/breakouts/README.md +220 -0
- package/src/breakouts/breakout.ts +188 -0
- package/src/breakouts/collection.ts +19 -0
- package/src/breakouts/edit-lock-error.ts +25 -0
- package/src/breakouts/events.ts +56 -0
- package/src/breakouts/index.ts +925 -0
- package/src/breakouts/request.ts +55 -0
- package/src/breakouts/utils.ts +57 -0
- package/src/common/{browser-detection.js → browser-detection.ts} +9 -6
- package/src/common/collection.ts +9 -7
- package/src/common/{config.js → config.ts} +1 -1
- package/src/common/errors/{captcha-error.js → captcha-error.ts} +11 -7
- package/src/common/errors/{intent-to-join.js → intent-to-join.ts} +12 -7
- package/src/common/errors/{join-meeting.js → join-meeting.ts} +17 -8
- package/src/common/errors/{media.js → media.ts} +11 -7
- package/src/common/errors/no-meeting-info.ts +24 -0
- package/src/common/errors/parameter.ts +11 -7
- package/src/common/errors/{password-error.js → password-error.ts} +11 -7
- package/src/common/errors/{permission.js → permission.ts} +10 -6
- package/src/common/errors/reclaim-host-role-errors.ts +134 -0
- package/src/common/errors/{reconnection.js → reconnection.ts} +11 -7
- package/src/common/errors/{stats.js → stats.ts} +11 -7
- package/src/common/errors/{webex-errors.js → webex-errors.ts} +51 -8
- package/src/common/errors/{webex-meetings-error.js → webex-meetings-error.ts} +4 -2
- package/src/common/events/{events-scope.js → events-scope.ts} +6 -2
- package/src/common/events/{events.js → events.ts} +5 -1
- package/src/common/events/{trigger-proxy.js → trigger-proxy.ts} +9 -5
- package/src/common/events/{util.js → util.ts} +2 -3
- package/src/common/logs/{logger-config.js → logger-config.ts} +1 -2
- package/src/common/logs/logger-proxy.ts +44 -0
- package/src/common/logs/{request.js → request.ts} +26 -9
- package/src/common/queue.ts +22 -9
- package/src/{config.js → config.ts} +18 -19
- package/src/constants.ts +260 -22
- 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 +300 -0
- package/src/index.ts +40 -0
- package/src/interpretation/README.md +60 -0
- package/src/interpretation/collection.ts +19 -0
- package/src/interpretation/index.ts +332 -0
- package/src/interpretation/siLanguage.ts +18 -0
- package/src/locus-info/controlsUtils.ts +222 -0
- package/src/locus-info/{embeddedAppsUtils.js → embeddedAppsUtils.ts} +5 -6
- package/src/locus-info/{fullState.js → fullState.ts} +16 -12
- package/src/locus-info/{hostUtils.js → hostUtils.ts} +9 -8
- package/src/locus-info/{index.js → index.ts} +557 -119
- package/src/locus-info/{infoUtils.js → infoUtils.ts} +29 -10
- package/src/locus-info/{mediaSharesUtils.js → mediaSharesUtils.ts} +81 -17
- package/src/locus-info/{parser.js → parser.ts} +303 -104
- package/src/locus-info/{selfUtils.js → selfUtils.ts} +199 -68
- package/src/media/index.ts +458 -0
- package/src/media/properties.ts +283 -0
- package/src/media/{util.js → util.ts} +2 -2
- package/src/mediaQualityMetrics/config.ts +384 -0
- package/src/meeting/in-meeting-actions.ts +191 -3
- package/src/meeting/index.ts +7882 -0
- package/src/meeting/locusMediaRequest.ts +313 -0
- package/src/meeting/muteState.ts +451 -0
- package/src/meeting/{request.js → request.ts} +421 -220
- package/src/meeting/request.type.ts +13 -0
- package/src/meeting/{state.js → state.ts} +50 -35
- package/src/meeting/util.ts +697 -0
- package/src/meeting-info/{collection.js → collection.ts} +6 -2
- package/src/meeting-info/index.ts +210 -0
- package/src/meeting-info/meeting-info-v2.ts +429 -0
- package/src/meeting-info/{request.js → request.ts} +14 -4
- package/src/meeting-info/{util.js → util.ts} +60 -51
- package/src/meeting-info/{utilv2.js → utilv2.ts} +78 -71
- package/src/meetings/{collection.js → collection.ts} +26 -3
- package/src/meetings/index.ts +1470 -0
- package/src/meetings/meetings.types.ts +12 -0
- package/src/meetings/{request.js → request.ts} +34 -25
- package/src/meetings/{util.js → util.ts} +132 -37
- package/src/member/{index.js → index.ts} +160 -56
- package/src/member/types.ts +38 -0
- package/src/member/util.ts +397 -0
- package/src/members/{collection.js → collection.ts} +10 -2
- package/src/members/{index.js → index.ts} +351 -146
- package/src/members/request.ts +255 -0
- package/src/members/types.ts +29 -0
- package/src/members/util.ts +353 -0
- package/src/metrics/{constants.js → constants.ts} +12 -6
- package/src/metrics/index.ts +73 -0
- package/src/multistream/mediaRequestManager.ts +337 -63
- package/src/multistream/receiveSlot.ts +69 -26
- package/src/multistream/receiveSlotManager.ts +66 -42
- package/src/multistream/remoteMedia.ts +40 -5
- package/src/multistream/remoteMediaGroup.ts +63 -3
- package/src/multistream/remoteMediaManager.ts +300 -66
- package/src/multistream/sendSlotManager.ts +170 -0
- package/src/networkQualityMonitor/{index.js → index.ts} +41 -29
- package/src/personal-meeting-room/{index.js → index.ts} +28 -19
- package/src/personal-meeting-room/{request.js → request.ts} +13 -4
- package/src/personal-meeting-room/{util.js → util.ts} +4 -4
- package/src/reachability/index.ts +671 -0
- package/src/reachability/request.ts +50 -35
- package/src/reactions/constants.ts +4 -0
- package/src/reactions/reactions.ts +104 -0
- package/src/reactions/reactions.type.ts +62 -0
- package/src/reconnection-manager/{index.js → index.ts} +258 -138
- package/src/recording-controller/enums.ts +8 -0
- package/src/recording-controller/index.ts +332 -0
- package/src/recording-controller/util.ts +75 -0
- package/src/roap/{index.js → index.ts} +127 -79
- package/src/roap/request.ts +153 -0
- package/src/roap/turnDiscovery.ts +109 -47
- package/src/rtcMetrics/constants.ts +3 -0
- package/src/rtcMetrics/index.ts +100 -0
- package/src/statsAnalyzer/global.ts +37 -0
- package/src/statsAnalyzer/index.ts +1250 -0
- package/src/statsAnalyzer/mqaUtil.ts +292 -0
- package/src/transcription/{index.js → index.ts} +46 -39
- package/src/webinar/collection.ts +31 -0
- package/src/webinar/index.ts +62 -0
- package/test/integration/spec/converged-space-meetings.js +233 -0
- package/test/integration/spec/journey.js +790 -530
- package/test/integration/spec/space-meeting.js +391 -204
- package/test/integration/spec/transcription.js +7 -8
- package/test/unit/spec/annotation/index.ts +418 -0
- package/test/unit/spec/breakouts/breakout.ts +237 -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 +89 -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/common/browser-detection.js +9 -28
- package/test/unit/spec/common/queue.js +31 -2
- package/test/unit/spec/controls-options-manager/index.js +287 -0
- package/test/unit/spec/controls-options-manager/util.js +582 -0
- package/test/unit/spec/fixture/locus.js +93 -90
- package/test/unit/spec/interpretation/collection.ts +15 -0
- package/test/unit/spec/interpretation/index.ts +589 -0
- package/test/unit/spec/interpretation/siLanguage.ts +28 -0
- package/test/unit/spec/locus-info/controlsUtils.js +325 -32
- package/test/unit/spec/locus-info/embeddedAppsUtils.js +8 -6
- package/test/unit/spec/locus-info/index.js +1390 -17
- package/test/unit/spec/locus-info/infoUtils.js +71 -40
- package/test/unit/spec/locus-info/lib/BasicSeqCmp.json +88 -430
- package/test/unit/spec/locus-info/lib/SeqCmp.json +529 -685
- package/test/unit/spec/locus-info/mediaSharesUtils.ts +32 -0
- package/test/unit/spec/locus-info/parser.js +119 -44
- package/test/unit/spec/locus-info/selfConstant.js +120 -103
- package/test/unit/spec/locus-info/selfUtils.js +296 -12
- package/test/unit/spec/media/index.ts +128 -77
- package/test/unit/spec/media/properties.ts +11 -11
- package/test/unit/spec/meeting/in-meeting-actions.ts +92 -3
- package/test/unit/spec/meeting/index.js +7433 -2752
- package/test/unit/spec/meeting/locusMediaRequest.ts +442 -0
- package/test/unit/spec/meeting/muteState.js +420 -211
- package/test/unit/spec/meeting/request.js +545 -79
- package/test/unit/spec/meeting/utils.js +722 -174
- package/test/unit/spec/meeting-info/index.js +300 -0
- package/test/unit/spec/meeting-info/meetinginfov2.js +624 -76
- package/test/unit/spec/meeting-info/request.js +7 -9
- package/test/unit/spec/meeting-info/util.js +11 -12
- package/test/unit/spec/meeting-info/utilv2.js +131 -74
- package/test/unit/spec/meetings/collection.js +15 -1
- package/test/unit/spec/meetings/index.js +1365 -377
- package/test/unit/spec/meetings/utils.js +216 -14
- package/test/unit/spec/member/index.js +61 -7
- package/test/unit/spec/member/util.js +526 -26
- package/test/unit/spec/members/index.js +536 -55
- package/test/unit/spec/members/request.js +228 -40
- package/test/unit/spec/members/utils.js +217 -4
- package/test/unit/spec/metrics/index.js +12 -66
- 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 +40 -2
- package/test/unit/spec/multistream/remoteMediaGroup.ts +271 -5
- package/test/unit/spec/multistream/remoteMediaManager.ts +738 -65
- package/test/unit/spec/multistream/sendSlotManager.ts +242 -0
- package/test/unit/spec/networkQualityMonitor/index.js +24 -18
- package/test/unit/spec/personal-meeting-room/personal-meeting-room.js +2 -7
- package/test/unit/spec/reachability/index.ts +598 -26
- package/test/unit/spec/reachability/request.js +68 -0
- package/test/unit/spec/reconnection-manager/index.js +181 -12
- package/test/unit/spec/recording-controller/index.js +307 -0
- package/test/unit/spec/recording-controller/util.js +229 -0
- package/test/unit/spec/roap/index.ts +179 -64
- package/test/unit/spec/roap/request.ts +232 -0
- package/test/unit/spec/roap/turnDiscovery.ts +123 -58
- package/test/unit/spec/rtcMetrics/index.ts +73 -0
- package/test/unit/spec/stats-analyzer/index.js +199 -60
- package/test/unit/spec/webinar/collection.ts +13 -0
- package/test/unit/spec/webinar/index.ts +60 -0
- package/test/utils/cmr.js +44 -42
- package/test/utils/constants.js +9 -0
- package/test/utils/integrationTestUtils.js +46 -0
- package/test/utils/testUtils.js +63 -99
- package/test/utils/webex-config.js +22 -18
- package/test/utils/webex-test-users.js +57 -50
- package/tsconfig.json +6 -0
- package/dist/media/internal-media-core-wrapper.js +0 -22
- package/dist/media/internal-media-core-wrapper.js.map +0 -1
- package/dist/meeting/effectsState.js +0 -327
- package/dist/meeting/effectsState.js.map +0 -1
- package/dist/metrics/config.js +0 -301
- package/dist/metrics/config.js.map +0 -1
- package/dist/multistream/multistreamMedia.js +0 -116
- package/dist/multistream/multistreamMedia.js.map +0 -1
- package/dist/peer-connection-manager/util.js +0 -124
- package/dist/peer-connection-manager/util.js.map +0 -1
- package/src/common/logs/logger-proxy.js +0 -33
- package/src/index.js +0 -15
- package/src/locus-info/controlsUtils.js +0 -102
- package/src/media/index.js +0 -459
- package/src/media/internal-media-core-wrapper.ts +0 -9
- package/src/media/properties.js +0 -289
- package/src/mediaQualityMetrics/config.js +0 -382
- package/src/meeting/effectsState.js +0 -205
- package/src/meeting/index.js +0 -6284
- package/src/meeting/muteState.js +0 -318
- package/src/meeting/util.js +0 -506
- package/src/meeting-info/index.js +0 -131
- package/src/meeting-info/meeting-info-v2.js +0 -255
- package/src/meetings/index.js +0 -1015
- package/src/member/util.js +0 -254
- package/src/members/request.js +0 -131
- package/src/members/util.js +0 -258
- package/src/metrics/config.js +0 -324
- package/src/metrics/index.js +0 -530
- package/src/multistream/multistreamMedia.ts +0 -92
- package/src/peer-connection-manager/util.ts +0 -117
- package/src/reachability/index.js +0 -464
- package/src/roap/request.js +0 -127
- package/src/statsAnalyzer/global.js +0 -133
- package/src/statsAnalyzer/index.js +0 -1006
- package/src/statsAnalyzer/mqaUtil.js +0 -173
- package/test/unit/spec/meeting/effectsState.js +0 -291
- package/test/unit/spec/peerconnection-manager/utils.test-fixtures.ts +0 -389
- /package/src/common/errors/{reconnection-in-progress.js → reconnection-in-progress.ts} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @ts-ignore
|
|
1
2
|
import {StatelessWebexPlugin} from '@webex/webex-core';
|
|
2
3
|
|
|
3
4
|
import {ROAP} from '../constants';
|
|
@@ -5,6 +6,10 @@ import LoggerProxy from '../common/logs/logger-proxy';
|
|
|
5
6
|
|
|
6
7
|
import RoapRequest from './request';
|
|
7
8
|
import TurnDiscovery from './turnDiscovery';
|
|
9
|
+
import Meeting from '../meeting';
|
|
10
|
+
import MeetingUtil from '../meeting/util';
|
|
11
|
+
import Metrics from '../metrics';
|
|
12
|
+
import BEHAVIORAL_METRICS from '../metrics/constants';
|
|
8
13
|
|
|
9
14
|
/**
|
|
10
15
|
* Roap options
|
|
@@ -17,11 +22,11 @@ import TurnDiscovery from './turnDiscovery';
|
|
|
17
22
|
*/
|
|
18
23
|
|
|
19
24
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
* @typedef {Object} SeqOptions
|
|
26
|
+
* @property {String} correlationId
|
|
27
|
+
* @property {String} mediaId
|
|
28
|
+
* @property {Number} seq
|
|
29
|
+
*/
|
|
25
30
|
|
|
26
31
|
/**
|
|
27
32
|
* @class Roap
|
|
@@ -29,12 +34,19 @@ import TurnDiscovery from './turnDiscovery';
|
|
|
29
34
|
* @private
|
|
30
35
|
*/
|
|
31
36
|
export default class Roap extends StatelessWebexPlugin {
|
|
37
|
+
attrs: any;
|
|
38
|
+
lastRoapOffer: any;
|
|
39
|
+
options: any;
|
|
40
|
+
roapHandler: any;
|
|
41
|
+
roapRequest: any;
|
|
42
|
+
turnDiscovery: any;
|
|
43
|
+
|
|
32
44
|
/**
|
|
33
45
|
*
|
|
34
46
|
* @param {Object} attrs
|
|
35
47
|
* @param {Object} options
|
|
36
48
|
*/
|
|
37
|
-
constructor(attrs, options) {
|
|
49
|
+
constructor(attrs: any, options: any) {
|
|
38
50
|
super({}, options);
|
|
39
51
|
/**
|
|
40
52
|
* @instance
|
|
@@ -57,6 +69,7 @@ export default class Roap extends StatelessWebexPlugin {
|
|
|
57
69
|
* @private
|
|
58
70
|
* @memberof Roap
|
|
59
71
|
*/
|
|
72
|
+
// @ts-ignore
|
|
60
73
|
this.roapRequest = new RoapRequest({}, options);
|
|
61
74
|
|
|
62
75
|
this.turnDiscovery = new TurnDiscovery(this.roapRequest);
|
|
@@ -66,16 +79,19 @@ export default class Roap extends StatelessWebexPlugin {
|
|
|
66
79
|
*
|
|
67
80
|
* @param {SeqOptions} options
|
|
68
81
|
* @returns {null}
|
|
69
|
-
* @private
|
|
70
82
|
* @memberof Roap
|
|
71
83
|
*/
|
|
72
|
-
sendRoapOK(options) {
|
|
84
|
+
public sendRoapOK(options: any) {
|
|
73
85
|
return Promise.resolve().then(() => {
|
|
74
|
-
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
const meeting = this.webex.meetings.meetingCollection.getByKey(
|
|
88
|
+
'correlationId',
|
|
89
|
+
options.correlationId
|
|
90
|
+
);
|
|
75
91
|
const roapMessage = {
|
|
76
92
|
messageType: ROAP.ROAP_TYPES.OK,
|
|
77
93
|
version: ROAP.ROAP_VERSION,
|
|
78
|
-
seq: options.seq
|
|
94
|
+
seq: options.seq,
|
|
79
95
|
};
|
|
80
96
|
|
|
81
97
|
LoggerProxy.logger.log(`Roap:index#sendRoapOK --> ROAP OK sending with seq ${options.seq}`);
|
|
@@ -85,11 +101,8 @@ export default class Roap extends StatelessWebexPlugin {
|
|
|
85
101
|
roapMessage,
|
|
86
102
|
locusSelfUrl: meeting.selfUrl,
|
|
87
103
|
mediaId: options.mediaId,
|
|
88
|
-
correlationId: options.correlationId,
|
|
89
|
-
audioMuted: meeting.isAudioMuted(),
|
|
90
|
-
videoMuted: meeting.isVideoMuted(),
|
|
91
104
|
meetingId: meeting.id,
|
|
92
|
-
|
|
105
|
+
locusMediaRequest: meeting.locusMediaRequest,
|
|
93
106
|
})
|
|
94
107
|
.then(() => {
|
|
95
108
|
LoggerProxy.logger.log(`Roap:index#sendRoapOK --> ROAP OK sent with seq ${options.seq}`);
|
|
@@ -103,60 +116,61 @@ export default class Roap extends StatelessWebexPlugin {
|
|
|
103
116
|
* @param {Boolean} options.audioMuted
|
|
104
117
|
* @param {Boolean} options.videoMuted
|
|
105
118
|
* @returns {Promise}
|
|
106
|
-
* @private
|
|
107
119
|
* @memberof Roap
|
|
108
120
|
*/
|
|
109
|
-
sendRoapAnswer(options) {
|
|
110
|
-
|
|
121
|
+
public sendRoapAnswer(options: any) {
|
|
122
|
+
// @ts-ignore
|
|
123
|
+
const meeting = this.webex.meetings.meetingCollection.getByKey(
|
|
124
|
+
'correlationId',
|
|
125
|
+
options.correlationId
|
|
126
|
+
);
|
|
111
127
|
const roapMessage = {
|
|
112
128
|
messageType: ROAP.ROAP_TYPES.ANSWER,
|
|
113
129
|
sdps: [options.sdp],
|
|
114
130
|
version: ROAP.ROAP_VERSION,
|
|
115
|
-
seq: options.seq
|
|
131
|
+
seq: options.seq,
|
|
116
132
|
};
|
|
117
133
|
|
|
118
|
-
return this.roapRequest
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
videoMuted: meeting.isVideoMuted(),
|
|
126
|
-
meetingId: meeting.id,
|
|
127
|
-
preferTranscoding: !meeting.isMultistream,
|
|
128
|
-
});
|
|
134
|
+
return this.roapRequest.sendRoap({
|
|
135
|
+
roapMessage,
|
|
136
|
+
locusSelfUrl: meeting.selfUrl,
|
|
137
|
+
mediaId: options.mediaId,
|
|
138
|
+
meetingId: meeting.id,
|
|
139
|
+
locusMediaRequest: meeting.locusMediaRequest,
|
|
140
|
+
});
|
|
129
141
|
}
|
|
130
142
|
|
|
131
143
|
/**
|
|
132
144
|
* Sends a ROAP error...
|
|
133
145
|
* @param {Object} options
|
|
134
146
|
* @returns {Promise}
|
|
135
|
-
* @private
|
|
136
147
|
* @memberof Roap
|
|
137
148
|
*/
|
|
138
149
|
sendRoapError(options) {
|
|
139
|
-
|
|
150
|
+
// @ts-ignore
|
|
151
|
+
const meeting = this.webex.meetings.meetingCollection.getByKey(
|
|
152
|
+
'correlationId',
|
|
153
|
+
options.correlationId
|
|
154
|
+
);
|
|
140
155
|
const roapMessage = {
|
|
141
156
|
messageType: ROAP.ROAP_TYPES.ERROR,
|
|
142
157
|
version: ROAP.ROAP_VERSION,
|
|
143
158
|
errorType: options.errorType,
|
|
144
|
-
seq: options.seq
|
|
145
|
-
|
|
159
|
+
seq: options.seq,
|
|
146
160
|
};
|
|
147
161
|
|
|
148
|
-
return this.roapRequest
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
preferTranscoding: !meeting.isMultistream,
|
|
157
|
-
})
|
|
162
|
+
return this.roapRequest
|
|
163
|
+
.sendRoap({
|
|
164
|
+
roapMessage,
|
|
165
|
+
locusSelfUrl: meeting.selfUrl,
|
|
166
|
+
mediaId: options.mediaId,
|
|
167
|
+
meetingId: meeting.id,
|
|
168
|
+
locusMediaRequest: meeting.locusMediaRequest,
|
|
169
|
+
})
|
|
158
170
|
.then(() => {
|
|
159
|
-
LoggerProxy.logger.log(
|
|
171
|
+
LoggerProxy.logger.log(
|
|
172
|
+
`Roap:index#sendRoapError --> ROAP ERROR sent with seq ${options.seq}`
|
|
173
|
+
);
|
|
160
174
|
});
|
|
161
175
|
}
|
|
162
176
|
|
|
@@ -164,57 +178,91 @@ export default class Roap extends StatelessWebexPlugin {
|
|
|
164
178
|
* sends a roap media request
|
|
165
179
|
* @param {RoapOptions} options
|
|
166
180
|
* @returns {Promise}
|
|
167
|
-
* @private
|
|
168
181
|
* @memberof Roap
|
|
169
182
|
*/
|
|
170
|
-
sendRoapMediaRequest(options) {
|
|
171
|
-
const {
|
|
172
|
-
meeting, seq, sdp, reconnect, tieBreaker
|
|
173
|
-
} = options;
|
|
183
|
+
sendRoapMediaRequest(options: any) {
|
|
184
|
+
const {meeting, seq, sdp, reconnect, tieBreaker} = options;
|
|
174
185
|
const roapMessage = {
|
|
175
186
|
messageType: ROAP.ROAP_TYPES.OFFER,
|
|
176
187
|
sdps: [sdp],
|
|
177
188
|
version: ROAP.ROAP_VERSION,
|
|
178
189
|
seq,
|
|
179
|
-
tieBreaker
|
|
190
|
+
tieBreaker,
|
|
191
|
+
headers: ['includeAnswerInHttpResponse', 'noOkInTransaction'],
|
|
180
192
|
};
|
|
181
193
|
|
|
182
194
|
// When reconnecting, it's important that the first roap message being sent out has empty media id.
|
|
183
195
|
// Normally this is the roap offer, but when TURN discovery is enabled,
|
|
184
196
|
// then this is the TURN discovery request message
|
|
185
|
-
|
|
197
|
+
return this.turnDiscovery.isSkipped(meeting).then((isTurnDiscoverySkipped) => {
|
|
198
|
+
const sendEmptyMediaId = reconnect && isTurnDiscoverySkipped;
|
|
186
199
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
200
|
+
return this.roapRequest
|
|
201
|
+
.sendRoap({
|
|
202
|
+
roapMessage,
|
|
203
|
+
locusSelfUrl: meeting.selfUrl,
|
|
204
|
+
mediaId: sendEmptyMediaId ? '' : meeting.mediaId,
|
|
205
|
+
meetingId: meeting.id,
|
|
206
|
+
preferTranscoding: !meeting.isMultistream,
|
|
207
|
+
locusMediaRequest: meeting.locusMediaRequest,
|
|
208
|
+
ipVersion: MeetingUtil.getIpVersion(meeting.webex),
|
|
209
|
+
})
|
|
210
|
+
.then(({locus, mediaConnections}) => {
|
|
211
|
+
if (mediaConnections) {
|
|
212
|
+
meeting.updateMediaConnections(mediaConnections);
|
|
213
|
+
}
|
|
202
214
|
|
|
203
|
-
|
|
204
|
-
|
|
215
|
+
let roapAnswer;
|
|
216
|
+
|
|
217
|
+
if (mediaConnections?.[0]?.remoteSdp) {
|
|
218
|
+
const remoteSdp = JSON.parse(mediaConnections[0].remoteSdp);
|
|
219
|
+
|
|
220
|
+
if (remoteSdp.roapMessage) {
|
|
221
|
+
const {
|
|
222
|
+
seq: answerSeq,
|
|
223
|
+
messageType,
|
|
224
|
+
sdps,
|
|
225
|
+
errorType,
|
|
226
|
+
errorCause,
|
|
227
|
+
headers,
|
|
228
|
+
} = remoteSdp.roapMessage;
|
|
229
|
+
|
|
230
|
+
roapAnswer = {
|
|
231
|
+
seq: answerSeq,
|
|
232
|
+
messageType,
|
|
233
|
+
sdp: sdps[0],
|
|
234
|
+
errorType,
|
|
235
|
+
errorCause,
|
|
236
|
+
headers,
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
if (!roapAnswer) {
|
|
242
|
+
Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.ROAP_HTTP_RESPONSE_MISSING, {
|
|
243
|
+
correlationId: meeting.correlationId,
|
|
244
|
+
messageType: 'ANSWER',
|
|
245
|
+
isMultistream: meeting.isMultistream,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
return {locus, roapAnswer};
|
|
250
|
+
});
|
|
251
|
+
});
|
|
205
252
|
}
|
|
206
253
|
|
|
207
254
|
/**
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
255
|
+
* Performs a TURN server discovery procedure, which involves exchanging
|
|
256
|
+
* some roap messages with the server. This exchange has to be done before
|
|
257
|
+
* any other roap messages are sent
|
|
258
|
+
*
|
|
259
|
+
* @param {Meeting} meeting
|
|
260
|
+
* @param {Boolean} isReconnecting should be set to true if this is a new
|
|
261
|
+
* media connection just after a reconnection
|
|
262
|
+
* @param {Boolean} [isForced]
|
|
263
|
+
* @returns {Promise}
|
|
264
|
+
*/
|
|
265
|
+
doTurnDiscovery(meeting: Meeting, isReconnecting: boolean, isForced?: boolean) {
|
|
266
|
+
return this.turnDiscovery.doTurnDiscovery(meeting, isReconnecting, isForced);
|
|
219
267
|
}
|
|
220
268
|
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import {StatelessWebexPlugin} from '@webex/webex-core';
|
|
3
|
+
|
|
4
|
+
import LoggerProxy from '../common/logs/logger-proxy';
|
|
5
|
+
import {IP_VERSION, REACHABILITY} from '../constants';
|
|
6
|
+
import {LocusMediaRequest} from '../meeting/locusMediaRequest';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @class RoapRequest
|
|
10
|
+
*/
|
|
11
|
+
export default class RoapRequest extends StatelessWebexPlugin {
|
|
12
|
+
/**
|
|
13
|
+
* Returns reachability data.
|
|
14
|
+
* @param {Object} localSdp
|
|
15
|
+
* @returns {Object}
|
|
16
|
+
*/
|
|
17
|
+
async attachReachabilityData(localSdp) {
|
|
18
|
+
let joinCookie;
|
|
19
|
+
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
const reachabilityResult = await this.webex.meetings.reachability.getReachabilityResults();
|
|
22
|
+
|
|
23
|
+
if (reachabilityResult && Object.keys(reachabilityResult).length) {
|
|
24
|
+
localSdp.reachability = reachabilityResult;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
const joinCookieRaw = await this.webex.boundedStorage
|
|
29
|
+
.get(REACHABILITY.namespace, REACHABILITY.localStorageJoinCookie)
|
|
30
|
+
.catch(() => {});
|
|
31
|
+
|
|
32
|
+
if (joinCookieRaw) {
|
|
33
|
+
try {
|
|
34
|
+
joinCookie = JSON.parse(joinCookieRaw);
|
|
35
|
+
} catch (e) {
|
|
36
|
+
LoggerProxy.logger.error(
|
|
37
|
+
`MeetingRequest#constructor --> Error in parsing join cookie data: ${e}`
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return {localSdp, joinCookie};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Sends a ROAP message
|
|
47
|
+
* @param {Object} options
|
|
48
|
+
* @param {Object} options.roapMessage
|
|
49
|
+
* @param {String} options.locusSelfUrl
|
|
50
|
+
* @param {String} options.mediaId
|
|
51
|
+
* @param {String} options.correlationId
|
|
52
|
+
* @param {String} options.meetingId
|
|
53
|
+
* @param {IP_VERSION} options.ipVersion only required for offers
|
|
54
|
+
* @returns {Promise} returns the response/failure of the request
|
|
55
|
+
*/
|
|
56
|
+
async sendRoap(options: {
|
|
57
|
+
roapMessage: any;
|
|
58
|
+
locusSelfUrl: string;
|
|
59
|
+
mediaId: string;
|
|
60
|
+
meetingId: string;
|
|
61
|
+
ipVersion?: IP_VERSION;
|
|
62
|
+
locusMediaRequest?: LocusMediaRequest;
|
|
63
|
+
}) {
|
|
64
|
+
const {roapMessage, locusSelfUrl, mediaId, meetingId, locusMediaRequest, ipVersion} = options;
|
|
65
|
+
|
|
66
|
+
if (!mediaId) {
|
|
67
|
+
LoggerProxy.logger.info('Roap:request#sendRoap --> sending empty mediaID');
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (!locusMediaRequest) {
|
|
71
|
+
LoggerProxy.logger.warn(
|
|
72
|
+
'Roap:request#sendRoap --> locusMediaRequest unavailable, not sending roap'
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
return Promise.reject(new Error('sendRoap called when locusMediaRequest is undefined'));
|
|
76
|
+
}
|
|
77
|
+
const {localSdp: localSdpWithReachabilityData, joinCookie} = await this.attachReachabilityData({
|
|
78
|
+
roapMessage,
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
LoggerProxy.logger.info(
|
|
82
|
+
`Roap:request#sendRoap --> ${locusSelfUrl} \n ${roapMessage.messageType} \n seq:${roapMessage.seq}`
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
// @ts-ignore
|
|
86
|
+
this.webex.internal.newMetrics.submitClientEvent({
|
|
87
|
+
name: 'client.locus.media.request',
|
|
88
|
+
options: {
|
|
89
|
+
meetingId,
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
return locusMediaRequest
|
|
94
|
+
.send({
|
|
95
|
+
type: 'RoapMessage',
|
|
96
|
+
selfUrl: locusSelfUrl,
|
|
97
|
+
joinCookie,
|
|
98
|
+
mediaId,
|
|
99
|
+
roapMessage,
|
|
100
|
+
reachability: localSdpWithReachabilityData.reachability,
|
|
101
|
+
ipVersion,
|
|
102
|
+
})
|
|
103
|
+
.then((res) => {
|
|
104
|
+
// @ts-ignore
|
|
105
|
+
this.webex.internal.newMetrics.submitClientEvent({
|
|
106
|
+
name: 'client.locus.media.response',
|
|
107
|
+
options: {
|
|
108
|
+
meetingId,
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
// always it will be the first mediaConnection Object
|
|
112
|
+
const mediaConnections =
|
|
113
|
+
res.body.mediaConnections &&
|
|
114
|
+
res.body.mediaConnections.length > 0 &&
|
|
115
|
+
res.body.mediaConnections[0];
|
|
116
|
+
|
|
117
|
+
LoggerProxy.logger.debug(
|
|
118
|
+
`Roap:request#sendRoap --> response:${JSON.stringify(
|
|
119
|
+
mediaConnections,
|
|
120
|
+
null,
|
|
121
|
+
2
|
|
122
|
+
)}'\n StatusCode:'${res.statusCode}`
|
|
123
|
+
);
|
|
124
|
+
const {locus} = res.body;
|
|
125
|
+
|
|
126
|
+
locus.roapSeq = options.roapMessage.seq;
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
locus,
|
|
130
|
+
...(mediaConnections && {mediaConnections: res.body.mediaConnections}),
|
|
131
|
+
};
|
|
132
|
+
})
|
|
133
|
+
.catch((err) => {
|
|
134
|
+
// @ts-ignore
|
|
135
|
+
this.webex.internal.newMetrics.submitClientEvent({
|
|
136
|
+
name: 'client.locus.media.response',
|
|
137
|
+
options: {
|
|
138
|
+
meetingId,
|
|
139
|
+
rawError: err,
|
|
140
|
+
},
|
|
141
|
+
});
|
|
142
|
+
LoggerProxy.logger.error(`Roap:request#sendRoap --> Error:${JSON.stringify(err, null, 2)}`);
|
|
143
|
+
LoggerProxy.logger.error(
|
|
144
|
+
`Roap:request#sendRoapRequest --> errorBody:${JSON.stringify(
|
|
145
|
+
roapMessage,
|
|
146
|
+
null,
|
|
147
|
+
2
|
|
148
|
+
)} + '\\n mediaId:'${options.mediaId}`
|
|
149
|
+
);
|
|
150
|
+
throw err;
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
}
|