@webex/plugin-meetings 2.60.1-next.9 → 2.60.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -58
- package/dist/common/browser-detection.js +3 -2
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js +4 -3
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.js +2 -1
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.js +2 -1
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js +2 -1
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-meeting.js +2 -1
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/media.js +2 -1
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/parameter.js +4 -3
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js +2 -1
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js +2 -1
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/{reclaim-host-role-errors.js → reclaim-host-role-error.js} +11 -7
- package/dist/common/errors/reclaim-host-role-error.js.map +1 -0
- package/dist/common/errors/reconnection-in-progress.js +2 -1
- package/dist/common/errors/reconnection-in-progress.js.map +1 -1
- package/dist/common/errors/reconnection.js +2 -1
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js +2 -1
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.d.ts +8 -20
- package/dist/common/errors/webex-errors.js +28 -48
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.js +2 -1
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.js +2 -1
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.js +2 -1
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.js +2 -1
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.js +2 -1
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.js +2 -1
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.js +3 -2
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.d.ts +1 -3
- package/dist/common/logs/request.js +5 -8
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.d.ts +7 -9
- package/dist/common/queue.js +9 -22
- package/dist/common/queue.js.map +1 -1
- package/dist/config.d.ts +7 -6
- package/dist/config.js +10 -8
- package/dist/config.js.map +1 -1
- package/dist/constants.d.ts +100 -234
- package/dist/constants.js +444 -433
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js +6 -3
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/enums.d.ts +1 -11
- package/dist/controls-options-manager/enums.js +6 -15
- package/dist/controls-options-manager/enums.js.map +1 -1
- package/dist/controls-options-manager/index.d.ts +1 -17
- package/dist/controls-options-manager/index.js +38 -127
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/util.d.ts +7 -1
- package/dist/controls-options-manager/util.js +19 -309
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/index.d.ts +3 -6
- package/dist/index.js +5 -121
- package/dist/index.js.map +1 -1
- package/dist/locus-info/controlsUtils.js +11 -100
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.js +4 -3
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.js +2 -1
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.js +2 -1
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.d.ts +4 -57
- package/dist/locus-info/index.js +84 -425
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +5 -13
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js +3 -58
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.d.ts +6 -66
- package/dist/locus-info/parser.js +80 -253
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js +13 -97
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.d.ts +0 -2
- package/dist/media/index.js +319 -107
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.d.ts +53 -38
- package/dist/media/properties.js +153 -96
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js +22 -1
- package/dist/media/util.js.map +1 -1
- package/dist/mediaQualityMetrics/config.d.ts +230 -234
- package/dist/mediaQualityMetrics/config.js +498 -302
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/meeting/effectsState.d.ts +42 -0
- package/dist/meeting/effectsState.js +260 -0
- package/dist/meeting/effectsState.js.map +1 -0
- package/dist/meeting/in-meeting-actions.d.ts +0 -88
- package/dist/meeting/in-meeting-actions.js +3 -94
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.d.ts +520 -705
- package/dist/meeting/index.js +3083 -5041
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/muteState.d.ts +25 -93
- package/dist/meeting/muteState.js +133 -224
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.d.ts +47 -82
- package/dist/meeting/request.js +199 -304
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/state.js +2 -1
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/util.d.ts +1 -118
- package/dist/meeting/util.js +435 -676
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/collection.js +4 -3
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.d.ts +1 -13
- package/dist/meeting-info/index.js +7 -74
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.d.ts +1 -31
- package/dist/meeting-info/meeting-info-v2.js +63 -200
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js +2 -1
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js +3 -2
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js +41 -39
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.d.ts +0 -17
- package/dist/meetings/collection.js +4 -42
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.d.ts +20 -114
- package/dist/meetings/index.js +133 -540
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/request.js +3 -4
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +6 -107
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.d.ts +1 -13
- package/dist/member/index.js +2 -45
- package/dist/member/index.js.map +1 -1
- package/dist/member/member.types.js +4 -3
- package/dist/member/member.types.js.map +1 -1
- package/dist/member/util.js +29 -120
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.d.ts +0 -5
- package/dist/members/collection.js +2 -11
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.d.ts +11 -56
- package/dist/members/index.js +47 -174
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.d.ts +11 -67
- package/dist/members/request.js +54 -102
- package/dist/members/request.js.map +1 -1
- package/dist/members/types.js +4 -3
- package/dist/members/types.js.map +1 -1
- package/dist/members/util.d.ts +1 -214
- package/dist/members/util.js +284 -327
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/config.d.ts +169 -0
- package/dist/metrics/config.js +289 -0
- package/dist/metrics/config.js.map +1 -0
- package/dist/metrics/constants.d.ts +6 -15
- package/dist/metrics/constants.js +9 -17
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.d.ts +111 -4
- package/dist/metrics/index.js +452 -4
- package/dist/metrics/index.js.map +1 -1
- package/dist/networkQualityMonitor/index.js +4 -5
- package/dist/networkQualityMonitor/index.js.map +1 -1
- package/dist/peer-connection-manager/index.d.ts +6 -0
- package/dist/peer-connection-manager/index.js +671 -0
- package/dist/peer-connection-manager/index.js.map +1 -0
- package/dist/peer-connection-manager/util.d.ts +6 -0
- package/dist/peer-connection-manager/util.js +110 -0
- package/dist/peer-connection-manager/util.js.map +1 -0
- package/dist/personal-meeting-room/index.js +3 -2
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js +3 -2
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js +2 -1
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/index.d.ts +95 -61
- package/dist/reachability/index.js +392 -304
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.d.ts +3 -7
- package/dist/reachability/request.js +10 -18
- package/dist/reachability/request.js.map +1 -1
- package/dist/reactions/reactions.d.ts +2 -2
- package/dist/reactions/reactions.js +6 -4
- package/dist/reactions/reactions.js.map +1 -1
- package/dist/reactions/reactions.type.d.ts +3 -23
- package/dist/reactions/reactions.type.js +23 -21
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.d.ts +8 -32
- package/dist/reconnection-manager/index.js +232 -285
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/enums.js +5 -4
- package/dist/recording-controller/enums.js.map +1 -1
- package/dist/recording-controller/index.d.ts +1 -15
- package/dist/recording-controller/index.js +46 -57
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/recording-controller/util.d.ts +4 -5
- package/dist/recording-controller/util.js +10 -10
- package/dist/recording-controller/util.js.map +1 -1
- package/dist/roap/collection.d.ts +10 -0
- package/dist/roap/collection.js +63 -0
- package/dist/roap/collection.js.map +1 -0
- package/dist/roap/handler.d.ts +47 -0
- package/dist/roap/handler.js +279 -0
- package/dist/roap/handler.js.map +1 -0
- package/dist/roap/index.d.ts +47 -9
- package/dist/roap/index.js +238 -100
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.d.ts +12 -18
- package/dist/roap/request.js +180 -126
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/state.d.ts +9 -0
- package/dist/roap/state.js +127 -0
- package/dist/roap/state.js.map +1 -0
- package/dist/roap/turnDiscovery.d.ts +16 -27
- package/dist/roap/turnDiscovery.js +105 -115
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/roap/util.d.ts +2 -0
- package/dist/roap/util.js +76 -0
- package/dist/roap/util.js.map +1 -0
- package/dist/statsAnalyzer/global.d.ts +83 -1
- package/dist/statsAnalyzer/global.js +85 -2
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/statsAnalyzer/index.d.ts +30 -50
- package/dist/statsAnalyzer/index.js +511 -436
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.d.ts +6 -8
- package/dist/statsAnalyzer/mqaUtil.js +90 -130
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/transcription/index.js +2 -1
- package/dist/transcription/index.js.map +1 -1
- package/package.json +26 -39
- package/src/common/errors/webex-errors.ts +12 -36
- package/src/common/logs/logger-proxy.ts +1 -1
- package/src/common/logs/request.ts +1 -5
- package/src/common/queue.ts +8 -22
- package/src/config.ts +7 -6
- package/src/constants.ts +100 -265
- package/src/controls-options-manager/enums.ts +0 -12
- package/src/controls-options-manager/index.ts +21 -116
- package/src/controls-options-manager/util.ts +14 -294
- package/src/index.js +15 -0
- package/src/locus-info/controlsUtils.ts +0 -110
- package/src/locus-info/index.ts +61 -450
- package/src/locus-info/infoUtils.ts +2 -14
- package/src/locus-info/mediaSharesUtils.ts +0 -64
- package/src/locus-info/parser.ts +47 -258
- package/src/locus-info/selfUtils.ts +2 -85
- package/src/media/index.ts +370 -153
- package/src/media/properties.ts +136 -106
- package/src/media/util.ts +21 -0
- package/src/mediaQualityMetrics/config.ts +377 -244
- package/src/meeting/effectsState.ts +209 -0
- package/src/meeting/in-meeting-actions.ts +0 -176
- package/src/meeting/index.ts +2581 -4306
- package/src/meeting/muteState.ts +138 -224
- package/src/meeting/request.ts +127 -214
- package/src/meeting/util.ts +423 -687
- package/src/meeting-info/index.ts +8 -81
- package/src/meeting-info/meeting-info-v2.ts +13 -163
- package/src/meeting-info/util.ts +1 -1
- package/src/meeting-info/utilv2.ts +28 -28
- package/src/meetings/collection.ts +0 -33
- package/src/meetings/index.ts +136 -531
- package/src/meetings/request.ts +0 -2
- package/src/meetings/util.ts +5 -116
- package/src/member/index.ts +1 -43
- package/src/member/util.ts +28 -125
- package/src/members/collection.ts +0 -8
- package/src/members/index.ts +52 -187
- package/src/members/request.ts +27 -87
- package/src/members/util.ts +291 -332
- package/src/metrics/config.ts +485 -0
- package/src/metrics/constants.ts +6 -15
- package/src/metrics/index.ts +471 -1
- package/src/networkQualityMonitor/index.ts +6 -6
- package/src/peer-connection-manager/index.ts +847 -0
- package/src/peer-connection-manager/util.ts +119 -0
- package/src/reachability/index.ts +347 -246
- package/src/reachability/request.ts +8 -17
- package/src/reactions/reactions.ts +4 -4
- package/src/reactions/reactions.type.ts +4 -30
- package/src/reconnection-manager/index.ts +156 -168
- package/src/recording-controller/index.ts +3 -20
- package/src/recording-controller/util.ts +9 -26
- package/src/roap/collection.ts +62 -0
- package/src/roap/handler.ts +294 -0
- package/src/roap/index.ts +241 -96
- package/src/roap/request.ts +148 -74
- package/src/roap/state.ts +156 -0
- package/src/roap/turnDiscovery.ts +56 -62
- package/src/roap/util.ts +100 -0
- package/src/statsAnalyzer/global.ts +84 -1
- package/src/statsAnalyzer/index.ts +645 -479
- package/src/statsAnalyzer/mqaUtil.ts +126 -128
- package/test/integration/spec/journey.js +264 -320
- package/test/integration/spec/space-meeting.js +4 -77
- package/test/unit/spec/common/queue.js +2 -31
- package/test/unit/spec/controls-options-manager/index.js +0 -163
- package/test/unit/spec/controls-options-manager/util.js +60 -576
- package/test/unit/spec/fixture/locus.js +0 -1
- package/test/unit/spec/locus-info/controlsUtils.js +30 -323
- package/test/unit/spec/locus-info/index.js +15 -1437
- package/test/unit/spec/locus-info/infoUtils.js +16 -54
- package/test/unit/spec/locus-info/lib/SeqCmp.json +0 -16
- package/test/unit/spec/locus-info/lib/selfConstant.js +0 -48
- package/test/unit/spec/locus-info/parser.js +35 -116
- package/test/unit/spec/locus-info/selfUtils.js +0 -275
- package/test/unit/spec/media/properties.ts +84 -75
- package/test/unit/spec/meeting/effectsState.js +281 -0
- package/test/unit/spec/meeting/in-meeting-actions.ts +0 -86
- package/test/unit/spec/meeting/index.js +2313 -8384
- package/test/unit/spec/meeting/muteState.js +213 -409
- package/test/unit/spec/meeting/request.js +43 -523
- package/test/unit/spec/meeting/utils.js +24 -834
- package/test/unit/spec/meeting-info/meetinginfov2.js +5 -527
- package/test/unit/spec/meeting-info/utilv2.js +0 -21
- package/test/unit/spec/meetings/collection.js +0 -26
- package/test/unit/spec/meetings/index.js +232 -1445
- package/test/unit/spec/meetings/utils.js +2 -202
- package/test/unit/spec/member/index.js +9 -32
- package/test/unit/spec/member/util.js +61 -499
- package/test/unit/spec/members/index.js +5 -394
- package/test/unit/spec/members/request.js +27 -206
- package/test/unit/spec/members/utils.js +38 -173
- package/test/unit/spec/metrics/index.js +50 -1
- package/test/unit/spec/networkQualityMonitor/index.js +4 -4
- package/test/unit/spec/peerconnection-manager/index.js +218 -0
- package/test/unit/spec/peerconnection-manager/utils.js +49 -0
- package/test/unit/spec/peerconnection-manager/utils.test-fixtures.ts +388 -0
- package/test/unit/spec/reachability/index.ts +24 -532
- package/test/unit/spec/reconnection-manager/index.js +24 -163
- package/test/unit/spec/recording-controller/index.js +218 -293
- package/test/unit/spec/recording-controller/util.js +96 -223
- package/test/unit/spec/roap/index.ts +77 -187
- package/test/unit/spec/roap/turnDiscovery.ts +48 -86
- package/test/unit/spec/roap/util.js +30 -0
- package/test/unit/spec/stats-analyzer/index.js +165 -644
- package/test/utils/testUtils.js +45 -0
- package/test/utils/webex-config.js +0 -4
- package/test/utils/webex-test-users.js +3 -7
- package/dist/annotation/annotation.types.d.ts +0 -42
- package/dist/annotation/annotation.types.js +0 -7
- package/dist/annotation/annotation.types.js.map +0 -1
- package/dist/annotation/constants.d.ts +0 -31
- package/dist/annotation/constants.js +0 -41
- package/dist/annotation/constants.js.map +0 -1
- package/dist/annotation/index.d.ts +0 -117
- package/dist/annotation/index.js +0 -357
- package/dist/annotation/index.js.map +0 -1
- package/dist/breakouts/breakout.d.ts +0 -8
- package/dist/breakouts/breakout.js +0 -215
- package/dist/breakouts/breakout.js.map +0 -1
- package/dist/breakouts/collection.d.ts +0 -5
- package/dist/breakouts/collection.js +0 -22
- package/dist/breakouts/collection.js.map +0 -1
- package/dist/breakouts/edit-lock-error.d.ts +0 -15
- package/dist/breakouts/edit-lock-error.js +0 -51
- package/dist/breakouts/edit-lock-error.js.map +0 -1
- package/dist/breakouts/events.d.ts +0 -8
- package/dist/breakouts/events.js +0 -44
- package/dist/breakouts/events.js.map +0 -1
- package/dist/breakouts/index.d.ts +0 -5
- package/dist/breakouts/index.js +0 -1047
- package/dist/breakouts/index.js.map +0 -1
- package/dist/breakouts/request.d.ts +0 -22
- package/dist/breakouts/request.js +0 -77
- package/dist/breakouts/request.js.map +0 -1
- package/dist/breakouts/utils.d.ts +0 -15
- package/dist/breakouts/utils.js +0 -64
- package/dist/breakouts/utils.js.map +0 -1
- package/dist/common/errors/no-meeting-info.d.ts +0 -14
- package/dist/common/errors/no-meeting-info.js +0 -50
- package/dist/common/errors/no-meeting-info.js.map +0 -1
- package/dist/common/errors/reclaim-host-role-errors.js.map +0 -1
- package/dist/controls-options-manager/types.d.ts +0 -43
- package/dist/controls-options-manager/types.js +0 -7
- package/dist/controls-options-manager/types.js.map +0 -1
- package/dist/interceptors/index.d.ts +0 -2
- package/dist/interceptors/index.js +0 -15
- package/dist/interceptors/index.js.map +0 -1
- package/dist/interceptors/locusRetry.d.ts +0 -27
- package/dist/interceptors/locusRetry.js +0 -94
- package/dist/interceptors/locusRetry.js.map +0 -1
- package/dist/interpretation/collection.d.ts +0 -5
- package/dist/interpretation/collection.js +0 -22
- package/dist/interpretation/collection.js.map +0 -1
- package/dist/interpretation/index.d.ts +0 -5
- package/dist/interpretation/index.js +0 -365
- package/dist/interpretation/index.js.map +0 -1
- package/dist/interpretation/siLanguage.d.ts +0 -5
- package/dist/interpretation/siLanguage.js +0 -24
- package/dist/interpretation/siLanguage.js.map +0 -1
- package/dist/meeting/locusMediaRequest.d.ts +0 -74
- package/dist/meeting/locusMediaRequest.js +0 -291
- package/dist/meeting/locusMediaRequest.js.map +0 -1
- package/dist/meeting/request.type.d.ts +0 -11
- package/dist/meeting/request.type.js +0 -7
- package/dist/meeting/request.type.js.map +0 -1
- package/dist/meeting/voicea-meeting.d.ts +0 -20
- package/dist/meeting/voicea-meeting.js +0 -201
- package/dist/meeting/voicea-meeting.js.map +0 -1
- package/dist/meetings/meetings.types.d.ts +0 -4
- package/dist/meetings/meetings.types.js +0 -7
- package/dist/meetings/meetings.types.js.map +0 -1
- package/dist/member/types.d.ts +0 -32
- package/dist/member/types.js +0 -23
- package/dist/member/types.js.map +0 -1
- package/dist/multistream/mediaRequestManager.d.ts +0 -118
- package/dist/multistream/mediaRequestManager.js +0 -344
- package/dist/multistream/mediaRequestManager.js.map +0 -1
- package/dist/multistream/receiveSlot.d.ts +0 -68
- package/dist/multistream/receiveSlot.js +0 -200
- package/dist/multistream/receiveSlot.js.map +0 -1
- package/dist/multistream/receiveSlotManager.d.ts +0 -56
- package/dist/multistream/receiveSlotManager.js +0 -174
- package/dist/multistream/receiveSlotManager.js.map +0 -1
- package/dist/multistream/remoteMedia.d.ts +0 -72
- package/dist/multistream/remoteMedia.js +0 -268
- package/dist/multistream/remoteMedia.js.map +0 -1
- package/dist/multistream/remoteMediaGroup.d.ts +0 -47
- package/dist/multistream/remoteMediaGroup.js +0 -267
- package/dist/multistream/remoteMediaGroup.js.map +0 -1
- package/dist/multistream/remoteMediaManager.d.ts +0 -285
- package/dist/multistream/remoteMediaManager.js +0 -1211
- package/dist/multistream/remoteMediaManager.js.map +0 -1
- package/dist/multistream/sendSlotManager.d.ts +0 -61
- package/dist/multistream/sendSlotManager.js +0 -236
- package/dist/multistream/sendSlotManager.js.map +0 -1
- package/dist/reachability/clusterReachability.d.ts +0 -109
- package/dist/reachability/clusterReachability.js +0 -357
- package/dist/reachability/clusterReachability.js.map +0 -1
- package/dist/reachability/util.d.ts +0 -8
- package/dist/reachability/util.js +0 -29
- package/dist/reachability/util.js.map +0 -1
- package/dist/reactions/constants.d.ts +0 -3
- package/dist/reactions/constants.js +0 -12
- package/dist/reactions/constants.js.map +0 -1
- package/dist/rtcMetrics/constants.d.ts +0 -4
- package/dist/rtcMetrics/constants.js +0 -11
- package/dist/rtcMetrics/constants.js.map +0 -1
- package/dist/rtcMetrics/index.d.ts +0 -54
- package/dist/rtcMetrics/index.js +0 -140
- package/dist/rtcMetrics/index.js.map +0 -1
- package/dist/webinar/collection.d.ts +0 -16
- package/dist/webinar/collection.js +0 -43
- package/dist/webinar/collection.js.map +0 -1
- package/dist/webinar/index.d.ts +0 -5
- package/dist/webinar/index.js +0 -68
- package/dist/webinar/index.js.map +0 -1
- package/src/annotation/annotation.types.ts +0 -50
- package/src/annotation/constants.ts +0 -36
- package/src/annotation/index.ts +0 -328
- package/src/breakouts/README.md +0 -220
- package/src/breakouts/breakout.ts +0 -188
- package/src/breakouts/collection.ts +0 -19
- package/src/breakouts/edit-lock-error.ts +0 -25
- package/src/breakouts/events.ts +0 -56
- package/src/breakouts/index.ts +0 -925
- package/src/breakouts/request.ts +0 -55
- package/src/breakouts/utils.ts +0 -57
- package/src/common/errors/no-meeting-info.ts +0 -24
- package/src/controls-options-manager/types.ts +0 -59
- package/src/index.ts +0 -44
- package/src/interceptors/index.ts +0 -3
- package/src/interceptors/locusRetry.ts +0 -67
- package/src/interpretation/README.md +0 -60
- package/src/interpretation/collection.ts +0 -19
- package/src/interpretation/index.ts +0 -332
- package/src/interpretation/siLanguage.ts +0 -18
- package/src/meeting/locusMediaRequest.ts +0 -313
- package/src/meeting/request.type.ts +0 -13
- package/src/meeting/voicea-meeting.ts +0 -161
- package/src/meetings/meetings.types.ts +0 -12
- package/src/member/types.ts +0 -38
- package/src/multistream/mediaRequestManager.ts +0 -440
- package/src/multistream/receiveSlot.ts +0 -184
- package/src/multistream/receiveSlotManager.ts +0 -166
- package/src/multistream/remoteMedia.ts +0 -254
- package/src/multistream/remoteMediaGroup.ts +0 -284
- package/src/multistream/remoteMediaManager.ts +0 -1145
- package/src/multistream/sendSlotManager.ts +0 -170
- package/src/reachability/clusterReachability.ts +0 -320
- package/src/reachability/util.ts +0 -24
- package/src/reactions/constants.ts +0 -4
- package/src/rtcMetrics/constants.ts +0 -3
- package/src/rtcMetrics/index.ts +0 -124
- package/src/webinar/collection.ts +0 -31
- package/src/webinar/index.ts +0 -62
- package/test/integration/spec/converged-space-meetings.js +0 -233
- package/test/unit/spec/annotation/index.ts +0 -418
- package/test/unit/spec/breakouts/breakout.ts +0 -237
- package/test/unit/spec/breakouts/collection.ts +0 -15
- package/test/unit/spec/breakouts/edit-lock-error.ts +0 -30
- package/test/unit/spec/breakouts/events.ts +0 -89
- package/test/unit/spec/breakouts/index.ts +0 -1790
- package/test/unit/spec/breakouts/request.ts +0 -104
- package/test/unit/spec/breakouts/utils.js +0 -72
- package/test/unit/spec/interceptors/locusRetry.ts +0 -131
- package/test/unit/spec/interpretation/collection.ts +0 -15
- package/test/unit/spec/interpretation/index.ts +0 -589
- package/test/unit/spec/interpretation/siLanguage.ts +0 -28
- package/test/unit/spec/locus-info/mediaSharesUtils.ts +0 -32
- package/test/unit/spec/media/index.ts +0 -290
- package/test/unit/spec/meeting/locusMediaRequest.ts +0 -442
- package/test/unit/spec/meeting-info/index.js +0 -300
- package/test/unit/spec/multistream/mediaRequestManager.ts +0 -1418
- package/test/unit/spec/multistream/receiveSlot.ts +0 -163
- package/test/unit/spec/multistream/receiveSlotManager.ts +0 -203
- package/test/unit/spec/multistream/remoteMedia.ts +0 -255
- package/test/unit/spec/multistream/remoteMediaGroup.ts +0 -662
- package/test/unit/spec/multistream/remoteMediaManager.ts +0 -1924
- package/test/unit/spec/multistream/sendSlotManager.ts +0 -242
- package/test/unit/spec/reachability/clusterReachability.ts +0 -279
- package/test/unit/spec/reachability/request.js +0 -68
- package/test/unit/spec/reachability/util.ts +0 -40
- package/test/unit/spec/roap/request.ts +0 -255
- package/test/unit/spec/rtcMetrics/index.ts +0 -93
- package/test/unit/spec/webinar/collection.ts +0 -13
- package/test/unit/spec/webinar/index.ts +0 -60
- package/test/utils/constants.js +0 -9
- package/test/utils/integrationTestUtils.js +0 -46
- /package/dist/common/errors/{reclaim-host-role-errors.d.ts → reclaim-host-role-error.d.ts} +0 -0
- /package/src/common/errors/{reclaim-host-role-errors.ts → reclaim-host-role-error.ts} +0 -0
|
@@ -9,7 +9,6 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
9
9
|
exports.default = void 0;
|
|
10
10
|
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
|
|
11
11
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
12
|
-
var _values = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/values"));
|
|
13
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
|
|
14
13
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/assertThisInitialized"));
|
|
15
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
@@ -23,13 +22,15 @@ var _loggerProxy = _interopRequireDefault(require("../common/logs/logger-proxy")
|
|
|
23
22
|
var _triggerProxy = _interopRequireDefault(require("../common/events/trigger-proxy"));
|
|
24
23
|
var _constants = require("../constants");
|
|
25
24
|
var _constants2 = _interopRequireDefault(require("../metrics/constants"));
|
|
25
|
+
var _reconnection = _interopRequireDefault(require("../common/errors/reconnection"));
|
|
26
26
|
var _reconnectionInProgress = _interopRequireDefault(require("../common/errors/reconnection-in-progress"));
|
|
27
|
+
var _peerConnectionManager = _interopRequireDefault(require("../peer-connection-manager"));
|
|
28
|
+
var _config = require("../metrics/config");
|
|
29
|
+
var _media = _interopRequireDefault(require("../media"));
|
|
27
30
|
var _metrics = _interopRequireDefault(require("../metrics"));
|
|
28
|
-
var
|
|
31
|
+
var _collection = _interopRequireDefault(require("../roap/collection"));
|
|
29
32
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
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; } }
|
|
31
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
32
|
-
*/ /* eslint-disable no-warning-comments */
|
|
33
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
33
34
|
/**
|
|
34
35
|
* Used to indicate that the reconnect logic needs to be retried.
|
|
35
36
|
*
|
|
@@ -79,7 +80,7 @@ var NeedsRejoinError = /*#__PURE__*/function (_Error2) {
|
|
|
79
80
|
* @export
|
|
80
81
|
* @class ReconnectionManager
|
|
81
82
|
*/
|
|
82
|
-
var ReconnectionManager =
|
|
83
|
+
var ReconnectionManager = /*#__PURE__*/function () {
|
|
83
84
|
/**
|
|
84
85
|
* @param {Meeting} meeting
|
|
85
86
|
*/
|
|
@@ -112,7 +113,7 @@ var ReconnectionManager = exports.default = /*#__PURE__*/function () {
|
|
|
112
113
|
|
|
113
114
|
/**
|
|
114
115
|
* @instance
|
|
115
|
-
* @type {
|
|
116
|
+
* @type {String}
|
|
116
117
|
* @private
|
|
117
118
|
* @memberof ReconnectionManager
|
|
118
119
|
*/
|
|
@@ -155,35 +156,24 @@ var ReconnectionManager = exports.default = /*#__PURE__*/function () {
|
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
/**
|
|
159
|
+
* Sets the iceState to connected and clears any disconnect timeouts and
|
|
160
|
+
* related timeout data within the iceState.
|
|
161
|
+
*
|
|
162
|
+
* @returns {undefined}
|
|
158
163
|
* @public
|
|
159
164
|
* @memberof ReconnectionManager
|
|
160
|
-
* @returns {void}
|
|
161
165
|
*/
|
|
162
166
|
(0, _createClass2.default)(ReconnectionManager, [{
|
|
163
|
-
key: "resetReconnectionTimer",
|
|
164
|
-
value: function resetReconnectionTimer() {
|
|
165
|
-
this.iceState.resolve();
|
|
166
|
-
this.iceState.resolve = function () {};
|
|
167
|
-
if (this.iceState.timer) {
|
|
168
|
-
clearTimeout(this.iceState.timer);
|
|
169
|
-
delete this.iceState.timer;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Sets the iceState to connected and clears any disconnect timeouts and
|
|
175
|
-
* related timeout data within the iceState.
|
|
176
|
-
*
|
|
177
|
-
* @returns {undefined}
|
|
178
|
-
* @public
|
|
179
|
-
* @memberof ReconnectionManager
|
|
180
|
-
*/
|
|
181
|
-
}, {
|
|
182
167
|
key: "iceReconnected",
|
|
183
168
|
value: function iceReconnected() {
|
|
184
169
|
if (this.iceState.disconnected) {
|
|
185
170
|
_loggerProxy.default.logger.log('ReconnectionManager:index#iceReconnected --> ice has reconnected');
|
|
186
|
-
this.
|
|
171
|
+
this.iceState.resolve();
|
|
172
|
+
this.iceState.resolve = function () {};
|
|
173
|
+
if (this.iceState.timer) {
|
|
174
|
+
clearTimeout(this.iceState.timer);
|
|
175
|
+
delete this.iceState.timer;
|
|
176
|
+
}
|
|
187
177
|
this.iceState.disconnected = false;
|
|
188
178
|
}
|
|
189
179
|
}
|
|
@@ -244,67 +234,7 @@ var ReconnectionManager = exports.default = /*#__PURE__*/function () {
|
|
|
244
234
|
key: "cleanUp",
|
|
245
235
|
value: function cleanUp() {
|
|
246
236
|
this.reset();
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Stop the local share stream.
|
|
251
|
-
*
|
|
252
|
-
* @param {string} reason a {@link SHARE_STOPPED_REASON}
|
|
253
|
-
* @returns {undefined}
|
|
254
|
-
* @private
|
|
255
|
-
* @memberof ReconnectionManager
|
|
256
|
-
*/
|
|
257
|
-
}, {
|
|
258
|
-
key: "stopLocalShareStream",
|
|
259
|
-
value: (function () {
|
|
260
|
-
var _stopLocalShareStream = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(reason) {
|
|
261
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
262
|
-
while (1) switch (_context.prev = _context.next) {
|
|
263
|
-
case 0:
|
|
264
|
-
_context.next = 2;
|
|
265
|
-
return this.meeting.unpublishStreams([this.meeting.mediaProperties.shareVideoStream, this.meeting.mediaProperties.shareAudioStream]);
|
|
266
|
-
case 2:
|
|
267
|
-
_triggerProxy.default.trigger(this.meeting, {
|
|
268
|
-
file: 'reconnection-manager/index',
|
|
269
|
-
function: 'stopLocalShareStream'
|
|
270
|
-
}, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_LOCAL, {
|
|
271
|
-
reason: reason
|
|
272
|
-
});
|
|
273
|
-
case 3:
|
|
274
|
-
case "end":
|
|
275
|
-
return _context.stop();
|
|
276
|
-
}
|
|
277
|
-
}, _callee, this);
|
|
278
|
-
}));
|
|
279
|
-
function stopLocalShareStream(_x) {
|
|
280
|
-
return _stopLocalShareStream.apply(this, arguments);
|
|
281
|
-
}
|
|
282
|
-
return stopLocalShareStream;
|
|
283
|
-
}()
|
|
284
|
-
/**
|
|
285
|
-
* @public
|
|
286
|
-
* @memberof ReconnectionManager
|
|
287
|
-
* @returns {Boolean} true if reconnection operation is in progress
|
|
288
|
-
*/
|
|
289
|
-
)
|
|
290
|
-
}, {
|
|
291
|
-
key: "isReconnectInProgress",
|
|
292
|
-
value: function isReconnectInProgress() {
|
|
293
|
-
return this.status === _constants.RECONNECTION.STATE.IN_PROGRESS;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* Sets the reconnection status
|
|
298
|
-
*
|
|
299
|
-
* @public
|
|
300
|
-
* @param {RECONNECTION_STATE} status
|
|
301
|
-
* @memberof ReconnectionManager
|
|
302
|
-
* @returns {undefined}
|
|
303
|
-
*/
|
|
304
|
-
}, {
|
|
305
|
-
key: "setStatus",
|
|
306
|
-
value: function setStatus(status) {
|
|
307
|
-
this.status = status;
|
|
237
|
+
this.meeting = null;
|
|
308
238
|
}
|
|
309
239
|
|
|
310
240
|
/**
|
|
@@ -338,45 +268,51 @@ var ReconnectionManager = exports.default = /*#__PURE__*/function () {
|
|
|
338
268
|
*/
|
|
339
269
|
}, {
|
|
340
270
|
key: "reconnect",
|
|
341
|
-
value:
|
|
342
|
-
var _reconnect = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
271
|
+
value: function () {
|
|
272
|
+
var _reconnect = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
343
273
|
var _this3 = this;
|
|
344
274
|
var _ref2,
|
|
345
275
|
_ref2$networkDisconne,
|
|
346
276
|
networkDisconnect,
|
|
347
277
|
_ref2$networkRetry,
|
|
348
278
|
networkRetry,
|
|
349
|
-
|
|
350
|
-
return _regenerator.default.wrap(function
|
|
351
|
-
while (1) switch (
|
|
279
|
+
_args = arguments;
|
|
280
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
281
|
+
while (1) switch (_context.prev = _context.next) {
|
|
352
282
|
case 0:
|
|
353
|
-
_ref2 =
|
|
283
|
+
_ref2 = _args.length > 0 && _args[0] !== undefined ? _args[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;
|
|
354
284
|
_loggerProxy.default.logger.info("ReconnectionManager:index#reconnect --> Reconnection start for meeting ".concat(this.meeting.id, "."));
|
|
355
285
|
// First, validate that we can reconnect, if not, it will throw an error
|
|
356
|
-
|
|
286
|
+
_context.prev = 2;
|
|
357
287
|
this.validate();
|
|
358
|
-
|
|
288
|
+
_context.next = 10;
|
|
359
289
|
break;
|
|
360
290
|
case 6:
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnect --> Reconnection unable to begin.',
|
|
364
|
-
throw
|
|
291
|
+
_context.prev = 6;
|
|
292
|
+
_context.t0 = _context["catch"](2);
|
|
293
|
+
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnect --> Reconnection unable to begin.', _context.t0);
|
|
294
|
+
throw _context.t0;
|
|
365
295
|
case 10:
|
|
366
296
|
if (!networkRetry) {
|
|
367
297
|
// Only log START metrics on the initial reconnect
|
|
368
298
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnect --> Sending reconnect start metric.');
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
name: 'client.media.reconnecting',
|
|
373
|
-
options: {
|
|
374
|
-
meetingId: this.meeting.id
|
|
375
|
-
}
|
|
299
|
+
_metrics.default.postEvent({
|
|
300
|
+
event: _config.eventType.MEDIA_RECONNECTING,
|
|
301
|
+
meeting: this.meeting
|
|
376
302
|
});
|
|
377
303
|
}
|
|
378
|
-
return
|
|
304
|
+
return _context.abrupt("return", this.executeReconnection({
|
|
379
305
|
networkDisconnect: networkDisconnect
|
|
306
|
+
}).then(function () {
|
|
307
|
+
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnect --> Reconnection successful.');
|
|
308
|
+
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnect --> Sending reconnect success metric.');
|
|
309
|
+
_metrics.default.postEvent({
|
|
310
|
+
event: _config.eventType.MEDIA_RECOVERED,
|
|
311
|
+
meeting: _this3.meeting,
|
|
312
|
+
data: {
|
|
313
|
+
recoveredBy: _config.reconnection.RECOVERED_BY_NEW
|
|
314
|
+
}
|
|
315
|
+
});
|
|
380
316
|
}).catch(function (reconnectError) {
|
|
381
317
|
if (reconnectError instanceof NeedsRetryError) {
|
|
382
318
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnect --> Reconnection not successful, retrying.');
|
|
@@ -393,23 +329,20 @@ var ReconnectionManager = exports.default = /*#__PURE__*/function () {
|
|
|
393
329
|
// Reconnect has failed
|
|
394
330
|
_loggerProxy.default.logger.error('ReconnectionManager:index#reconnect --> Reconnection failed.', reconnectError.message);
|
|
395
331
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnect --> Sending reconnect abort metric.');
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
payload: {
|
|
332
|
+
var reconnectMetric = {
|
|
333
|
+
event: _config.eventType.CALL_ABORTED,
|
|
334
|
+
meeting: _this3.meeting,
|
|
335
|
+
data: {
|
|
401
336
|
errors: [{
|
|
402
|
-
category:
|
|
337
|
+
category: _config.errorObjects.category.expected,
|
|
403
338
|
errorCode: 2008,
|
|
404
339
|
fatal: true,
|
|
405
|
-
name:
|
|
340
|
+
name: _config.errorObjects.name.mediaEngine,
|
|
406
341
|
shownToUser: false
|
|
407
342
|
}]
|
|
408
|
-
},
|
|
409
|
-
options: {
|
|
410
|
-
meetingId: _this3.meeting.id
|
|
411
343
|
}
|
|
412
|
-
}
|
|
344
|
+
};
|
|
345
|
+
_metrics.default.postEvent(reconnectMetric);
|
|
413
346
|
if (reconnectError instanceof NeedsRejoinError) {
|
|
414
347
|
// send call aborded event with catogery as expected as we are trying to rejoin
|
|
415
348
|
|
|
@@ -421,9 +354,9 @@ var ReconnectionManager = exports.default = /*#__PURE__*/function () {
|
|
|
421
354
|
}));
|
|
422
355
|
case 12:
|
|
423
356
|
case "end":
|
|
424
|
-
return
|
|
357
|
+
return _context.stop();
|
|
425
358
|
}
|
|
426
|
-
},
|
|
359
|
+
}, _callee, this, [[2, 6]]);
|
|
427
360
|
}));
|
|
428
361
|
function reconnect() {
|
|
429
362
|
return _reconnect.apply(this, arguments);
|
|
@@ -438,107 +371,94 @@ var ReconnectionManager = exports.default = /*#__PURE__*/function () {
|
|
|
438
371
|
* @private
|
|
439
372
|
* @memberof ReconnectionManager
|
|
440
373
|
*/
|
|
441
|
-
)
|
|
442
374
|
}, {
|
|
443
375
|
key: "executeReconnection",
|
|
444
|
-
value:
|
|
445
|
-
var _executeReconnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
376
|
+
value: function () {
|
|
377
|
+
var _executeReconnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref3) {
|
|
446
378
|
var _ref3$networkDisconne, networkDisconnect, wasSharing, media;
|
|
447
|
-
return _regenerator.default.wrap(function
|
|
448
|
-
while (1) switch (
|
|
379
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
380
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
449
381
|
case 0:
|
|
450
382
|
_ref3$networkDisconne = _ref3.networkDisconnect, networkDisconnect = _ref3$networkDisconne === void 0 ? false : _ref3$networkDisconne;
|
|
451
383
|
this.status = _constants.RECONNECTION.STATE.IN_PROGRESS;
|
|
452
384
|
_loggerProxy.default.logger.info('ReconnectionManager:index#executeReconnection --> Attempting to reconnect to meeting.');
|
|
453
|
-
wasSharing = this.meeting.shareStatus === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE;
|
|
454
|
-
if (!wasSharing) {
|
|
455
|
-
_context3.next = 7;
|
|
456
|
-
break;
|
|
457
|
-
}
|
|
458
|
-
_context3.next = 7;
|
|
459
|
-
return this.stopLocalShareStream(_constants.SHARE_STOPPED_REASON.MEDIA_RECONNECTION);
|
|
460
|
-
case 7:
|
|
461
385
|
if (!networkDisconnect) {
|
|
462
|
-
|
|
386
|
+
_context2.next = 15;
|
|
463
387
|
break;
|
|
464
388
|
}
|
|
465
|
-
|
|
466
|
-
|
|
389
|
+
_context2.prev = 4;
|
|
390
|
+
_context2.next = 7;
|
|
467
391
|
return this.reconnectMercuryWebSocket();
|
|
468
|
-
case
|
|
392
|
+
case 7:
|
|
469
393
|
_loggerProxy.default.logger.error('ReconnectionManager:index#executeReconnection --> Websocket reconnected.', this.webex.internal.device.url);
|
|
470
|
-
|
|
394
|
+
_context2.next = 15;
|
|
471
395
|
break;
|
|
472
|
-
case
|
|
473
|
-
|
|
474
|
-
|
|
396
|
+
case 10:
|
|
397
|
+
_context2.prev = 10;
|
|
398
|
+
_context2.t0 = _context2["catch"](4);
|
|
475
399
|
_loggerProxy.default.logger.error('ReconnectionManager:index#executeReconnection --> Unable to reconnect to websocket, giving up.');
|
|
476
400
|
this.status = _constants.RECONNECTION.STATE.FAILURE;
|
|
477
|
-
throw
|
|
478
|
-
case
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
break;
|
|
482
|
-
}
|
|
483
|
-
_context3.prev = 20;
|
|
401
|
+
throw _context2.t0;
|
|
402
|
+
case 15:
|
|
403
|
+
wasSharing = this.meeting.shareStatus === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE;
|
|
404
|
+
_context2.prev = 16;
|
|
484
405
|
_loggerProxy.default.logger.info('ReconnectionManager:index#executeReconnection --> Updating meeting data from server.');
|
|
485
|
-
|
|
486
|
-
return this.webex.meetings.syncMeetings(
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
case 24:
|
|
490
|
-
_context3.next = 30;
|
|
406
|
+
_context2.next = 20;
|
|
407
|
+
return this.webex.meetings.syncMeetings();
|
|
408
|
+
case 20:
|
|
409
|
+
_context2.next = 26;
|
|
491
410
|
break;
|
|
411
|
+
case 22:
|
|
412
|
+
_context2.prev = 22;
|
|
413
|
+
_context2.t1 = _context2["catch"](16);
|
|
414
|
+
_loggerProxy.default.logger.info('ReconnectionManager:index#executeReconnection --> Unable to sync meetings, reconnecting.', _context2.t1);
|
|
415
|
+
throw new NeedsRetryError(_context2.t1);
|
|
492
416
|
case 26:
|
|
493
|
-
_context3.prev = 26;
|
|
494
|
-
_context3.t1 = _context3["catch"](20);
|
|
495
|
-
_loggerProxy.default.logger.info('ReconnectionManager:index#executeReconnection --> Unable to sync meetings, reconnecting.', _context3.t1);
|
|
496
|
-
throw new NeedsRetryError(_context3.t1);
|
|
497
|
-
case 30:
|
|
498
417
|
if (!(!this.meeting || !this.webex.meetings.getMeetingByType(_constants._ID_, this.meeting.id))) {
|
|
499
|
-
|
|
418
|
+
_context2.next = 29;
|
|
500
419
|
break;
|
|
501
420
|
}
|
|
502
|
-
_loggerProxy.default.logger.info('ReconnectionManager:index#executeReconnection --> Meeting got deleted due to inactivity or ended remotely
|
|
503
|
-
throw new Error('Unable to rejoin a meeting already ended or inactive.');
|
|
504
|
-
case
|
|
421
|
+
_loggerProxy.default.logger.info('ReconnectionManager:index#executeReconnection --> Meeting got deleted due to inactivity or ended remotely ');
|
|
422
|
+
throw new Error('Unable to rejoin a meeting already ended or inactive .');
|
|
423
|
+
case 29:
|
|
505
424
|
_loggerProxy.default.logger.info("ReconnectionManager:index#executeReconnection --> Current state of meeting is ".concat(this.meeting.state));
|
|
506
425
|
|
|
507
426
|
// If the meeting state was left, no longer reconnect media
|
|
508
427
|
if (!(this.meeting.state === _constants._LEFT_)) {
|
|
509
|
-
|
|
428
|
+
_context2.next = 34;
|
|
510
429
|
break;
|
|
511
430
|
}
|
|
512
431
|
if (!(this.meeting.type === _constants._CALL_)) {
|
|
513
|
-
|
|
432
|
+
_context2.next = 33;
|
|
514
433
|
break;
|
|
515
434
|
}
|
|
516
435
|
throw new Error('Unable to rejoin a call in LEFT state.');
|
|
517
|
-
case
|
|
436
|
+
case 33:
|
|
518
437
|
throw new NeedsRejoinError({
|
|
519
438
|
wasSharing: wasSharing
|
|
520
439
|
});
|
|
521
|
-
case
|
|
522
|
-
|
|
523
|
-
|
|
440
|
+
case 34:
|
|
441
|
+
_context2.prev = 34;
|
|
442
|
+
_context2.next = 37;
|
|
524
443
|
return this.reconnectMedia();
|
|
525
|
-
case
|
|
526
|
-
media =
|
|
527
|
-
_loggerProxy.default.logger.log('ReconnectionManager:index#executeReconnection -->
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
444
|
+
case 37:
|
|
445
|
+
media = _context2.sent;
|
|
446
|
+
_loggerProxy.default.logger.log('ReconnectionManager:index#executeReconnection --> Media reestablished');
|
|
447
|
+
this.status = _constants.RECONNECTION.STATE.COMPLETE;
|
|
448
|
+
return _context2.abrupt("return", media);
|
|
449
|
+
case 43:
|
|
450
|
+
_context2.prev = 43;
|
|
451
|
+
_context2.t2 = _context2["catch"](34);
|
|
452
|
+
_loggerProxy.default.logger.error('ReconnectionManager:index#executeReconnection --> Media reestablishment failed');
|
|
533
453
|
this.status = _constants.RECONNECTION.STATE.FAILURE;
|
|
534
|
-
throw
|
|
535
|
-
case
|
|
454
|
+
throw _context2.t2;
|
|
455
|
+
case 48:
|
|
536
456
|
case "end":
|
|
537
|
-
return
|
|
457
|
+
return _context2.stop();
|
|
538
458
|
}
|
|
539
|
-
},
|
|
459
|
+
}, _callee2, this, [[4, 10], [16, 22], [34, 43]]);
|
|
540
460
|
}));
|
|
541
|
-
function executeReconnection(
|
|
461
|
+
function executeReconnection(_x) {
|
|
542
462
|
return _executeReconnection.apply(this, arguments);
|
|
543
463
|
}
|
|
544
464
|
return executeReconnection;
|
|
@@ -550,72 +470,82 @@ var ReconnectionManager = exports.default = /*#__PURE__*/function () {
|
|
|
550
470
|
* @param {boolean} wasSharing
|
|
551
471
|
* @returns {Promise}
|
|
552
472
|
*/
|
|
553
|
-
)
|
|
554
473
|
}, {
|
|
555
474
|
key: "rejoinMeeting",
|
|
556
|
-
value:
|
|
557
|
-
var _rejoinMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
475
|
+
value: function () {
|
|
476
|
+
var _rejoinMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
558
477
|
var wasSharing,
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
478
|
+
previousCorrelationId,
|
|
479
|
+
_args3 = arguments;
|
|
480
|
+
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
481
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
562
482
|
case 0:
|
|
563
|
-
wasSharing =
|
|
564
|
-
|
|
483
|
+
wasSharing = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : false;
|
|
484
|
+
_context3.prev = 1;
|
|
565
485
|
_loggerProxy.default.logger.info('ReconnectionManager:index#rejoinMeeting --> attemping meeting rejoin');
|
|
566
|
-
|
|
486
|
+
previousCorrelationId = this.meeting.correlationId;
|
|
487
|
+
_context3.next = 6;
|
|
567
488
|
return this.meeting.join({
|
|
568
489
|
rejoin: true
|
|
569
490
|
});
|
|
570
|
-
case
|
|
491
|
+
case 6:
|
|
571
492
|
_loggerProxy.default.logger.info('ReconnectionManager:index#rejoinMeeting --> meeting rejoined');
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
493
|
+
_collection.default.deleteSession(previousCorrelationId);
|
|
494
|
+
if (wasSharing) {
|
|
495
|
+
// Stop the share streams if user tried to rejoin
|
|
496
|
+
_media.default.stopTracks(this.meeting.mediaProperties.shareTrack);
|
|
497
|
+
this.meeting.isSharing = false;
|
|
498
|
+
if (this.shareStatus === _constants.SHARE_STATUS.LOCAL_SHARE_ACTIVE) {
|
|
499
|
+
this.meeting.shareStatus = _constants.SHARE_STATUS.NO_SHARE;
|
|
500
|
+
}
|
|
501
|
+
this.meeting.mediaProperties.mediaDirection.sendShare = false;
|
|
502
|
+
_triggerProxy.default.trigger(this.meeting, {
|
|
503
|
+
file: 'reconnection-manager/index',
|
|
504
|
+
function: 'rejoinMeeting'
|
|
505
|
+
}, _constants.EVENT_TRIGGERS.MEETING_STOPPED_SHARING_LOCAL, {
|
|
506
|
+
reason: _constants.SHARE_STOPPED_REASON.MEETING_REJOIN
|
|
507
|
+
});
|
|
575
508
|
}
|
|
576
|
-
|
|
577
|
-
return this.stopLocalShareStream(_constants.SHARE_STOPPED_REASON.MEETING_REJOIN);
|
|
578
|
-
case 9:
|
|
579
|
-
_context4.next = 23;
|
|
509
|
+
_context3.next = 23;
|
|
580
510
|
break;
|
|
581
511
|
case 11:
|
|
582
|
-
|
|
583
|
-
|
|
512
|
+
_context3.prev = 11;
|
|
513
|
+
_context3.t0 = _context3["catch"](1);
|
|
584
514
|
this.rejoinAttempts += 1;
|
|
585
515
|
if (!(this.rejoinAttempts <= this.maxRejoinAttempts)) {
|
|
586
|
-
|
|
516
|
+
_context3.next = 19;
|
|
587
517
|
break;
|
|
588
518
|
}
|
|
589
|
-
_loggerProxy.default.logger.info("ReconnectionManager:index#rejoinMeeting --> Unable to rejoin meeting, attempt #".concat(this.rejoinAttempts, ", retrying."),
|
|
519
|
+
_loggerProxy.default.logger.info("ReconnectionManager:index#rejoinMeeting --> Unable to rejoin meeting, attempt #".concat(this.rejoinAttempts, ", retrying."), _context3.t0);
|
|
590
520
|
this.rejoinMeeting();
|
|
591
|
-
|
|
521
|
+
_context3.next = 23;
|
|
592
522
|
break;
|
|
593
523
|
case 19:
|
|
594
|
-
_loggerProxy.default.logger.error('ReconnectionManager:index#rejoinMeeting --> Unable to rejoin meeting after max attempts.',
|
|
524
|
+
_loggerProxy.default.logger.error('ReconnectionManager:index#rejoinMeeting --> Unable to rejoin meeting after max attempts.', _context3.t0);
|
|
595
525
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_MAX_REJOIN_FAILURE, {
|
|
596
526
|
locus_id: this.meeting.locusUrl.split('/').pop(),
|
|
597
|
-
reason:
|
|
598
|
-
stack:
|
|
527
|
+
reason: _context3.t0.message,
|
|
528
|
+
stack: _context3.t0.stack
|
|
599
529
|
});
|
|
600
530
|
this.status = _constants.RECONNECTION.STATE.FAILURE;
|
|
601
|
-
throw
|
|
531
|
+
throw _context3.t0;
|
|
602
532
|
case 23:
|
|
603
|
-
|
|
604
|
-
|
|
533
|
+
_context3.prev = 23;
|
|
534
|
+
_context3.next = 26;
|
|
605
535
|
return this.reconnectMedia();
|
|
606
536
|
case 26:
|
|
607
|
-
|
|
537
|
+
_context3.next = 32;
|
|
608
538
|
break;
|
|
609
539
|
case 28:
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
_loggerProxy.default.logger.error('ReconnectionManager:index#rejoinMeeting --> Unable to reestablish media after rejoining.',
|
|
613
|
-
throw
|
|
540
|
+
_context3.prev = 28;
|
|
541
|
+
_context3.t1 = _context3["catch"](23);
|
|
542
|
+
_loggerProxy.default.logger.error('ReconnectionManager:index#rejoinMeeting --> Unable to reestablish media after rejoining.', _context3.t1);
|
|
543
|
+
throw _context3.t1;
|
|
614
544
|
case 32:
|
|
615
545
|
case "end":
|
|
616
|
-
return
|
|
546
|
+
return _context3.stop();
|
|
617
547
|
}
|
|
618
|
-
},
|
|
548
|
+
}, _callee3, this, [[1, 11], [23, 28]]);
|
|
619
549
|
}));
|
|
620
550
|
function rejoinMeeting() {
|
|
621
551
|
return _rejoinMeeting.apply(this, arguments);
|
|
@@ -627,112 +557,129 @@ var ReconnectionManager = exports.default = /*#__PURE__*/function () {
|
|
|
627
557
|
* @private
|
|
628
558
|
* @memberof ReconnectionManager
|
|
629
559
|
*/
|
|
630
|
-
)
|
|
631
560
|
}, {
|
|
632
561
|
key: "reconnectMedia",
|
|
633
|
-
value:
|
|
634
|
-
var
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
562
|
+
value: function reconnectMedia() {
|
|
563
|
+
var _this4 = this;
|
|
564
|
+
_loggerProxy.default.logger.log('ReconnectionManager:index#reconnectMedia --> Begin reestablishment of media');
|
|
565
|
+
return ReconnectionManager.setupPeerConnection(this.meeting).then(function () {
|
|
566
|
+
return _media.default.attachMedia(_this4.meeting.mediaProperties, {
|
|
567
|
+
meetingId: _this4.meeting.id,
|
|
568
|
+
remoteQualityLevel: _this4.meeting.mediaProperties.remoteQualityLevel,
|
|
569
|
+
enableRtx: _this4.meeting.config.enableRtx,
|
|
570
|
+
enableExtmap: _this4.meeting.config.enableExtmap
|
|
571
|
+
});
|
|
572
|
+
}).then(function (peerConnection) {
|
|
573
|
+
return _this4.meeting.setRemoteStream(peerConnection);
|
|
574
|
+
}).then(function () {
|
|
575
|
+
_loggerProxy.default.logger.log('ReconnectionManager:index#reconnectMedia --> Sending ROAP media request');
|
|
576
|
+
return _this4.meeting.roap.sendRoapMediaRequest({
|
|
577
|
+
sdp: _this4.meeting.mediaProperties.peerConnection.sdp,
|
|
578
|
+
roapSeq: _this4.meeting.roapSeq,
|
|
579
|
+
meeting: _this4.meeting,
|
|
580
|
+
reconnect: true
|
|
581
|
+
});
|
|
582
|
+
});
|
|
583
|
+
}
|
|
640
584
|
|
|
641
|
-
// do the TURN server discovery again and ignore reachability results since the TURN server might change
|
|
642
|
-
_context5.next = 3;
|
|
643
|
-
return this.meeting.roap.doTurnDiscovery(this.meeting, true, true);
|
|
644
|
-
case 3:
|
|
645
|
-
turnServerResult = _context5.sent;
|
|
646
|
-
iceServers = [];
|
|
647
|
-
if (turnServerResult.turnServerInfo) {
|
|
648
|
-
iceServers.push({
|
|
649
|
-
urls: turnServerResult.turnServerInfo.url,
|
|
650
|
-
username: turnServerResult.turnServerInfo.username || '',
|
|
651
|
-
credential: turnServerResult.turnServerInfo.password || ''
|
|
652
|
-
});
|
|
653
|
-
}
|
|
654
|
-
_loggerProxy.default.logger.log('ReconnectionManager:index#reconnectMedia --> renew webRTC media connection and send local sdp offer');
|
|
655
|
-
_context5.next = 9;
|
|
656
|
-
return this.meeting.mediaProperties.webrtcMediaConnection.reconnect(iceServers);
|
|
657
|
-
case 9:
|
|
658
|
-
// resend media requests
|
|
659
|
-
if (this.meeting.isMultistream) {
|
|
660
|
-
(0, _values.default)(this.meeting.mediaRequestManagers).forEach(function (mediaRequestManager) {
|
|
661
|
-
mediaRequestManager.clearPreviousRequests();
|
|
662
|
-
mediaRequestManager.commit();
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
case 10:
|
|
666
|
-
case "end":
|
|
667
|
-
return _context5.stop();
|
|
668
|
-
}
|
|
669
|
-
}, _callee5, this);
|
|
670
|
-
}));
|
|
671
|
-
function reconnectMedia() {
|
|
672
|
-
return _reconnectMedia.apply(this, arguments);
|
|
673
|
-
}
|
|
674
|
-
return reconnectMedia;
|
|
675
|
-
}()
|
|
676
585
|
/**
|
|
677
586
|
* Attempt to Reconnect Mercury Websocket
|
|
678
587
|
* @returns {Promise}
|
|
679
588
|
* @private
|
|
680
589
|
* @memberof ReconnectionManager
|
|
681
590
|
*/
|
|
682
|
-
)
|
|
683
591
|
}, {
|
|
684
592
|
key: "reconnectMercuryWebSocket",
|
|
685
|
-
value:
|
|
686
|
-
var _reconnectMercuryWebSocket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
687
|
-
return _regenerator.default.wrap(function
|
|
688
|
-
while (1) switch (
|
|
593
|
+
value: function () {
|
|
594
|
+
var _reconnectMercuryWebSocket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
595
|
+
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
596
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
689
597
|
case 0:
|
|
690
598
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Reconnecting websocket.');
|
|
691
599
|
// First, attempt to disconnect if we think we are already connected.
|
|
692
600
|
if (!this.webex.internal.mercury.connected) {
|
|
693
|
-
|
|
601
|
+
_context4.next = 13;
|
|
694
602
|
break;
|
|
695
603
|
}
|
|
696
604
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Disconnecting existing websocket.');
|
|
697
|
-
|
|
698
|
-
|
|
605
|
+
_context4.prev = 3;
|
|
606
|
+
_context4.next = 6;
|
|
699
607
|
return this.webex.internal.mercury.disconnect();
|
|
700
608
|
case 6:
|
|
701
609
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Websocket disconnected successfully.');
|
|
702
|
-
|
|
610
|
+
_context4.next = 13;
|
|
703
611
|
break;
|
|
704
612
|
case 9:
|
|
705
|
-
|
|
706
|
-
|
|
613
|
+
_context4.prev = 9;
|
|
614
|
+
_context4.t0 = _context4["catch"](3);
|
|
707
615
|
// If we can't disconnect, the sdk is in such a bad state that reconnecting is not going to happen.
|
|
708
|
-
_loggerProxy.default.logger.error('ReconnectionManager:index#reconnectMercuryWebSocket --> Unable to disconnect from websocket, giving up.',
|
|
709
|
-
throw
|
|
616
|
+
_loggerProxy.default.logger.error('ReconnectionManager:index#reconnectMercuryWebSocket --> Unable to disconnect from websocket, giving up.', _context4.t0);
|
|
617
|
+
throw _context4.t0;
|
|
710
618
|
case 13:
|
|
711
|
-
|
|
619
|
+
_context4.prev = 13;
|
|
712
620
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Connecting websocket.');
|
|
713
|
-
|
|
621
|
+
_context4.next = 17;
|
|
714
622
|
return this.webex.internal.mercury.connect();
|
|
715
623
|
case 17:
|
|
716
624
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Websocket connected successfully.');
|
|
717
|
-
|
|
625
|
+
_context4.next = 24;
|
|
718
626
|
break;
|
|
719
627
|
case 20:
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
_loggerProxy.default.logger.error('ReconnectionManager:index#reconnectMercuryWebSocket --> Unable to connect to websocket, giving up.',
|
|
723
|
-
throw
|
|
628
|
+
_context4.prev = 20;
|
|
629
|
+
_context4.t1 = _context4["catch"](13);
|
|
630
|
+
_loggerProxy.default.logger.error('ReconnectionManager:index#reconnectMercuryWebSocket --> Unable to connect to websocket, giving up.', _context4.t1);
|
|
631
|
+
throw _context4.t1;
|
|
724
632
|
case 24:
|
|
725
633
|
case "end":
|
|
726
|
-
return
|
|
634
|
+
return _context4.stop();
|
|
727
635
|
}
|
|
728
|
-
},
|
|
636
|
+
}, _callee4, this, [[3, 9], [13, 20]]);
|
|
729
637
|
}));
|
|
730
638
|
function reconnectMercuryWebSocket() {
|
|
731
639
|
return _reconnectMercuryWebSocket.apply(this, arguments);
|
|
732
640
|
}
|
|
733
641
|
return reconnectMercuryWebSocket;
|
|
734
|
-
}()
|
|
642
|
+
}()
|
|
643
|
+
/**
|
|
644
|
+
* @param {Meeting} meeting
|
|
645
|
+
* @returns {undefined}
|
|
646
|
+
* @private
|
|
647
|
+
* @memberof ReconnectionManager
|
|
648
|
+
*/
|
|
649
|
+
}], [{
|
|
650
|
+
key: "setupPeerConnection",
|
|
651
|
+
value: function () {
|
|
652
|
+
var _setupPeerConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(meeting) {
|
|
653
|
+
var turnServerResult;
|
|
654
|
+
return _regenerator.default.wrap(function _callee5$(_context5) {
|
|
655
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
656
|
+
case 0:
|
|
657
|
+
_loggerProxy.default.logger.log('ReconnectionManager:index#setupPeerConnection --> Begin resetting peer connection');
|
|
658
|
+
// close pcs, unset to null and create a new one with out closing any streams
|
|
659
|
+
_peerConnectionManager.default.close(meeting.mediaProperties.peerConnection);
|
|
660
|
+
meeting.mediaProperties.unsetPeerConnection();
|
|
661
|
+
_context5.next = 5;
|
|
662
|
+
return meeting.roap.doTurnDiscovery(meeting, true);
|
|
663
|
+
case 5:
|
|
664
|
+
turnServerResult = _context5.sent;
|
|
665
|
+
meeting.mediaProperties.reInitiatePeerconnection(turnServerResult.turnServerInfo);
|
|
666
|
+
_peerConnectionManager.default.setPeerConnectionEvents(meeting);
|
|
667
|
+
|
|
668
|
+
// update the peerconnection in the stats manager when ever we reconnect
|
|
669
|
+
meeting.statsAnalyzer.updatePeerconnection(meeting.mediaProperties.peerConnection);
|
|
670
|
+
case 9:
|
|
671
|
+
case "end":
|
|
672
|
+
return _context5.stop();
|
|
673
|
+
}
|
|
674
|
+
}, _callee5);
|
|
675
|
+
}));
|
|
676
|
+
function setupPeerConnection(_x2) {
|
|
677
|
+
return _setupPeerConnection.apply(this, arguments);
|
|
678
|
+
}
|
|
679
|
+
return setupPeerConnection;
|
|
680
|
+
}()
|
|
735
681
|
}]);
|
|
736
682
|
return ReconnectionManager;
|
|
737
683
|
}();
|
|
684
|
+
exports.default = ReconnectionManager;
|
|
738
685
|
//# sourceMappingURL=index.js.map
|