@webex/plugin-meetings 3.0.0-beta.1 → 3.0.0-beta.11
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/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.js +7 -0
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js +8 -0
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-meeting.js +8 -0
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/media.js +7 -0
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js +7 -0
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js +7 -0
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/reconnection-in-progress.js.map +1 -1
- package/dist/common/errors/reconnection.js +7 -0
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js +7 -0
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.js +5 -29
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.js +5 -2
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.js +3 -0
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.js.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/constants.js +15 -74
- package/dist/constants.js.map +1 -1
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.js +43 -5
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +4 -0
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.js +12 -3
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.js +71 -210
- package/dist/media/index.js.map +1 -1
- package/dist/media/internal-media-core-wrapper.js +22 -0
- package/dist/media/internal-media-core-wrapper.js.map +1 -0
- package/dist/media/properties.js +32 -25
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js +0 -27
- package/dist/media/util.js.map +1 -1
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/meeting/effectsState.js +8 -1
- package/dist/meeting/effectsState.js.map +1 -1
- package/dist/meeting/index.js +1146 -602
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/muteState.js +6 -0
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +83 -24
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/util.js +5 -44
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/collection.js +4 -1
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.js +5 -0
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +14 -2
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js +3 -0
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.js +4 -1
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.js +136 -25
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/request.js +4 -0
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +24 -1
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +30 -7
- package/dist/member/index.js.map +1 -1
- package/dist/member/util.js +2 -1
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.js +1 -0
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.js +82 -1
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +19 -9
- package/dist/members/request.js.map +1 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/config.js.map +1 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +8 -0
- package/dist/metrics/index.js.map +1 -1
- package/dist/multistream/mediaRequestManager.js +133 -0
- package/dist/multistream/mediaRequestManager.js.map +1 -0
- package/dist/multistream/multistreamMedia.js +116 -0
- package/dist/multistream/multistreamMedia.js.map +1 -0
- package/dist/multistream/receiveSlot.js +209 -0
- package/dist/multistream/receiveSlot.js.map +1 -0
- package/dist/multistream/receiveSlotManager.js +195 -0
- package/dist/multistream/receiveSlotManager.js.map +1 -0
- package/dist/multistream/remoteMedia.js +289 -0
- package/dist/multistream/remoteMedia.js.map +1 -0
- package/dist/multistream/remoteMediaGroup.js +243 -0
- package/dist/multistream/remoteMediaGroup.js.map +1 -0
- package/dist/multistream/remoteMediaManager.js +1113 -0
- package/dist/multistream/remoteMediaManager.js.map +1 -0
- package/dist/networkQualityMonitor/index.js +10 -2
- package/dist/networkQualityMonitor/index.js.map +1 -1
- package/dist/personal-meeting-room/index.js +11 -0
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js +2 -1
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/index.js +17 -7
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.js +1 -0
- package/dist/reachability/request.js.map +1 -1
- package/dist/reactions/reactions.js +111 -0
- package/dist/reactions/reactions.js.map +1 -0
- package/dist/reactions/reactions.type.js +40 -0
- package/dist/reactions/reactions.type.js.map +1 -0
- package/dist/reconnection-manager/index.js +130 -132
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/roap/index.js +58 -231
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js +7 -116
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/turnDiscovery.js +20 -6
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/statsAnalyzer/global.js +2 -0
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/statsAnalyzer/index.js +58 -37
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.js +9 -3
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/transcription/index.js +10 -3
- package/dist/transcription/index.js.map +1 -1
- package/package.json +21 -20
- package/src/common/{browser-detection.js → browser-detection.ts} +1 -1
- package/src/common/collection.ts +6 -6
- package/src/common/{config.js → config.ts} +1 -1
- package/src/common/errors/{captcha-error.js → captcha-error.ts} +5 -1
- package/src/common/errors/{intent-to-join.js → intent-to-join.ts} +6 -1
- package/src/common/errors/{join-meeting.js → join-meeting.ts} +6 -1
- package/src/common/errors/{media.js → media.ts} +5 -1
- package/src/common/errors/parameter.ts +3 -2
- package/src/common/errors/{password-error.js → password-error.ts} +5 -1
- package/src/common/errors/{permission.js → permission.ts} +5 -1
- package/src/common/errors/{reconnection-in-progress.js → reconnection-in-progress.ts} +0 -0
- package/src/common/errors/{reconnection.js → reconnection.ts} +5 -1
- package/src/common/errors/{stats.js → stats.ts} +5 -1
- package/src/common/errors/{webex-errors.js → webex-errors.ts} +1 -20
- package/src/common/errors/{webex-meetings-error.js → webex-meetings-error.ts} +3 -1
- package/src/common/events/{events-scope.js → events-scope.ts} +1 -1
- package/src/common/events/{events.js → events.ts} +0 -0
- package/src/common/events/{trigger-proxy.js → trigger-proxy.ts} +1 -2
- package/src/common/events/{util.js → util.ts} +1 -1
- package/src/common/logs/{logger-config.js → logger-config.ts} +1 -2
- package/src/common/logs/{logger-proxy.js → logger-proxy.ts} +1 -1
- package/src/common/logs/{request.js → request.ts} +12 -2
- package/src/common/queue.ts +1 -2
- package/src/{config.js → config.ts} +2 -0
- package/src/constants.ts +139 -179
- package/src/locus-info/{controlsUtils.js → controlsUtils.ts} +4 -4
- package/src/locus-info/{embeddedAppsUtils.js → embeddedAppsUtils.ts} +5 -6
- package/src/locus-info/{fullState.js → fullState.ts} +1 -1
- package/src/locus-info/{hostUtils.js → hostUtils.ts} +5 -5
- package/src/locus-info/{index.js → index.ts} +67 -32
- package/src/locus-info/{infoUtils.js → infoUtils.ts} +7 -4
- package/src/locus-info/{mediaSharesUtils.js → mediaSharesUtils.ts} +13 -13
- package/src/locus-info/{parser.js → parser.ts} +22 -12
- package/src/locus-info/{selfUtils.js → selfUtils.ts} +17 -19
- package/src/media/{index.js → index.ts} +130 -205
- package/src/media/internal-media-core-wrapper.ts +9 -0
- package/src/media/{properties.js → properties.ts} +35 -29
- package/src/media/util.ts +16 -0
- package/src/mediaQualityMetrics/{config.js → config.ts} +1 -1
- package/src/meeting/{effectsState.js → effectsState.ts} +12 -6
- package/src/meeting/{index.js → index.ts} +993 -474
- package/src/meeting/{muteState.js → muteState.ts} +16 -11
- package/src/meeting/{request.js → request.ts} +148 -36
- package/src/meeting/{state.js → state.ts} +6 -6
- package/src/meeting/{util.js → util.ts} +9 -51
- package/src/meeting-info/{collection.js → collection.ts} +4 -1
- package/src/meeting-info/{index.js → index.ts} +10 -6
- package/src/meeting-info/{meeting-info-v2.js → meeting-info-v2.ts} +28 -10
- package/src/meeting-info/{request.js → request.ts} +6 -2
- package/src/meeting-info/{util.js → util.ts} +6 -5
- package/src/meeting-info/{utilv2.js → utilv2.ts} +8 -7
- package/src/meetings/{collection.js → collection.ts} +5 -2
- package/src/meetings/{index.js → index.ts} +118 -22
- package/src/meetings/{request.js → request.ts} +6 -1
- package/src/meetings/{util.js → util.ts} +28 -5
- package/src/member/{index.js → index.ts} +46 -15
- package/src/member/{util.js → util.ts} +17 -16
- package/src/members/{collection.js → collection.ts} +2 -1
- package/src/members/{index.js → index.ts} +94 -26
- package/src/members/{request.js → request.ts} +16 -5
- package/src/members/{util.js → util.ts} +7 -7
- package/src/metrics/{config.js → config.ts} +0 -2
- package/src/metrics/{constants.js → constants.ts} +0 -0
- package/src/metrics/{index.js → index.ts} +27 -8
- package/src/multistream/mediaRequestManager.ts +166 -0
- package/src/multistream/multistreamMedia.ts +92 -0
- package/src/multistream/receiveSlot.ts +141 -0
- package/src/multistream/receiveSlotManager.ts +142 -0
- package/src/multistream/remoteMedia.ts +228 -0
- package/src/multistream/remoteMediaGroup.ts +224 -0
- package/src/multistream/remoteMediaManager.ts +911 -0
- package/src/networkQualityMonitor/{index.js → index.ts} +18 -3
- package/src/personal-meeting-room/{index.js → index.ts} +17 -4
- package/src/personal-meeting-room/{request.js → request.ts} +3 -1
- package/src/personal-meeting-room/{util.js → util.ts} +1 -1
- package/src/reachability/{index.js → index.ts} +28 -17
- package/src/reachability/request.ts +4 -2
- package/src/reactions/reactions.ts +104 -0
- package/src/reactions/reactions.type.ts +36 -0
- package/src/reconnection-manager/{index.js → index.ts} +81 -65
- package/src/roap/index.ts +229 -0
- package/src/roap/{request.js → request.ts} +15 -74
- package/src/roap/turnDiscovery.ts +26 -11
- package/src/statsAnalyzer/{global.js → global.ts} +2 -0
- package/src/statsAnalyzer/{index.js → index.ts} +66 -61
- package/src/statsAnalyzer/{mqaUtil.js → mqaUtil.ts} +6 -1
- package/src/transcription/{index.js → index.ts} +16 -11
- package/test/integration/spec/journey.js +1 -1
- package/test/integration/spec/space-meeting.js +1 -2
- package/test/unit/spec/locus-info/infoUtils.js +17 -1
- package/test/unit/spec/media/index.ts +207 -0
- package/test/unit/spec/media/properties.ts +73 -82
- package/test/unit/spec/meeting/effectsState.js +1 -3
- package/test/unit/spec/meeting/index.js +672 -245
- package/test/unit/spec/meeting/muteState.js +7 -0
- package/test/unit/spec/meeting/request.js +25 -1
- package/test/unit/spec/meeting/utils.js +63 -2
- package/test/unit/spec/meetings/index.js +0 -4
- package/test/unit/spec/members/index.js +164 -2
- package/test/unit/spec/multistream/mediaRequestManager.ts +515 -0
- package/test/unit/spec/multistream/receiveSlot.ts +104 -0
- package/test/unit/spec/multistream/receiveSlotManager.ts +173 -0
- package/test/unit/spec/multistream/remoteMedia.ts +225 -0
- package/test/unit/spec/multistream/remoteMediaGroup.ts +396 -0
- package/test/unit/spec/multistream/remoteMediaManager.ts +1309 -0
- package/test/unit/spec/reconnection-manager/index.js +68 -2
- package/test/unit/spec/roap/index.ts +63 -35
- package/test/unit/spec/stats-analyzer/index.js +19 -22
- package/dist/peer-connection-manager/index.js +0 -794
- package/dist/peer-connection-manager/index.js.map +0 -1
- package/dist/peer-connection-manager/util.js +0 -124
- package/dist/peer-connection-manager/util.js.map +0 -1
- package/dist/roap/collection.js +0 -73
- package/dist/roap/collection.js.map +0 -1
- package/dist/roap/handler.js +0 -337
- package/dist/roap/handler.js.map +0 -1
- package/dist/roap/state.js +0 -164
- package/dist/roap/state.js.map +0 -1
- package/dist/roap/util.js +0 -102
- package/dist/roap/util.js.map +0 -1
- package/src/media/util.js +0 -38
- package/src/peer-connection-manager/index.js +0 -723
- package/src/peer-connection-manager/util.ts +0 -117
- package/src/roap/collection.js +0 -63
- package/src/roap/handler.js +0 -252
- package/src/roap/index.js +0 -380
- package/src/roap/state.js +0 -149
- package/src/roap/util.js +0 -93
- package/test/unit/spec/peerconnection-manager/index.js +0 -188
- package/test/unit/spec/peerconnection-manager/utils.js +0 -48
- package/test/unit/spec/peerconnection-manager/utils.test-fixtures.ts +0 -389
- package/test/unit/spec/roap/util.js +0 -30
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
4
|
+
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
exports.SkinTones = exports.Reactions = void 0;
|
|
10
|
+
var Reactions = {
|
|
11
|
+
smile: {
|
|
12
|
+
type: 'smile',
|
|
13
|
+
codepoints: '1F642',
|
|
14
|
+
shortcodes: ':slightly_smiling_face:'
|
|
15
|
+
},
|
|
16
|
+
sad: {
|
|
17
|
+
type: 'sad',
|
|
18
|
+
codepoints: '1F625',
|
|
19
|
+
shortcodes: ':sad_but_relieved_face:'
|
|
20
|
+
},
|
|
21
|
+
wow: {
|
|
22
|
+
type: 'wow',
|
|
23
|
+
codepoints: '1F62E',
|
|
24
|
+
shortcodes: ':open_mouth:'
|
|
25
|
+
},
|
|
26
|
+
haha: {
|
|
27
|
+
type: 'haha',
|
|
28
|
+
codepoints: '1F603',
|
|
29
|
+
shortcodes: ':smiley:'
|
|
30
|
+
},
|
|
31
|
+
celebrate: {
|
|
32
|
+
type: 'celebrate',
|
|
33
|
+
codepoints: '1F389',
|
|
34
|
+
shortcodes: ':party_popper:'
|
|
35
|
+
},
|
|
36
|
+
clap: {
|
|
37
|
+
type: 'clap',
|
|
38
|
+
codepoints: '1F44F',
|
|
39
|
+
shortcodes: ':clap:'
|
|
40
|
+
},
|
|
41
|
+
thumbs_up: {
|
|
42
|
+
type: 'thumb_up',
|
|
43
|
+
codepoints: '1F44D',
|
|
44
|
+
shortcodes: ':thumbsup:'
|
|
45
|
+
},
|
|
46
|
+
thumbs_down: {
|
|
47
|
+
type: 'thumb_down',
|
|
48
|
+
codepoints: '1F44E',
|
|
49
|
+
shortcodes: ':thumbsdown:'
|
|
50
|
+
},
|
|
51
|
+
heart: {
|
|
52
|
+
type: 'heart',
|
|
53
|
+
codepoints: '2764',
|
|
54
|
+
shortcodes: ':heart:'
|
|
55
|
+
},
|
|
56
|
+
fire: {
|
|
57
|
+
type: 'fire',
|
|
58
|
+
codepoints: '1F525',
|
|
59
|
+
shortcodes: ':fire:'
|
|
60
|
+
},
|
|
61
|
+
prayer: {
|
|
62
|
+
type: 'prayer',
|
|
63
|
+
codepoints: '1F64F',
|
|
64
|
+
shortcodes: ':pray:'
|
|
65
|
+
},
|
|
66
|
+
speed_up: {
|
|
67
|
+
type: 'speed_up',
|
|
68
|
+
codepoints: '1F407',
|
|
69
|
+
shortcodes: ':rabbit:'
|
|
70
|
+
},
|
|
71
|
+
slow_down: {
|
|
72
|
+
type: 'slow_down',
|
|
73
|
+
codepoints: '1F422',
|
|
74
|
+
shortcodes: ':turtle:'
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
exports.Reactions = Reactions;
|
|
78
|
+
var SkinTones = {
|
|
79
|
+
normal: {
|
|
80
|
+
type: 'normal_skin_tone',
|
|
81
|
+
codepoints: '',
|
|
82
|
+
shortcodes: ''
|
|
83
|
+
},
|
|
84
|
+
light: {
|
|
85
|
+
type: 'light_skin_tone',
|
|
86
|
+
codepoints: '1F3FB',
|
|
87
|
+
shortcodes: ':skin-tone-2:'
|
|
88
|
+
},
|
|
89
|
+
medium_light: {
|
|
90
|
+
type: 'medium_light_skin_tone',
|
|
91
|
+
codepoints: '1F3FC',
|
|
92
|
+
shortcodes: ':skin-tone-3:'
|
|
93
|
+
},
|
|
94
|
+
medium: {
|
|
95
|
+
type: 'medium_skin_tone',
|
|
96
|
+
codepoints: '1F3FD',
|
|
97
|
+
shortcodes: ':skin-tone-4:'
|
|
98
|
+
},
|
|
99
|
+
medium_dark: {
|
|
100
|
+
type: 'medium_dark_skin_tone',
|
|
101
|
+
codepoints: '1F3FE',
|
|
102
|
+
shortcodes: ':skin-tone-5:'
|
|
103
|
+
},
|
|
104
|
+
dark: {
|
|
105
|
+
type: 'dark_skin_tone',
|
|
106
|
+
codepoints: '1F3FF',
|
|
107
|
+
shortcodes: ':skin-tone-6:'
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
exports.SkinTones = SkinTones;
|
|
111
|
+
//# sourceMappingURL=reactions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Reactions","smile","type","codepoints","shortcodes","sad","wow","haha","celebrate","clap","thumbs_up","thumbs_down","heart","fire","prayer","speed_up","slow_down","SkinTones","normal","light","medium_light","medium","medium_dark","dark"],"sources":["reactions.ts"],"sourcesContent":["import {Reaction, ReactionType, SkinTone, SkinToneType} from './reactions.type';\n\nconst Reactions: Record<ReactionType, Reaction> = {\n smile: {\n type: 'smile',\n codepoints: '1F642',\n shortcodes: ':slightly_smiling_face:'\n },\n sad: {\n type: 'sad',\n codepoints: '1F625',\n shortcodes: ':sad_but_relieved_face:',\n },\n wow: {\n type: 'wow',\n codepoints: '1F62E',\n shortcodes: ':open_mouth:',\n },\n haha: {\n type: 'haha',\n codepoints: '1F603',\n shortcodes: ':smiley:'\n },\n celebrate: {\n type: 'celebrate',\n codepoints: '1F389',\n shortcodes: ':party_popper:',\n },\n clap: {\n type: 'clap',\n codepoints: '1F44F',\n shortcodes: ':clap:',\n },\n thumbs_up: {\n type: 'thumb_up',\n codepoints: '1F44D',\n shortcodes: ':thumbsup:',\n },\n thumbs_down: {\n type: 'thumb_down',\n codepoints: '1F44E',\n shortcodes: ':thumbsdown:',\n },\n heart: {\n type: 'heart',\n codepoints: '2764',\n shortcodes: ':heart:',\n },\n fire: {\n type: 'fire',\n codepoints: '1F525',\n shortcodes: ':fire:',\n },\n prayer: {\n type: 'prayer',\n codepoints: '1F64F',\n shortcodes: ':pray:',\n },\n speed_up: {\n type: 'speed_up',\n codepoints: '1F407',\n shortcodes: ':rabbit:',\n },\n slow_down: {\n type: 'slow_down',\n codepoints: '1F422',\n shortcodes: ':turtle:',\n }\n};\n\nconst SkinTones: Record<SkinToneType, SkinTone> = {\n normal: {\n type: 'normal_skin_tone',\n codepoints: '',\n shortcodes: '',\n },\n light: {\n type: 'light_skin_tone',\n codepoints: '1F3FB',\n shortcodes: ':skin-tone-2:',\n },\n medium_light: {\n type: 'medium_light_skin_tone',\n codepoints: '1F3FC',\n shortcodes: ':skin-tone-3:',\n },\n medium: {\n type: 'medium_skin_tone',\n codepoints: '1F3FD',\n shortcodes: ':skin-tone-4:',\n },\n medium_dark: {\n type: 'medium_dark_skin_tone',\n codepoints: '1F3FE',\n shortcodes: ':skin-tone-5:',\n },\n dark: {\n type: 'dark_skin_tone',\n codepoints: '1F3FF',\n shortcodes: ':skin-tone-6:',\n }\n};\n\nexport {Reactions, SkinTones};\n"],"mappings":";;;;;;;;;AAEA,IAAMA,SAAyC,GAAG;EAChDC,KAAK,EAAE;IACLC,IAAI,EAAE,OADD;IAELC,UAAU,EAAE,OAFP;IAGLC,UAAU,EAAE;EAHP,CADyC;EAMhDC,GAAG,EAAE;IACHH,IAAI,EAAE,KADH;IAEHC,UAAU,EAAE,OAFT;IAGHC,UAAU,EAAE;EAHT,CAN2C;EAWhDE,GAAG,EAAE;IACHJ,IAAI,EAAE,KADH;IAEHC,UAAU,EAAE,OAFT;IAGHC,UAAU,EAAE;EAHT,CAX2C;EAgBhDG,IAAI,EAAE;IACJL,IAAI,EAAE,MADF;IAEJC,UAAU,EAAE,OAFR;IAGJC,UAAU,EAAE;EAHR,CAhB0C;EAqBhDI,SAAS,EAAE;IACTN,IAAI,EAAE,WADG;IAETC,UAAU,EAAE,OAFH;IAGTC,UAAU,EAAE;EAHH,CArBqC;EA0BhDK,IAAI,EAAE;IACJP,IAAI,EAAE,MADF;IAEJC,UAAU,EAAE,OAFR;IAGJC,UAAU,EAAE;EAHR,CA1B0C;EA+BhDM,SAAS,EAAE;IACTR,IAAI,EAAE,UADG;IAETC,UAAU,EAAE,OAFH;IAGTC,UAAU,EAAE;EAHH,CA/BqC;EAoChDO,WAAW,EAAE;IACXT,IAAI,EAAE,YADK;IAEXC,UAAU,EAAE,OAFD;IAGXC,UAAU,EAAE;EAHD,CApCmC;EAyChDQ,KAAK,EAAE;IACLV,IAAI,EAAE,OADD;IAELC,UAAU,EAAE,MAFP;IAGLC,UAAU,EAAE;EAHP,CAzCyC;EA8ChDS,IAAI,EAAE;IACJX,IAAI,EAAE,MADF;IAEJC,UAAU,EAAE,OAFR;IAGJC,UAAU,EAAE;EAHR,CA9C0C;EAmDhDU,MAAM,EAAE;IACNZ,IAAI,EAAE,QADA;IAENC,UAAU,EAAE,OAFN;IAGNC,UAAU,EAAE;EAHN,CAnDwC;EAwDhDW,QAAQ,EAAE;IACRb,IAAI,EAAE,UADE;IAERC,UAAU,EAAE,OAFJ;IAGRC,UAAU,EAAE;EAHJ,CAxDsC;EA6DhDY,SAAS,EAAE;IACTd,IAAI,EAAE,WADG;IAETC,UAAU,EAAE,OAFH;IAGTC,UAAU,EAAE;EAHH;AA7DqC,CAAlD;;AAoEA,IAAMa,SAAyC,GAAG;EAChDC,MAAM,EAAE;IACNhB,IAAI,EAAE,kBADA;IAENC,UAAU,EAAE,EAFN;IAGNC,UAAU,EAAE;EAHN,CADwC;EAMhDe,KAAK,EAAE;IACLjB,IAAI,EAAE,iBADD;IAELC,UAAU,EAAE,OAFP;IAGLC,UAAU,EAAE;EAHP,CANyC;EAWhDgB,YAAY,EAAE;IACZlB,IAAI,EAAE,wBADM;IAEZC,UAAU,EAAE,OAFA;IAGZC,UAAU,EAAE;EAHA,CAXkC;EAgBhDiB,MAAM,EAAE;IACNnB,IAAI,EAAE,kBADA;IAENC,UAAU,EAAE,OAFN;IAGNC,UAAU,EAAE;EAHN,CAhBwC;EAqBhDkB,WAAW,EAAE;IACXpB,IAAI,EAAE,uBADK;IAEXC,UAAU,EAAE,OAFD;IAGXC,UAAU,EAAE;EAHD,CArBmC;EA0BhDmB,IAAI,EAAE;IACJrB,IAAI,EAAE,gBADF;IAEJC,UAAU,EAAE,OAFR;IAGJC,UAAU,EAAE;EAHR;AA1B0C,CAAlD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
4
|
+
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
exports.SkinToneType = exports.ReactionType = void 0;
|
|
10
|
+
var ReactionType;
|
|
11
|
+
exports.ReactionType = ReactionType;
|
|
12
|
+
|
|
13
|
+
(function (ReactionType) {
|
|
14
|
+
ReactionType["smile"] = "smile";
|
|
15
|
+
ReactionType["sad"] = "sad";
|
|
16
|
+
ReactionType["wow"] = "wow";
|
|
17
|
+
ReactionType["haha"] = "haha";
|
|
18
|
+
ReactionType["celebrate"] = "celebrate";
|
|
19
|
+
ReactionType["clap"] = "clap";
|
|
20
|
+
ReactionType["thumbs_up"] = "thumbs_up";
|
|
21
|
+
ReactionType["thumbs_down"] = "thumbs_down";
|
|
22
|
+
ReactionType["heart"] = "heart";
|
|
23
|
+
ReactionType["fire"] = "fire";
|
|
24
|
+
ReactionType["prayer"] = "prayer";
|
|
25
|
+
ReactionType["speed_up"] = "speed_up";
|
|
26
|
+
ReactionType["slow_down"] = "slow_down";
|
|
27
|
+
})(ReactionType || (exports.ReactionType = ReactionType = {}));
|
|
28
|
+
|
|
29
|
+
var SkinToneType;
|
|
30
|
+
exports.SkinToneType = SkinToneType;
|
|
31
|
+
|
|
32
|
+
(function (SkinToneType) {
|
|
33
|
+
SkinToneType["normal"] = "normal";
|
|
34
|
+
SkinToneType["light"] = "light";
|
|
35
|
+
SkinToneType["medium_light"] = "medium_light";
|
|
36
|
+
SkinToneType["medium"] = "medium";
|
|
37
|
+
SkinToneType["medium_dark"] = "medium_dark";
|
|
38
|
+
SkinToneType["dark"] = "dark";
|
|
39
|
+
})(SkinToneType || (exports.SkinToneType = SkinToneType = {}));
|
|
40
|
+
//# sourceMappingURL=reactions.type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ReactionType","SkinToneType"],"sources":["reactions.type.ts"],"sourcesContent":["\nexport type EmoticonData = {\n type: string;\n codepoints?: string;\n shortcodes?: string;\n}\n\nexport type SkinTone = EmoticonData;\nexport type Reaction = EmoticonData & {\n tone?: SkinTone;\n}\n\nexport enum ReactionType {\n smile = 'smile',\n sad = 'sad',\n wow = 'wow',\n haha = 'haha',\n celebrate = 'celebrate',\n clap = 'clap',\n thumbs_up = 'thumbs_up',\n thumbs_down = 'thumbs_down',\n heart = 'heart',\n fire = 'fire',\n prayer = 'prayer',\n speed_up = 'speed_up',\n slow_down = 'slow_down',\n}\n\nexport enum SkinToneType {\n normal = 'normal',\n light = 'light',\n medium_light = 'medium_light',\n medium = 'medium',\n medium_dark = 'medium_dark',\n dark = 'dark',\n}\n"],"mappings":";;;;;;;;;IAYYA,Y;;;WAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;GAAAA,Y,4BAAAA,Y;;IAgBAC,Y;;;WAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;EAAAA,Y;GAAAA,Y,4BAAAA,Y"}
|
|
@@ -18,6 +18,10 @@ var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/pr
|
|
|
18
18
|
|
|
19
19
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
|
|
20
20
|
|
|
21
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/assertThisInitialized"));
|
|
22
|
+
|
|
23
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
24
|
+
|
|
21
25
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
|
22
26
|
|
|
23
27
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
@@ -42,16 +46,12 @@ var _reconnection = _interopRequireDefault(require("../common/errors/reconnectio
|
|
|
42
46
|
|
|
43
47
|
var _reconnectionInProgress = _interopRequireDefault(require("../common/errors/reconnection-in-progress"));
|
|
44
48
|
|
|
45
|
-
var _peerConnectionManager = _interopRequireDefault(require("../peer-connection-manager"));
|
|
46
|
-
|
|
47
49
|
var _config = require("../metrics/config");
|
|
48
50
|
|
|
49
51
|
var _media = _interopRequireDefault(require("../media"));
|
|
50
52
|
|
|
51
53
|
var _metrics = _interopRequireDefault(require("../metrics"));
|
|
52
54
|
|
|
53
|
-
var _collection = _interopRequireDefault(require("../roap/collection"));
|
|
54
|
-
|
|
55
55
|
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); }; }
|
|
56
56
|
|
|
57
57
|
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; } }
|
|
@@ -101,7 +101,9 @@ var NeedsRejoinError = /*#__PURE__*/function (_Error2) {
|
|
|
101
101
|
_ref$error = _ref.error,
|
|
102
102
|
error = _ref$error === void 0 ? new Error('Meeting needs to be rejoined') : _ref$error;
|
|
103
103
|
(0, _classCallCheck2.default)(this, NeedsRejoinError);
|
|
104
|
+
// @ts-ignore
|
|
104
105
|
_this = _super2.call(this, error);
|
|
106
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "wasSharing", void 0);
|
|
105
107
|
_this.wasSharing = wasSharing;
|
|
106
108
|
return _this;
|
|
107
109
|
}
|
|
@@ -120,6 +122,15 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
120
122
|
*/
|
|
121
123
|
function ReconnectionManager(meeting) {
|
|
122
124
|
(0, _classCallCheck2.default)(this, ReconnectionManager);
|
|
125
|
+
(0, _defineProperty2.default)(this, "autoRejoinEnabled", void 0);
|
|
126
|
+
(0, _defineProperty2.default)(this, "iceState", void 0);
|
|
127
|
+
(0, _defineProperty2.default)(this, "maxRejoinAttempts", void 0);
|
|
128
|
+
(0, _defineProperty2.default)(this, "meeting", void 0);
|
|
129
|
+
(0, _defineProperty2.default)(this, "rejoinAttempts", void 0);
|
|
130
|
+
(0, _defineProperty2.default)(this, "shareStatus", void 0);
|
|
131
|
+
(0, _defineProperty2.default)(this, "status", void 0);
|
|
132
|
+
(0, _defineProperty2.default)(this, "tryCount", void 0);
|
|
133
|
+
(0, _defineProperty2.default)(this, "webex", void 0);
|
|
123
134
|
|
|
124
135
|
/**
|
|
125
136
|
* Stores ICE reconnection state data.
|
|
@@ -133,6 +144,7 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
133
144
|
disconnected: false,
|
|
134
145
|
resolve: function resolve() {},
|
|
135
146
|
timer: undefined,
|
|
147
|
+
// @ts-ignore
|
|
136
148
|
timeoutDuration: meeting.config.reconnection.iceReconnectionTimeout
|
|
137
149
|
};
|
|
138
150
|
/**
|
|
@@ -159,6 +171,7 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
159
171
|
*/
|
|
160
172
|
// TODO : change this logic to not save the meeting instance
|
|
161
173
|
// It gets complicated when meeting ends on remote side , We have a old meeting instance which is not up to date
|
|
174
|
+
// @ts-ignore
|
|
162
175
|
|
|
163
176
|
this.webex = meeting.webex;
|
|
164
177
|
/**
|
|
@@ -170,38 +183,50 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
170
183
|
// TODO: try removing the circular dependency for meeting and reconnection manager
|
|
171
184
|
// try moving this to meetings collection
|
|
172
185
|
|
|
173
|
-
this.meeting = meeting;
|
|
186
|
+
this.meeting = meeting; // @ts-ignore
|
|
187
|
+
|
|
174
188
|
this.maxRejoinAttempts = meeting.config.reconnection.maxRejoinAttempts;
|
|
175
|
-
this.rejoinAttempts = _constants.RECONNECTION.STATE.DEFAULT_TRY_COUNT;
|
|
189
|
+
this.rejoinAttempts = _constants.RECONNECTION.STATE.DEFAULT_TRY_COUNT; // @ts-ignore
|
|
190
|
+
|
|
176
191
|
this.autoRejoinEnabled = meeting.config.reconnection.autoRejoin; // Make sure reconnection state is in default
|
|
177
192
|
|
|
178
193
|
this.reset();
|
|
179
194
|
}
|
|
180
195
|
/**
|
|
181
|
-
* Sets the iceState to connected and clears any disconnect timeouts and
|
|
182
|
-
* related timeout data within the iceState.
|
|
183
|
-
*
|
|
184
|
-
* @returns {undefined}
|
|
185
196
|
* @public
|
|
186
197
|
* @memberof ReconnectionManager
|
|
198
|
+
* @returns {void}
|
|
187
199
|
*/
|
|
188
200
|
|
|
189
201
|
|
|
190
202
|
(0, _createClass2.default)(ReconnectionManager, [{
|
|
203
|
+
key: "resetReconnectionTimer",
|
|
204
|
+
value: function resetReconnectionTimer() {
|
|
205
|
+
this.iceState.resolve();
|
|
206
|
+
|
|
207
|
+
this.iceState.resolve = function () {};
|
|
208
|
+
|
|
209
|
+
if (this.iceState.timer) {
|
|
210
|
+
clearTimeout(this.iceState.timer);
|
|
211
|
+
delete this.iceState.timer;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Sets the iceState to connected and clears any disconnect timeouts and
|
|
216
|
+
* related timeout data within the iceState.
|
|
217
|
+
*
|
|
218
|
+
* @returns {undefined}
|
|
219
|
+
* @public
|
|
220
|
+
* @memberof ReconnectionManager
|
|
221
|
+
*/
|
|
222
|
+
|
|
223
|
+
}, {
|
|
191
224
|
key: "iceReconnected",
|
|
192
225
|
value: function iceReconnected() {
|
|
193
226
|
if (this.iceState.disconnected) {
|
|
194
227
|
_loggerProxy.default.logger.log('ReconnectionManager:index#iceReconnected --> ice has reconnected');
|
|
195
228
|
|
|
196
|
-
this.
|
|
197
|
-
|
|
198
|
-
this.iceState.resolve = function () {};
|
|
199
|
-
|
|
200
|
-
if (this.iceState.timer) {
|
|
201
|
-
clearTimeout(this.iceState.timer);
|
|
202
|
-
delete this.iceState.timer;
|
|
203
|
-
}
|
|
204
|
-
|
|
229
|
+
this.resetReconnectionTimer();
|
|
205
230
|
this.iceState.disconnected = false;
|
|
206
231
|
}
|
|
207
232
|
}
|
|
@@ -266,6 +291,17 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
266
291
|
this.reset();
|
|
267
292
|
this.meeting = null;
|
|
268
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* @public
|
|
296
|
+
* @memberof ReconnectionManager
|
|
297
|
+
* @returns {Boolean} true if reconnection operation is in progress
|
|
298
|
+
*/
|
|
299
|
+
|
|
300
|
+
}, {
|
|
301
|
+
key: "isReconnectInProgress",
|
|
302
|
+
value: function isReconnectInProgress() {
|
|
303
|
+
return this.status === _constants.RECONNECTION.STATE.IN_PROGRESS;
|
|
304
|
+
}
|
|
269
305
|
/**
|
|
270
306
|
* @returns {Boolean}
|
|
271
307
|
* @throws {ReconnectionError}
|
|
@@ -567,7 +603,6 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
567
603
|
value: function () {
|
|
568
604
|
var _rejoinMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
569
605
|
var wasSharing,
|
|
570
|
-
previousCorrelationId,
|
|
571
606
|
_args3 = arguments;
|
|
572
607
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
573
608
|
while (1) {
|
|
@@ -578,17 +613,14 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
578
613
|
|
|
579
614
|
_loggerProxy.default.logger.info('ReconnectionManager:index#rejoinMeeting --> attemping meeting rejoin');
|
|
580
615
|
|
|
581
|
-
|
|
582
|
-
_context3.next = 6;
|
|
616
|
+
_context3.next = 5;
|
|
583
617
|
return this.meeting.join({
|
|
584
618
|
rejoin: true
|
|
585
619
|
});
|
|
586
620
|
|
|
587
|
-
case
|
|
621
|
+
case 5:
|
|
588
622
|
_loggerProxy.default.logger.info('ReconnectionManager:index#rejoinMeeting --> meeting rejoined');
|
|
589
623
|
|
|
590
|
-
_collection.default.deleteSession(previousCorrelationId);
|
|
591
|
-
|
|
592
624
|
if (wasSharing) {
|
|
593
625
|
// Stop the share streams if user tried to rejoin
|
|
594
626
|
_media.default.stopTracks(this.meeting.mediaProperties.shareTrack);
|
|
@@ -609,26 +641,26 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
609
641
|
});
|
|
610
642
|
}
|
|
611
643
|
|
|
612
|
-
_context3.next =
|
|
644
|
+
_context3.next = 21;
|
|
613
645
|
break;
|
|
614
646
|
|
|
615
|
-
case
|
|
616
|
-
_context3.prev =
|
|
647
|
+
case 9:
|
|
648
|
+
_context3.prev = 9;
|
|
617
649
|
_context3.t0 = _context3["catch"](1);
|
|
618
650
|
this.rejoinAttempts += 1;
|
|
619
651
|
|
|
620
652
|
if (!(this.rejoinAttempts <= this.maxRejoinAttempts)) {
|
|
621
|
-
_context3.next =
|
|
653
|
+
_context3.next = 17;
|
|
622
654
|
break;
|
|
623
655
|
}
|
|
624
656
|
|
|
625
657
|
_loggerProxy.default.logger.info("ReconnectionManager:index#rejoinMeeting --> Unable to rejoin meeting, attempt #".concat(this.rejoinAttempts, ", retrying."), _context3.t0);
|
|
626
658
|
|
|
627
659
|
this.rejoinMeeting();
|
|
628
|
-
_context3.next =
|
|
660
|
+
_context3.next = 21;
|
|
629
661
|
break;
|
|
630
662
|
|
|
631
|
-
case
|
|
663
|
+
case 17:
|
|
632
664
|
_loggerProxy.default.logger.error('ReconnectionManager:index#rejoinMeeting --> Unable to rejoin meeting after max attempts.', _context3.t0);
|
|
633
665
|
|
|
634
666
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_MAX_REJOIN_FAILURE, {
|
|
@@ -640,29 +672,29 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
640
672
|
this.status = _constants.RECONNECTION.STATE.FAILURE;
|
|
641
673
|
throw _context3.t0;
|
|
642
674
|
|
|
643
|
-
case
|
|
644
|
-
_context3.prev =
|
|
645
|
-
_context3.next =
|
|
675
|
+
case 21:
|
|
676
|
+
_context3.prev = 21;
|
|
677
|
+
_context3.next = 24;
|
|
646
678
|
return this.reconnectMedia();
|
|
647
679
|
|
|
648
|
-
case
|
|
649
|
-
_context3.next =
|
|
680
|
+
case 24:
|
|
681
|
+
_context3.next = 30;
|
|
650
682
|
break;
|
|
651
683
|
|
|
652
|
-
case
|
|
653
|
-
_context3.prev =
|
|
654
|
-
_context3.t1 = _context3["catch"](
|
|
684
|
+
case 26:
|
|
685
|
+
_context3.prev = 26;
|
|
686
|
+
_context3.t1 = _context3["catch"](21);
|
|
655
687
|
|
|
656
688
|
_loggerProxy.default.logger.error('ReconnectionManager:index#rejoinMeeting --> Unable to reestablish media after rejoining.', _context3.t1);
|
|
657
689
|
|
|
658
690
|
throw _context3.t1;
|
|
659
691
|
|
|
660
|
-
case
|
|
692
|
+
case 30:
|
|
661
693
|
case "end":
|
|
662
694
|
return _context3.stop();
|
|
663
695
|
}
|
|
664
696
|
}
|
|
665
|
-
}, _callee3, this, [[1,
|
|
697
|
+
}, _callee3, this, [[1, 9], [21, 26]]);
|
|
666
698
|
}));
|
|
667
699
|
|
|
668
700
|
function rejoinMeeting() {
|
|
@@ -679,31 +711,45 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
679
711
|
|
|
680
712
|
}, {
|
|
681
713
|
key: "reconnectMedia",
|
|
682
|
-
value: function
|
|
683
|
-
var
|
|
714
|
+
value: function () {
|
|
715
|
+
var _reconnectMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
716
|
+
var turnServerResult, mc;
|
|
717
|
+
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
718
|
+
while (1) {
|
|
719
|
+
switch (_context4.prev = _context4.next) {
|
|
720
|
+
case 0:
|
|
721
|
+
_loggerProxy.default.logger.log('ReconnectionManager:index#reconnectMedia --> Begin reestablishment of media'); // we are not simply calling this.meeting.mediaProperties.webrtcMediaConnection.reconnect(),
|
|
722
|
+
// but instead manually closing and creating new media connection, because we need to do the TURN discovery again
|
|
684
723
|
|
|
685
|
-
_loggerProxy.default.logger.log('ReconnectionManager:index#reconnectMedia --> Begin reestablishment of media');
|
|
686
724
|
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
725
|
+
_context4.next = 3;
|
|
726
|
+
return this.meeting.closePeerConnections();
|
|
727
|
+
|
|
728
|
+
case 3:
|
|
729
|
+
this.meeting.mediaProperties.unsetPeerConnection();
|
|
730
|
+
_context4.next = 6;
|
|
731
|
+
return this.meeting.roap.doTurnDiscovery(this.meeting, true);
|
|
732
|
+
|
|
733
|
+
case 6:
|
|
734
|
+
turnServerResult = _context4.sent;
|
|
735
|
+
mc = this.meeting.createMediaConnection(turnServerResult.turnServerInfo);
|
|
736
|
+
this.meeting.statsAnalyzer.updateMediaConnection(mc);
|
|
737
|
+
return _context4.abrupt("return", mc.initiateOffer());
|
|
738
|
+
|
|
739
|
+
case 10:
|
|
740
|
+
case "end":
|
|
741
|
+
return _context4.stop();
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}, _callee4, this);
|
|
745
|
+
}));
|
|
746
|
+
|
|
747
|
+
function reconnectMedia() {
|
|
748
|
+
return _reconnectMedia.apply(this, arguments);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
return reconnectMedia;
|
|
752
|
+
}()
|
|
707
753
|
/**
|
|
708
754
|
* Attempt to Reconnect Mercury Websocket
|
|
709
755
|
* @returns {Promise}
|
|
@@ -714,68 +760,68 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
714
760
|
}, {
|
|
715
761
|
key: "reconnectMercuryWebSocket",
|
|
716
762
|
value: function () {
|
|
717
|
-
var _reconnectMercuryWebSocket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
718
|
-
return _regenerator.default.wrap(function
|
|
763
|
+
var _reconnectMercuryWebSocket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
764
|
+
return _regenerator.default.wrap(function _callee5$(_context5) {
|
|
719
765
|
while (1) {
|
|
720
|
-
switch (
|
|
766
|
+
switch (_context5.prev = _context5.next) {
|
|
721
767
|
case 0:
|
|
722
768
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Reconnecting websocket.'); // First, attempt to disconnect if we think we are already connected.
|
|
723
769
|
|
|
724
770
|
|
|
725
771
|
if (!this.webex.internal.mercury.connected) {
|
|
726
|
-
|
|
772
|
+
_context5.next = 13;
|
|
727
773
|
break;
|
|
728
774
|
}
|
|
729
775
|
|
|
730
776
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Disconnecting existing websocket.');
|
|
731
777
|
|
|
732
|
-
|
|
733
|
-
|
|
778
|
+
_context5.prev = 3;
|
|
779
|
+
_context5.next = 6;
|
|
734
780
|
return this.webex.internal.mercury.disconnect();
|
|
735
781
|
|
|
736
782
|
case 6:
|
|
737
783
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Websocket disconnected successfully.');
|
|
738
784
|
|
|
739
|
-
|
|
785
|
+
_context5.next = 13;
|
|
740
786
|
break;
|
|
741
787
|
|
|
742
788
|
case 9:
|
|
743
|
-
|
|
744
|
-
|
|
789
|
+
_context5.prev = 9;
|
|
790
|
+
_context5.t0 = _context5["catch"](3);
|
|
745
791
|
|
|
746
792
|
// If we can't disconnect, the sdk is in such a bad state that reconnecting is not going to happen.
|
|
747
|
-
_loggerProxy.default.logger.error('ReconnectionManager:index#reconnectMercuryWebSocket --> Unable to disconnect from websocket, giving up.',
|
|
793
|
+
_loggerProxy.default.logger.error('ReconnectionManager:index#reconnectMercuryWebSocket --> Unable to disconnect from websocket, giving up.', _context5.t0);
|
|
748
794
|
|
|
749
|
-
throw
|
|
795
|
+
throw _context5.t0;
|
|
750
796
|
|
|
751
797
|
case 13:
|
|
752
|
-
|
|
798
|
+
_context5.prev = 13;
|
|
753
799
|
|
|
754
800
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Connecting websocket.');
|
|
755
801
|
|
|
756
|
-
|
|
802
|
+
_context5.next = 17;
|
|
757
803
|
return this.webex.internal.mercury.connect();
|
|
758
804
|
|
|
759
805
|
case 17:
|
|
760
806
|
_loggerProxy.default.logger.info('ReconnectionManager:index#reconnectMercuryWebSocket --> Websocket connected successfully.');
|
|
761
807
|
|
|
762
|
-
|
|
808
|
+
_context5.next = 24;
|
|
763
809
|
break;
|
|
764
810
|
|
|
765
811
|
case 20:
|
|
766
|
-
|
|
767
|
-
|
|
812
|
+
_context5.prev = 20;
|
|
813
|
+
_context5.t1 = _context5["catch"](13);
|
|
768
814
|
|
|
769
|
-
_loggerProxy.default.logger.error('ReconnectionManager:index#reconnectMercuryWebSocket --> Unable to connect to websocket, giving up.',
|
|
815
|
+
_loggerProxy.default.logger.error('ReconnectionManager:index#reconnectMercuryWebSocket --> Unable to connect to websocket, giving up.', _context5.t1);
|
|
770
816
|
|
|
771
|
-
throw
|
|
817
|
+
throw _context5.t1;
|
|
772
818
|
|
|
773
819
|
case 24:
|
|
774
820
|
case "end":
|
|
775
|
-
return
|
|
821
|
+
return _context5.stop();
|
|
776
822
|
}
|
|
777
823
|
}
|
|
778
|
-
},
|
|
824
|
+
}, _callee5, this, [[3, 9], [13, 20]]);
|
|
779
825
|
}));
|
|
780
826
|
|
|
781
827
|
function reconnectMercuryWebSocket() {
|
|
@@ -784,54 +830,6 @@ var ReconnectionManager = /*#__PURE__*/function () {
|
|
|
784
830
|
|
|
785
831
|
return reconnectMercuryWebSocket;
|
|
786
832
|
}()
|
|
787
|
-
/**
|
|
788
|
-
* @param {Meeting} meeting
|
|
789
|
-
* @returns {undefined}
|
|
790
|
-
* @private
|
|
791
|
-
* @memberof ReconnectionManager
|
|
792
|
-
*/
|
|
793
|
-
|
|
794
|
-
}], [{
|
|
795
|
-
key: "setupPeerConnection",
|
|
796
|
-
value: function () {
|
|
797
|
-
var _setupPeerConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(meeting) {
|
|
798
|
-
var turnInfo;
|
|
799
|
-
return _regenerator.default.wrap(function _callee5$(_context5) {
|
|
800
|
-
while (1) {
|
|
801
|
-
switch (_context5.prev = _context5.next) {
|
|
802
|
-
case 0:
|
|
803
|
-
_loggerProxy.default.logger.log('ReconnectionManager:index#setupPeerConnection --> Begin resetting peer connection'); // close pcs, unset to null and create a new one with out closing any streams
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
_peerConnectionManager.default.close(meeting.mediaProperties.peerConnection);
|
|
807
|
-
|
|
808
|
-
meeting.mediaProperties.unsetPeerConnection();
|
|
809
|
-
_context5.next = 5;
|
|
810
|
-
return meeting.roap.doTurnDiscovery(meeting, true);
|
|
811
|
-
|
|
812
|
-
case 5:
|
|
813
|
-
turnInfo = _context5.sent;
|
|
814
|
-
meeting.mediaProperties.reInitiatePeerconnection(turnInfo);
|
|
815
|
-
|
|
816
|
-
_peerConnectionManager.default.setPeerConnectionEvents(meeting); // update the peerconnection in the stats manager when ever we reconnect
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
meeting.statsAnalyzer.updatePeerconnection(meeting.mediaProperties.peerConnection);
|
|
820
|
-
|
|
821
|
-
case 9:
|
|
822
|
-
case "end":
|
|
823
|
-
return _context5.stop();
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
}, _callee5);
|
|
827
|
-
}));
|
|
828
|
-
|
|
829
|
-
function setupPeerConnection(_x2) {
|
|
830
|
-
return _setupPeerConnection.apply(this, arguments);
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
return setupPeerConnection;
|
|
834
|
-
}()
|
|
835
833
|
}]);
|
|
836
834
|
return ReconnectionManager;
|
|
837
835
|
}();
|