@webex/plugin-meetings 3.0.0-beta.39 → 3.0.0-beta.391
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 +58 -8
- 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 +94 -15
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/events.js +45 -0
- package/dist/breakouts/events.js.map +1 -0
- package/dist/breakouts/index.js +671 -81
- package/dist/breakouts/index.js.map +1 -1
- package/dist/breakouts/utils.js +45 -1
- package/dist/breakouts/utils.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/reclaim-host-role-errors.js +158 -0
- package/dist/common/errors/reclaim-host-role-errors.js.map +1 -0
- package/dist/common/errors/webex-errors.js +48 -7
- 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/common/logs/request.js +5 -1
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.js +24 -9
- package/dist/common/queue.js.map +1 -1
- package/dist/config.js +5 -10
- package/dist/config.js.map +1 -1
- package/dist/constants.js +242 -33
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/enums.js +14 -2
- package/dist/controls-options-manager/enums.js.map +1 -1
- package/dist/controls-options-manager/index.js +109 -15
- package/dist/controls-options-manager/index.js.map +1 -1
- 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 +309 -18
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/index.js +110 -2
- package/dist/index.js.map +1 -1
- package/dist/interceptors/index.js +15 -0
- package/dist/interceptors/index.js.map +1 -0
- package/dist/interceptors/locusRetry.js +93 -0
- package/dist/interceptors/locusRetry.js.map +1 -0
- package/dist/interpretation/collection.js +23 -0
- package/dist/interpretation/collection.js.map +1 -0
- package/dist/interpretation/index.js +380 -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 +91 -2
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +386 -62
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +7 -1
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js +71 -1
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.js +249 -72
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js +89 -14
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.js +65 -102
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +73 -124
- package/dist/media/properties.js.map +1 -1
- package/dist/mediaQualityMetrics/config.js +135 -330
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +86 -2
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +4075 -2827
- 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 +224 -136
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +177 -152
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/util.js +672 -417
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/index.js +73 -7
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +192 -51
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/util.js +1 -1
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js +36 -36
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.js +39 -0
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.js +484 -119
- 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 +2 -0
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +73 -7
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +58 -0
- 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 +132 -25
- 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 +102 -6
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +106 -38
- 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 +326 -232
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +18 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +1 -446
- package/dist/metrics/index.js.map +1 -1
- package/dist/multistream/mediaRequestManager.js +223 -32
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +10 -0
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/receiveSlotManager.js +39 -36
- package/dist/multistream/receiveSlotManager.js.map +1 -1
- package/dist/multistream/remoteMedia.js +3 -1
- package/dist/multistream/remoteMedia.js.map +1 -1
- package/dist/multistream/remoteMediaGroup.js +76 -5
- package/dist/multistream/remoteMediaGroup.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +366 -104
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +255 -0
- package/dist/multistream/sendSlotManager.js.map +1 -0
- package/dist/reachability/clusterReachability.js +356 -0
- package/dist/reachability/clusterReachability.js.map +1 -0
- package/dist/reachability/index.js +263 -390
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.js +6 -4
- package/dist/reachability/request.js.map +1 -1
- package/dist/reachability/util.js +29 -0
- package/dist/reachability/util.js.map +1 -0
- package/dist/reconnection-manager/index.js +266 -202
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/index.js +21 -2
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/recording-controller/util.js +9 -8
- package/dist/recording-controller/util.js.map +1 -1
- package/dist/roap/index.js +51 -28
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js +48 -64
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/turnDiscovery.js +220 -70
- 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 +179 -0
- package/dist/rtcMetrics/index.js.map +1 -0
- package/dist/statsAnalyzer/index.js +357 -295
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.js +296 -156
- package/dist/statsAnalyzer/mqaUtil.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/events.d.ts +8 -0
- package/dist/types/breakouts/utils.d.ts +14 -0
- package/dist/types/common/errors/no-meeting-info.d.ts +14 -0
- package/dist/types/common/errors/reclaim-host-role-errors.d.ts +60 -0
- package/dist/types/common/errors/webex-errors.d.ts +25 -1
- package/dist/types/common/logs/request.d.ts +2 -0
- package/dist/types/common/queue.d.ts +9 -7
- package/dist/types/config.d.ts +2 -7
- package/dist/types/constants.d.ts +203 -31
- package/dist/types/controls-options-manager/enums.d.ts +11 -1
- package/dist/types/controls-options-manager/index.d.ts +17 -1
- package/dist/types/controls-options-manager/types.d.ts +43 -0
- package/dist/types/controls-options-manager/util.d.ts +1 -7
- package/dist/types/index.d.ts +6 -5
- package/dist/types/interceptors/index.d.ts +2 -0
- package/dist/types/interceptors/locusRetry.d.ts +27 -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/index.d.ts +57 -4
- package/dist/types/locus-info/parser.d.ts +66 -6
- package/dist/types/media/index.d.ts +2 -0
- package/dist/types/media/properties.d.ts +34 -49
- package/dist/types/mediaQualityMetrics/config.d.ts +99 -223
- package/dist/types/meeting/in-meeting-actions.d.ts +86 -2
- package/dist/types/meeting/index.d.ts +567 -496
- package/dist/types/meeting/locusMediaRequest.d.ts +74 -0
- package/dist/types/meeting/muteState.d.ts +93 -25
- package/dist/types/meeting/request.d.ts +64 -43
- package/dist/types/meeting/util.d.ts +117 -1
- package/dist/types/meeting-info/index.d.ts +13 -1
- package/dist/types/meeting-info/meeting-info-v2.d.ts +31 -1
- package/dist/types/meetings/collection.d.ts +17 -0
- package/dist/types/meetings/index.d.ts +113 -21
- package/dist/types/meetings/meetings.types.d.ts +4 -0
- package/dist/types/member/index.d.ts +14 -0
- package/dist/types/member/types.d.ts +32 -0
- package/dist/types/members/collection.d.ts +5 -0
- package/dist/types/members/index.d.ts +35 -2
- package/dist/types/members/request.d.ts +73 -9
- package/dist/types/members/types.d.ts +25 -0
- package/dist/types/members/util.d.ts +214 -1
- package/dist/types/metrics/constants.d.ts +17 -0
- package/dist/types/metrics/index.d.ts +4 -111
- package/dist/types/multistream/mediaRequestManager.d.ts +72 -3
- package/dist/types/multistream/receiveSlot.d.ts +7 -3
- package/dist/types/multistream/receiveSlotManager.d.ts +14 -4
- package/dist/types/multistream/remoteMedia.d.ts +3 -31
- package/dist/types/multistream/remoteMediaGroup.d.ts +2 -9
- package/dist/types/multistream/remoteMediaManager.d.ts +62 -2
- package/dist/types/multistream/sendSlotManager.d.ts +70 -0
- package/dist/types/reachability/clusterReachability.d.ts +109 -0
- package/dist/types/reachability/index.d.ts +60 -95
- package/dist/types/reachability/request.d.ts +3 -1
- package/dist/types/reachability/util.d.ts +8 -0
- package/dist/types/reconnection-manager/index.d.ts +19 -0
- package/dist/types/recording-controller/index.d.ts +15 -1
- package/dist/types/recording-controller/util.d.ts +5 -4
- package/dist/types/roap/index.d.ts +2 -1
- package/dist/types/roap/request.d.ts +9 -8
- package/dist/types/roap/turnDiscovery.d.ts +39 -5
- package/dist/types/rtcMetrics/constants.d.ts +4 -0
- package/dist/types/rtcMetrics/index.d.ts +61 -0
- package/dist/types/statsAnalyzer/index.d.ts +34 -12
- package/dist/types/statsAnalyzer/mqaUtil.d.ts +28 -4
- 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/package.json +22 -19
- 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 +35 -11
- package/src/breakouts/breakout.ts +67 -9
- package/src/breakouts/events.ts +56 -0
- package/src/breakouts/index.ts +558 -59
- package/src/breakouts/utils.ts +42 -0
- package/src/common/errors/no-meeting-info.ts +24 -0
- package/src/common/errors/reclaim-host-role-errors.ts +134 -0
- package/src/common/errors/webex-errors.ts +44 -2
- package/src/common/logs/logger-proxy.ts +1 -1
- package/src/common/logs/request.ts +5 -1
- package/src/common/queue.ts +22 -8
- package/src/config.ts +4 -9
- package/src/constants.ts +229 -21
- package/src/controls-options-manager/enums.ts +12 -0
- package/src/controls-options-manager/index.ts +116 -21
- package/src/controls-options-manager/types.ts +59 -0
- package/src/controls-options-manager/util.ts +294 -14
- package/src/index.ts +44 -0
- package/src/interceptors/index.ts +3 -0
- package/src/interceptors/locusRetry.ts +67 -0
- package/src/interpretation/README.md +60 -0
- package/src/interpretation/collection.ts +19 -0
- package/src/interpretation/index.ts +349 -0
- package/src/interpretation/siLanguage.ts +18 -0
- package/src/locus-info/controlsUtils.ts +108 -0
- package/src/locus-info/index.ts +417 -59
- package/src/locus-info/infoUtils.ts +10 -2
- package/src/locus-info/mediaSharesUtils.ts +80 -0
- package/src/locus-info/parser.ts +258 -47
- package/src/locus-info/selfUtils.ts +81 -5
- package/src/media/index.ts +100 -108
- package/src/media/properties.ts +88 -117
- package/src/mediaQualityMetrics/config.ts +103 -238
- package/src/meeting/in-meeting-actions.ts +171 -3
- package/src/meeting/index.ts +3411 -2435
- package/src/meeting/locusMediaRequest.ts +313 -0
- package/src/meeting/muteState.ts +223 -136
- package/src/meeting/request.ts +155 -120
- package/src/meeting/util.ts +685 -395
- package/src/meeting-info/index.ts +81 -8
- package/src/meeting-info/meeting-info-v2.ts +170 -14
- package/src/meeting-info/util.ts +1 -1
- package/src/meeting-info/utilv2.ts +23 -23
- package/src/meetings/collection.ts +33 -0
- package/src/meetings/index.ts +507 -127
- package/src/meetings/meetings.types.ts +12 -0
- package/src/meetings/request.ts +2 -0
- package/src/meetings/util.ts +81 -12
- package/src/member/index.ts +58 -0
- package/src/member/types.ts +38 -0
- package/src/member/util.ts +141 -25
- package/src/members/collection.ts +8 -0
- package/src/members/index.ts +134 -8
- package/src/members/request.ts +97 -17
- package/src/members/types.ts +29 -0
- package/src/members/util.ts +333 -240
- package/src/metrics/constants.ts +17 -0
- package/src/metrics/index.ts +1 -469
- package/src/multistream/mediaRequestManager.ts +271 -56
- package/src/multistream/receiveSlot.ts +11 -4
- package/src/multistream/receiveSlotManager.ts +34 -24
- package/src/multistream/remoteMedia.ts +5 -3
- package/src/multistream/remoteMediaGroup.ts +78 -0
- package/src/multistream/remoteMediaManager.ts +248 -44
- package/src/multistream/sendSlotManager.ts +199 -0
- package/src/reachability/clusterReachability.ts +320 -0
- package/src/reachability/index.ts +229 -346
- package/src/reachability/request.ts +8 -4
- package/src/reachability/util.ts +24 -0
- package/src/reconnection-manager/index.ts +128 -97
- package/src/recording-controller/index.ts +20 -3
- package/src/recording-controller/util.ts +26 -9
- package/src/roap/index.ts +52 -23
- package/src/roap/request.ts +48 -67
- package/src/roap/turnDiscovery.ts +147 -49
- package/src/rtcMetrics/constants.ts +3 -0
- package/src/rtcMetrics/index.ts +166 -0
- package/src/statsAnalyzer/index.ts +457 -416
- package/src/statsAnalyzer/mqaUtil.ts +317 -170
- package/src/webinar/collection.ts +31 -0
- package/src/webinar/index.ts +62 -0
- package/test/integration/spec/converged-space-meetings.js +60 -3
- package/test/integration/spec/journey.js +320 -261
- package/test/integration/spec/space-meeting.js +76 -3
- package/test/unit/spec/annotation/index.ts +418 -0
- package/test/unit/spec/breakouts/breakout.ts +118 -28
- package/test/unit/spec/breakouts/events.ts +89 -0
- package/test/unit/spec/breakouts/index.ts +1349 -114
- package/test/unit/spec/breakouts/utils.js +52 -1
- package/test/unit/spec/common/queue.js +31 -2
- package/test/unit/spec/controls-options-manager/index.js +163 -0
- package/test/unit/spec/controls-options-manager/util.js +576 -60
- package/test/unit/spec/fixture/locus.js +1 -0
- package/test/unit/spec/interceptors/locusRetry.ts +131 -0
- package/test/unit/spec/interpretation/collection.ts +15 -0
- package/test/unit/spec/interpretation/index.ts +625 -0
- package/test/unit/spec/interpretation/siLanguage.ts +28 -0
- package/test/unit/spec/locus-info/controlsUtils.js +316 -43
- package/test/unit/spec/locus-info/index.js +1363 -37
- package/test/unit/spec/locus-info/infoUtils.js +37 -15
- package/test/unit/spec/locus-info/lib/SeqCmp.json +16 -0
- package/test/unit/spec/locus-info/mediaSharesUtils.ts +41 -0
- package/test/unit/spec/locus-info/parser.js +116 -35
- package/test/unit/spec/locus-info/selfConstant.js +27 -4
- package/test/unit/spec/locus-info/selfUtils.js +208 -17
- package/test/unit/spec/media/index.ts +173 -81
- package/test/unit/spec/media/properties.ts +2 -2
- package/test/unit/spec/meeting/in-meeting-actions.ts +85 -3
- package/test/unit/spec/meeting/index.js +6821 -2172
- package/test/unit/spec/meeting/locusMediaRequest.ts +442 -0
- package/test/unit/spec/meeting/muteState.js +402 -212
- package/test/unit/spec/meeting/request.js +473 -54
- package/test/unit/spec/meeting/utils.js +773 -67
- package/test/unit/spec/meeting-info/index.js +300 -0
- package/test/unit/spec/meeting-info/meetinginfov2.js +526 -5
- package/test/unit/spec/meeting-info/utilv2.js +21 -0
- package/test/unit/spec/meetings/collection.js +26 -0
- package/test/unit/spec/meetings/index.js +1415 -213
- package/test/unit/spec/meetings/utils.js +229 -2
- package/test/unit/spec/member/index.js +61 -6
- package/test/unit/spec/member/util.js +510 -34
- package/test/unit/spec/members/index.js +432 -1
- package/test/unit/spec/members/request.js +206 -27
- package/test/unit/spec/members/utils.js +210 -0
- package/test/unit/spec/metrics/index.js +1 -50
- package/test/unit/spec/multistream/mediaRequestManager.ts +781 -114
- package/test/unit/spec/multistream/receiveSlot.ts +9 -1
- package/test/unit/spec/multistream/receiveSlotManager.ts +32 -30
- package/test/unit/spec/multistream/remoteMedia.ts +2 -0
- package/test/unit/spec/multistream/remoteMediaGroup.ts +345 -0
- package/test/unit/spec/multistream/remoteMediaManager.ts +525 -0
- package/test/unit/spec/multistream/sendSlotManager.ts +274 -0
- package/test/unit/spec/reachability/clusterReachability.ts +279 -0
- package/test/unit/spec/reachability/index.ts +551 -14
- package/test/unit/spec/reachability/request.js +3 -1
- package/test/unit/spec/reachability/util.ts +40 -0
- package/test/unit/spec/reconnection-manager/index.js +171 -11
- package/test/unit/spec/recording-controller/index.js +294 -218
- package/test/unit/spec/recording-controller/util.js +223 -96
- package/test/unit/spec/roap/index.ts +180 -83
- package/test/unit/spec/roap/request.ts +100 -62
- package/test/unit/spec/roap/turnDiscovery.ts +388 -96
- package/test/unit/spec/rtcMetrics/index.ts +122 -0
- package/test/unit/spec/stats-analyzer/index.js +1252 -12
- package/test/unit/spec/webinar/collection.ts +13 -0
- package/test/unit/spec/webinar/index.ts +60 -0
- package/test/utils/integrationTestUtils.js +46 -0
- package/test/utils/testUtils.js +0 -57
- package/test/utils/webex-test-users.js +12 -4
- package/dist/metrics/config.js +0 -289
- package/dist/metrics/config.js.map +0 -1
- package/dist/types/metrics/config.d.ts +0 -169
- package/src/index.js +0 -18
- package/src/metrics/config.ts +0 -485
|
@@ -23,10 +23,9 @@ var _loggerProxy = _interopRequireDefault(require("../common/logs/logger-proxy")
|
|
|
23
23
|
var _triggerProxy = _interopRequireDefault(require("../common/events/trigger-proxy"));
|
|
24
24
|
var _constants = require("../constants");
|
|
25
25
|
var _constants2 = _interopRequireDefault(require("../metrics/constants"));
|
|
26
|
-
var _reconnection = _interopRequireDefault(require("../common/errors/reconnection"));
|
|
27
26
|
var _reconnectionInProgress = _interopRequireDefault(require("../common/errors/reconnection-in-progress"));
|
|
28
|
-
var _config = require("../metrics/config");
|
|
29
27
|
var _metrics = _interopRequireDefault(require("../metrics"));
|
|
28
|
+
var _reconnection = _interopRequireDefault(require("../common/errors/reconnection"));
|
|
30
29
|
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); }; }
|
|
31
30
|
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; } }
|
|
32
31
|
/**
|
|
@@ -111,7 +110,7 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
111
110
|
|
|
112
111
|
/**
|
|
113
112
|
* @instance
|
|
114
|
-
* @type {
|
|
113
|
+
* @type {RECONNECTION_STATE}
|
|
115
114
|
* @private
|
|
116
115
|
* @memberof ReconnectionManager
|
|
117
116
|
*/
|
|
@@ -243,9 +242,43 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
243
242
|
key: "cleanUp",
|
|
244
243
|
value: function cleanUp() {
|
|
245
244
|
this.reset();
|
|
246
|
-
this.meeting = null;
|
|
247
245
|
}
|
|
248
246
|
|
|
247
|
+
/**
|
|
248
|
+
* Stop the local share stream.
|
|
249
|
+
*
|
|
250
|
+
* @param {string} reason a {@link SHARE_STOPPED_REASON}
|
|
251
|
+
* @returns {undefined}
|
|
252
|
+
* @private
|
|
253
|
+
* @memberof ReconnectionManager
|
|
254
|
+
*/
|
|
255
|
+
}, {
|
|
256
|
+
key: "stopLocalShareStream",
|
|
257
|
+
value: function () {
|
|
258
|
+
var _stopLocalShareStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(reason) {
|
|
259
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
260
|
+
while (1) switch (_context.prev = _context.next) {
|
|
261
|
+
case 0:
|
|
262
|
+
_context.next = 2;
|
|
263
|
+
return this.meeting.unpublishStreams([this.meeting.mediaProperties.shareVideoStream, this.meeting.mediaProperties.shareAudioStream]);
|
|
264
|
+
case 2:
|
|
265
|
+
_triggerProxy.default.trigger(this.meeting, {
|
|
266
|
+
file: 'reconnection-manager/index',
|
|
267
|
+
function: 'stopLocalShareStream'
|
|
268
|
+
}, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_LOCAL, {
|
|
269
|
+
reason: reason
|
|
270
|
+
});
|
|
271
|
+
case 3:
|
|
272
|
+
case "end":
|
|
273
|
+
return _context.stop();
|
|
274
|
+
}
|
|
275
|
+
}, _callee, this);
|
|
276
|
+
}));
|
|
277
|
+
function stopLocalShareStream(_x) {
|
|
278
|
+
return _stopLocalShareStream.apply(this, arguments);
|
|
279
|
+
}
|
|
280
|
+
return stopLocalShareStream;
|
|
281
|
+
}()
|
|
249
282
|
/**
|
|
250
283
|
* @public
|
|
251
284
|
* @memberof ReconnectionManager
|
|
@@ -257,6 +290,20 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
257
290
|
return this.status === _constants.RECONNECTION.STATE.IN_PROGRESS;
|
|
258
291
|
}
|
|
259
292
|
|
|
293
|
+
/**
|
|
294
|
+
* Sets the reconnection status
|
|
295
|
+
*
|
|
296
|
+
* @public
|
|
297
|
+
* @param {RECONNECTION_STATE} status
|
|
298
|
+
* @memberof ReconnectionManager
|
|
299
|
+
* @returns {undefined}
|
|
300
|
+
*/
|
|
301
|
+
}, {
|
|
302
|
+
key: "setStatus",
|
|
303
|
+
value: function setStatus(status) {
|
|
304
|
+
this.status = status;
|
|
305
|
+
}
|
|
306
|
+
|
|
260
307
|
/**
|
|
261
308
|
* @returns {Boolean}
|
|
262
309
|
* @throws {ReconnectionError}
|
|
@@ -289,94 +336,111 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
289
336
|
}, {
|
|
290
337
|
key: "reconnect",
|
|
291
338
|
value: function () {
|
|
292
|
-
var _reconnect = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
293
|
-
var _this3 = this;
|
|
339
|
+
var _reconnect = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
294
340
|
var _ref2,
|
|
295
341
|
_ref2$networkDisconne,
|
|
296
342
|
networkDisconnect,
|
|
297
343
|
_ref2$networkRetry,
|
|
298
344
|
networkRetry,
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
345
|
+
media,
|
|
346
|
+
_args2 = arguments;
|
|
347
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
348
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
302
349
|
case 0:
|
|
303
|
-
_ref2 =
|
|
350
|
+
_ref2 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, _ref2$networkDisconne = _ref2.networkDisconnect, networkDisconnect = _ref2$networkDisconne === void 0 ? false : _ref2$networkDisconne, _ref2$networkRetry = _ref2.networkRetry, networkRetry = _ref2$networkRetry === void 0 ? false : _ref2$networkRetry;
|
|
304
351
|
_loggerProxy.default.logger.info("ReconnectionManager:index#reconnect --> Reconnection start for meeting ".concat(this.meeting.id, "."));
|
|
305
352
|
// First, validate that we can reconnect, if not, it will throw an error
|
|
306
|
-
|
|
353
|
+
_context2.prev = 2;
|
|
307
354
|
this.validate();
|
|
308
|
-
|
|
355
|
+
_context2.next = 10;
|
|
309
356
|
break;
|
|
310
357
|
case 6:
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnect --> Reconnection unable to begin.',
|
|
314
|
-
throw
|
|
358
|
+
_context2.prev = 6;
|
|
359
|
+
_context2.t0 = _context2["catch"](2);
|
|
360
|
+
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnect --> Reconnection unable to begin.', _context2.t0);
|
|
361
|
+
throw _context2.t0;
|
|
315
362
|
case 10:
|
|
316
363
|
if (!networkRetry) {
|
|
317
364
|
// Only log START metrics on the initial reconnect
|
|
318
365
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnect --> Sending reconnect start metric.');
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
366
|
+
|
|
367
|
+
// @ts-ignore
|
|
368
|
+
this.webex.internal.newMetrics.submitClientEvent({
|
|
369
|
+
name: 'client.media.reconnecting',
|
|
370
|
+
options: {
|
|
371
|
+
meetingId: this.meeting.id
|
|
372
|
+
}
|
|
322
373
|
});
|
|
323
374
|
}
|
|
324
|
-
|
|
375
|
+
_context2.prev = 11;
|
|
376
|
+
_context2.next = 14;
|
|
377
|
+
return this.webex.meetings.startReachability();
|
|
378
|
+
case 14:
|
|
379
|
+
_context2.next = 19;
|
|
380
|
+
break;
|
|
381
|
+
case 16:
|
|
382
|
+
_context2.prev = 16;
|
|
383
|
+
_context2.t1 = _context2["catch"](11);
|
|
384
|
+
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnect --> Reachability failed, continuing with reconnection attempt, err: ', _context2.t1);
|
|
385
|
+
case 19:
|
|
386
|
+
_context2.prev = 19;
|
|
387
|
+
_context2.next = 22;
|
|
388
|
+
return this.executeReconnection({
|
|
325
389
|
networkDisconnect: networkDisconnect
|
|
326
|
-
})
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
_this3.status = _constants.RECONNECTION.STATE.DEFAULT_STATUS;
|
|
341
|
-
|
|
342
|
-
// This is a network retry, so we should not log START metrics again
|
|
343
|
-
return _this3.reconnect({
|
|
344
|
-
networkDisconnect: true,
|
|
345
|
-
networkRetry: true
|
|
346
|
-
});
|
|
347
|
-
}
|
|
390
|
+
});
|
|
391
|
+
case 22:
|
|
392
|
+
media = _context2.sent;
|
|
393
|
+
return _context2.abrupt("return", media);
|
|
394
|
+
case 26:
|
|
395
|
+
_context2.prev = 26;
|
|
396
|
+
_context2.t2 = _context2["catch"](19);
|
|
397
|
+
if (!(_context2.t2 instanceof NeedsRetryError)) {
|
|
398
|
+
_context2.next = 32;
|
|
399
|
+
break;
|
|
400
|
+
}
|
|
401
|
+
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnect --> Reconnection not successful, retrying.');
|
|
402
|
+
// Reset our reconnect status since we are looping back to the beginning
|
|
403
|
+
this.status = _constants.RECONNECTION.STATE.DEFAULT_STATUS;
|
|
348
404
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
errorCode: 2008,
|
|
359
|
-
fatal: true,
|
|
360
|
-
name: _config.errorObjects.name.mediaEngine,
|
|
361
|
-
shownToUser: false
|
|
362
|
-
}]
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
|
-
_metrics.default.postEvent(reconnectMetric);
|
|
366
|
-
if (reconnectError instanceof NeedsRejoinError) {
|
|
367
|
-
// send call aborded event with catogery as expected as we are trying to rejoin
|
|
405
|
+
// This is a network retry, so we should not log START metrics again
|
|
406
|
+
return _context2.abrupt("return", this.reconnect({
|
|
407
|
+
networkDisconnect: true,
|
|
408
|
+
networkRetry: true
|
|
409
|
+
}));
|
|
410
|
+
case 32:
|
|
411
|
+
// Reconnect has failed
|
|
412
|
+
_loggerProxy.default.logger.error('ReconnectionManager:index#reconnect --> Reconnection failed.', _context2.t2.message);
|
|
413
|
+
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnect --> Sending reconnect abort metric.');
|
|
368
414
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
415
|
+
// send call aborted event with catogery as expected as we are trying to rejoin
|
|
416
|
+
// @ts-ignore
|
|
417
|
+
this.webex.internal.newMetrics.submitClientEvent({
|
|
418
|
+
name: 'client.call.aborted',
|
|
419
|
+
payload: {
|
|
420
|
+
errors: [{
|
|
421
|
+
category: 'expected',
|
|
422
|
+
errorCode: 2008,
|
|
423
|
+
fatal: true,
|
|
424
|
+
name: 'media-engine',
|
|
425
|
+
shownToUser: false
|
|
426
|
+
}]
|
|
427
|
+
},
|
|
428
|
+
options: {
|
|
429
|
+
meetingId: this.meeting.id
|
|
372
430
|
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
431
|
+
});
|
|
432
|
+
if (!(_context2.t2 instanceof NeedsRejoinError && this.autoRejoinEnabled)) {
|
|
433
|
+
_context2.next = 37;
|
|
434
|
+
break;
|
|
435
|
+
}
|
|
436
|
+
return _context2.abrupt("return", this.rejoinMeeting(_context2.t2.wasSharing));
|
|
437
|
+
case 37:
|
|
438
|
+
throw _context2.t2;
|
|
439
|
+
case 38:
|
|
376
440
|
case "end":
|
|
377
|
-
return
|
|
441
|
+
return _context2.stop();
|
|
378
442
|
}
|
|
379
|
-
},
|
|
443
|
+
}, _callee2, this, [[2, 6], [11, 16], [19, 26]]);
|
|
380
444
|
}));
|
|
381
445
|
function reconnect() {
|
|
382
446
|
return _reconnect.apply(this, arguments);
|
|
@@ -394,91 +458,99 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
394
458
|
}, {
|
|
395
459
|
key: "executeReconnection",
|
|
396
460
|
value: function () {
|
|
397
|
-
var _executeReconnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
461
|
+
var _executeReconnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(_ref3) {
|
|
398
462
|
var _ref3$networkDisconne, networkDisconnect, wasSharing, media;
|
|
399
|
-
return _regenerator.default.wrap(function
|
|
400
|
-
while (1) switch (
|
|
463
|
+
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
464
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
401
465
|
case 0:
|
|
402
466
|
_ref3$networkDisconne = _ref3.networkDisconnect, networkDisconnect = _ref3$networkDisconne === void 0 ? false : _ref3$networkDisconne;
|
|
403
467
|
this.status = _constants.RECONNECTION.STATE.IN_PROGRESS;
|
|
404
468
|
_loggerProxy.default.logger.info('ReconnectionManager:index#executeReconnection --> Attempting to reconnect to meeting.');
|
|
469
|
+
wasSharing = this.meeting.shareStatus === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE;
|
|
470
|
+
if (!wasSharing) {
|
|
471
|
+
_context3.next = 7;
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
474
|
+
_context3.next = 7;
|
|
475
|
+
return this.stopLocalShareStream(_constants.SHARE_STOPPED_REASON.MEDIA_RECONNECTION);
|
|
476
|
+
case 7:
|
|
405
477
|
if (!networkDisconnect) {
|
|
406
|
-
|
|
478
|
+
_context3.next = 19;
|
|
407
479
|
break;
|
|
408
480
|
}
|
|
409
|
-
|
|
410
|
-
|
|
481
|
+
_context3.prev = 8;
|
|
482
|
+
_context3.next = 11;
|
|
411
483
|
return this.reconnectMercuryWebSocket();
|
|
412
|
-
case
|
|
484
|
+
case 11:
|
|
413
485
|
_loggerProxy.default.logger.error('ReconnectionManager:index#executeReconnection --> Websocket reconnected.', this.webex.internal.device.url);
|
|
414
|
-
|
|
486
|
+
_context3.next = 19;
|
|
415
487
|
break;
|
|
416
|
-
case
|
|
417
|
-
|
|
418
|
-
|
|
488
|
+
case 14:
|
|
489
|
+
_context3.prev = 14;
|
|
490
|
+
_context3.t0 = _context3["catch"](8);
|
|
419
491
|
_loggerProxy.default.logger.error('ReconnectionManager:index#executeReconnection --> Unable to reconnect to websocket, giving up.');
|
|
420
492
|
this.status = _constants.RECONNECTION.STATE.FAILURE;
|
|
421
|
-
throw
|
|
422
|
-
case
|
|
423
|
-
|
|
424
|
-
_context2.prev = 16;
|
|
493
|
+
throw _context3.t0;
|
|
494
|
+
case 19:
|
|
495
|
+
_context3.prev = 19;
|
|
425
496
|
_loggerProxy.default.logger.info('ReconnectionManager:index#executeReconnection --> Updating meeting data from server.');
|
|
426
|
-
|
|
427
|
-
return this.webex.meetings.syncMeetings(
|
|
428
|
-
|
|
429
|
-
|
|
497
|
+
_context3.next = 23;
|
|
498
|
+
return this.webex.meetings.syncMeetings({
|
|
499
|
+
keepOnlyLocusMeetings: false
|
|
500
|
+
});
|
|
501
|
+
case 23:
|
|
502
|
+
_context3.next = 29;
|
|
430
503
|
break;
|
|
431
|
-
case
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
_loggerProxy.default.logger.info('ReconnectionManager:index#executeReconnection --> Unable to sync meetings, reconnecting.',
|
|
435
|
-
throw new NeedsRetryError(
|
|
436
|
-
case
|
|
504
|
+
case 25:
|
|
505
|
+
_context3.prev = 25;
|
|
506
|
+
_context3.t1 = _context3["catch"](19);
|
|
507
|
+
_loggerProxy.default.logger.info('ReconnectionManager:index#executeReconnection --> Unable to sync meetings, reconnecting.', _context3.t1);
|
|
508
|
+
throw new NeedsRetryError(_context3.t1);
|
|
509
|
+
case 29:
|
|
437
510
|
if (!(!this.meeting || !this.webex.meetings.getMeetingByType(_constants._ID_, this.meeting.id))) {
|
|
438
|
-
|
|
511
|
+
_context3.next = 32;
|
|
439
512
|
break;
|
|
440
513
|
}
|
|
441
|
-
_loggerProxy.default.logger.info('ReconnectionManager:index#executeReconnection --> Meeting got deleted due to inactivity or ended remotely
|
|
442
|
-
throw new Error('Unable to rejoin a meeting already ended or inactive
|
|
443
|
-
case
|
|
514
|
+
_loggerProxy.default.logger.info('ReconnectionManager:index#executeReconnection --> Meeting got deleted due to inactivity or ended remotely.');
|
|
515
|
+
throw new Error('Unable to rejoin a meeting already ended or inactive.');
|
|
516
|
+
case 32:
|
|
444
517
|
_loggerProxy.default.logger.info("ReconnectionManager:index#executeReconnection --> Current state of meeting is ".concat(this.meeting.state));
|
|
445
518
|
|
|
446
519
|
// If the meeting state was left, no longer reconnect media
|
|
447
520
|
if (!(this.meeting.state === _constants._LEFT_)) {
|
|
448
|
-
|
|
521
|
+
_context3.next = 37;
|
|
449
522
|
break;
|
|
450
523
|
}
|
|
451
524
|
if (!(this.meeting.type === _constants._CALL_)) {
|
|
452
|
-
|
|
525
|
+
_context3.next = 36;
|
|
453
526
|
break;
|
|
454
527
|
}
|
|
455
528
|
throw new Error('Unable to rejoin a call in LEFT state.');
|
|
456
|
-
case
|
|
529
|
+
case 36:
|
|
457
530
|
throw new NeedsRejoinError({
|
|
458
531
|
wasSharing: wasSharing
|
|
459
532
|
});
|
|
460
|
-
case 34:
|
|
461
|
-
_context2.prev = 34;
|
|
462
|
-
_context2.next = 37;
|
|
463
|
-
return this.reconnectMedia();
|
|
464
533
|
case 37:
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
this.
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
534
|
+
_context3.prev = 37;
|
|
535
|
+
_context3.next = 40;
|
|
536
|
+
return this.reconnectMedia();
|
|
537
|
+
case 40:
|
|
538
|
+
media = _context3.sent;
|
|
539
|
+
_loggerProxy.default.logger.log('ReconnectionManager:index#executeReconnection --> webRTC media connection renewed and local sdp offer sent');
|
|
540
|
+
return _context3.abrupt("return", media);
|
|
541
|
+
case 45:
|
|
542
|
+
_context3.prev = 45;
|
|
543
|
+
_context3.t2 = _context3["catch"](37);
|
|
544
|
+
_loggerProxy.default.logger.error('ReconnectionManager:index#executeReconnection --> failed to renew webRTC media connection or initiate offer');
|
|
473
545
|
this.status = _constants.RECONNECTION.STATE.FAILURE;
|
|
474
|
-
throw
|
|
475
|
-
case
|
|
546
|
+
throw _context3.t2;
|
|
547
|
+
case 50:
|
|
476
548
|
case "end":
|
|
477
|
-
return
|
|
549
|
+
return _context3.stop();
|
|
478
550
|
}
|
|
479
|
-
},
|
|
551
|
+
}, _callee3, this, [[8, 14], [19, 25], [37, 45]]);
|
|
480
552
|
}));
|
|
481
|
-
function executeReconnection(
|
|
553
|
+
function executeReconnection(_x2) {
|
|
482
554
|
return _executeReconnection.apply(this, arguments);
|
|
483
555
|
}
|
|
484
556
|
return executeReconnection;
|
|
@@ -493,76 +565,68 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
493
565
|
}, {
|
|
494
566
|
key: "rejoinMeeting",
|
|
495
567
|
value: function () {
|
|
496
|
-
var _rejoinMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
568
|
+
var _rejoinMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
497
569
|
var wasSharing,
|
|
498
|
-
|
|
499
|
-
return _regenerator.default.wrap(function
|
|
500
|
-
while (1) switch (
|
|
570
|
+
_args4 = arguments;
|
|
571
|
+
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
572
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
501
573
|
case 0:
|
|
502
|
-
wasSharing =
|
|
503
|
-
|
|
574
|
+
wasSharing = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : false;
|
|
575
|
+
_context4.prev = 1;
|
|
504
576
|
_loggerProxy.default.logger.info('ReconnectionManager:index#rejoinMeeting --> attemping meeting rejoin');
|
|
505
|
-
|
|
577
|
+
_context4.next = 5;
|
|
506
578
|
return this.meeting.join({
|
|
507
579
|
rejoin: true
|
|
508
580
|
});
|
|
509
581
|
case 5:
|
|
510
582
|
_loggerProxy.default.logger.info('ReconnectionManager:index#rejoinMeeting --> meeting rejoined');
|
|
511
|
-
if (wasSharing) {
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
this.meeting.isSharing = false;
|
|
515
|
-
if (this.shareStatus === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE) {
|
|
516
|
-
this.meeting.shareStatus = _constants.SHARE_STATUS.NO_SHARE;
|
|
517
|
-
}
|
|
518
|
-
this.meeting.mediaProperties.mediaDirection.sendShare = false;
|
|
519
|
-
_triggerProxy.default.trigger(this.meeting, {
|
|
520
|
-
file: 'reconnection-manager/index',
|
|
521
|
-
function: 'rejoinMeeting'
|
|
522
|
-
}, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_LOCAL, {
|
|
523
|
-
reason: _constants.SHARE_STOPPED_REASON.MEETING_REJOIN
|
|
524
|
-
});
|
|
583
|
+
if (!wasSharing) {
|
|
584
|
+
_context4.next = 9;
|
|
585
|
+
break;
|
|
525
586
|
}
|
|
526
|
-
|
|
527
|
-
|
|
587
|
+
_context4.next = 9;
|
|
588
|
+
return this.stopLocalShareStream(_constants.SHARE_STOPPED_REASON.MEETING_REJOIN);
|
|
528
589
|
case 9:
|
|
529
|
-
|
|
530
|
-
|
|
590
|
+
_context4.next = 23;
|
|
591
|
+
break;
|
|
592
|
+
case 11:
|
|
593
|
+
_context4.prev = 11;
|
|
594
|
+
_context4.t0 = _context4["catch"](1);
|
|
531
595
|
this.rejoinAttempts += 1;
|
|
532
596
|
if (!(this.rejoinAttempts <= this.maxRejoinAttempts)) {
|
|
533
|
-
|
|
597
|
+
_context4.next = 19;
|
|
534
598
|
break;
|
|
535
599
|
}
|
|
536
|
-
_loggerProxy.default.logger.info("ReconnectionManager:index#rejoinMeeting --> Unable to rejoin meeting, attempt #".concat(this.rejoinAttempts, ", retrying."),
|
|
600
|
+
_loggerProxy.default.logger.info("ReconnectionManager:index#rejoinMeeting --> Unable to rejoin meeting, attempt #".concat(this.rejoinAttempts, ", retrying."), _context4.t0);
|
|
537
601
|
this.rejoinMeeting();
|
|
538
|
-
|
|
602
|
+
_context4.next = 23;
|
|
539
603
|
break;
|
|
540
|
-
case
|
|
541
|
-
_loggerProxy.default.logger.error('ReconnectionManager:index#rejoinMeeting --> Unable to rejoin meeting after max attempts.',
|
|
604
|
+
case 19:
|
|
605
|
+
_loggerProxy.default.logger.error('ReconnectionManager:index#rejoinMeeting --> Unable to rejoin meeting after max attempts.', _context4.t0);
|
|
542
606
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_MAX_REJOIN_FAILURE, {
|
|
543
607
|
locus_id: this.meeting.locusUrl.split('/').pop(),
|
|
544
|
-
reason:
|
|
545
|
-
stack:
|
|
608
|
+
reason: _context4.t0.message,
|
|
609
|
+
stack: _context4.t0.stack
|
|
546
610
|
});
|
|
547
611
|
this.status = _constants.RECONNECTION.STATE.FAILURE;
|
|
548
|
-
throw
|
|
549
|
-
case
|
|
550
|
-
|
|
551
|
-
|
|
612
|
+
throw _context4.t0;
|
|
613
|
+
case 23:
|
|
614
|
+
_context4.prev = 23;
|
|
615
|
+
_context4.next = 26;
|
|
552
616
|
return this.reconnectMedia();
|
|
553
|
-
case 24:
|
|
554
|
-
_context3.next = 30;
|
|
555
|
-
break;
|
|
556
617
|
case 26:
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
618
|
+
_context4.next = 32;
|
|
619
|
+
break;
|
|
620
|
+
case 28:
|
|
621
|
+
_context4.prev = 28;
|
|
622
|
+
_context4.t1 = _context4["catch"](23);
|
|
623
|
+
_loggerProxy.default.logger.error('ReconnectionManager:index#rejoinMeeting --> Unable to reestablish media after rejoining.', _context4.t1);
|
|
624
|
+
throw _context4.t1;
|
|
625
|
+
case 32:
|
|
562
626
|
case "end":
|
|
563
|
-
return
|
|
627
|
+
return _context4.stop();
|
|
564
628
|
}
|
|
565
|
-
},
|
|
629
|
+
}, _callee4, this, [[1, 11], [23, 28]]);
|
|
566
630
|
}));
|
|
567
631
|
function rejoinMeeting() {
|
|
568
632
|
return _rejoinMeeting.apply(this, arguments);
|
|
@@ -577,43 +641,43 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
577
641
|
}, {
|
|
578
642
|
key: "reconnectMedia",
|
|
579
643
|
value: function () {
|
|
580
|
-
var _reconnectMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
644
|
+
var _reconnectMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
645
|
+
var _turnServerResult$tur;
|
|
581
646
|
var turnServerResult, iceServers;
|
|
582
|
-
return _regenerator.default.wrap(function
|
|
583
|
-
while (1) switch (
|
|
647
|
+
return _regenerator.default.wrap(function _callee5$(_context5) {
|
|
648
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
584
649
|
case 0:
|
|
585
|
-
_loggerProxy.default.logger.log('ReconnectionManager:index#reconnectMedia -->
|
|
650
|
+
_loggerProxy.default.logger.log('ReconnectionManager:index#reconnectMedia --> do turn discovery');
|
|
586
651
|
|
|
587
|
-
// do the TURN server discovery again since the TURN server might change
|
|
588
|
-
|
|
589
|
-
return this.meeting.roap.doTurnDiscovery(this.meeting, true);
|
|
652
|
+
// do the TURN server discovery again and ignore reachability results since the TURN server might change
|
|
653
|
+
_context5.next = 3;
|
|
654
|
+
return this.meeting.roap.doTurnDiscovery(this.meeting, true, true);
|
|
590
655
|
case 3:
|
|
591
|
-
turnServerResult =
|
|
656
|
+
turnServerResult = _context5.sent;
|
|
592
657
|
iceServers = [];
|
|
593
|
-
if (turnServerResult.turnServerInfo) {
|
|
658
|
+
if ((_turnServerResult$tur = turnServerResult.turnServerInfo) !== null && _turnServerResult$tur !== void 0 && _turnServerResult$tur.url) {
|
|
594
659
|
iceServers.push({
|
|
595
660
|
urls: turnServerResult.turnServerInfo.url,
|
|
596
661
|
username: turnServerResult.turnServerInfo.username || '',
|
|
597
662
|
credential: turnServerResult.turnServerInfo.password || ''
|
|
598
663
|
});
|
|
599
664
|
}
|
|
600
|
-
|
|
665
|
+
_loggerProxy.default.logger.log('ReconnectionManager:index#reconnectMedia --> renew webRTC media connection and send local sdp offer');
|
|
666
|
+
_context5.next = 9;
|
|
601
667
|
return this.meeting.mediaProperties.webrtcMediaConnection.reconnect(iceServers);
|
|
602
|
-
case
|
|
668
|
+
case 9:
|
|
603
669
|
// resend media requests
|
|
604
670
|
if (this.meeting.isMultistream) {
|
|
605
671
|
(0, _values.default)(this.meeting.mediaRequestManagers).forEach(function (mediaRequestManager) {
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
mediaRequestManager.commit()
|
|
609
|
-
);
|
|
672
|
+
mediaRequestManager.clearPreviousRequests();
|
|
673
|
+
mediaRequestManager.commit();
|
|
610
674
|
});
|
|
611
675
|
}
|
|
612
|
-
case
|
|
676
|
+
case 10:
|
|
613
677
|
case "end":
|
|
614
|
-
return
|
|
678
|
+
return _context5.stop();
|
|
615
679
|
}
|
|
616
|
-
},
|
|
680
|
+
}, _callee5, this);
|
|
617
681
|
}));
|
|
618
682
|
function reconnectMedia() {
|
|
619
683
|
return _reconnectMedia.apply(this, arguments);
|
|
@@ -629,49 +693,49 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
629
693
|
}, {
|
|
630
694
|
key: "reconnectMercuryWebSocket",
|
|
631
695
|
value: function () {
|
|
632
|
-
var _reconnectMercuryWebSocket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
633
|
-
return _regenerator.default.wrap(function
|
|
634
|
-
while (1) switch (
|
|
696
|
+
var _reconnectMercuryWebSocket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
|
697
|
+
return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
698
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
635
699
|
case 0:
|
|
636
700
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Reconnecting websocket.');
|
|
637
701
|
// First, attempt to disconnect if we think we are already connected.
|
|
638
702
|
if (!this.webex.internal.mercury.connected) {
|
|
639
|
-
|
|
703
|
+
_context6.next = 13;
|
|
640
704
|
break;
|
|
641
705
|
}
|
|
642
706
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Disconnecting existing websocket.');
|
|
643
|
-
|
|
644
|
-
|
|
707
|
+
_context6.prev = 3;
|
|
708
|
+
_context6.next = 6;
|
|
645
709
|
return this.webex.internal.mercury.disconnect();
|
|
646
710
|
case 6:
|
|
647
711
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Websocket disconnected successfully.');
|
|
648
|
-
|
|
712
|
+
_context6.next = 13;
|
|
649
713
|
break;
|
|
650
714
|
case 9:
|
|
651
|
-
|
|
652
|
-
|
|
715
|
+
_context6.prev = 9;
|
|
716
|
+
_context6.t0 = _context6["catch"](3);
|
|
653
717
|
// If we can't disconnect, the sdk is in such a bad state that reconnecting is not going to happen.
|
|
654
|
-
_loggerProxy.default.logger.error('ReconnectionManager:index#reconnectMercuryWebSocket --> Unable to disconnect from websocket, giving up.',
|
|
655
|
-
throw
|
|
718
|
+
_loggerProxy.default.logger.error('ReconnectionManager:index#reconnectMercuryWebSocket --> Unable to disconnect from websocket, giving up.', _context6.t0);
|
|
719
|
+
throw _context6.t0;
|
|
656
720
|
case 13:
|
|
657
|
-
|
|
721
|
+
_context6.prev = 13;
|
|
658
722
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Connecting websocket.');
|
|
659
|
-
|
|
723
|
+
_context6.next = 17;
|
|
660
724
|
return this.webex.internal.mercury.connect();
|
|
661
725
|
case 17:
|
|
662
726
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Websocket connected successfully.');
|
|
663
|
-
|
|
727
|
+
_context6.next = 24;
|
|
664
728
|
break;
|
|
665
729
|
case 20:
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
_loggerProxy.default.logger.error('ReconnectionManager:index#reconnectMercuryWebSocket --> Unable to connect to websocket, giving up.',
|
|
669
|
-
throw
|
|
730
|
+
_context6.prev = 20;
|
|
731
|
+
_context6.t1 = _context6["catch"](13);
|
|
732
|
+
_loggerProxy.default.logger.error('ReconnectionManager:index#reconnectMercuryWebSocket --> Unable to connect to websocket, giving up.', _context6.t1);
|
|
733
|
+
throw _context6.t1;
|
|
670
734
|
case 24:
|
|
671
735
|
case "end":
|
|
672
|
-
return
|
|
736
|
+
return _context6.stop();
|
|
673
737
|
}
|
|
674
|
-
},
|
|
738
|
+
}, _callee6, this, [[3, 9], [13, 20]]);
|
|
675
739
|
}));
|
|
676
740
|
function reconnectMercuryWebSocket() {
|
|
677
741
|
return _reconnectMercuryWebSocket.apply(this, arguments);
|