@webex/plugin-meetings 2.37.2 → 2.38.1
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/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/constants.js +2 -1
- package/dist/constants.js.map +1 -1
- package/dist/locus-info/index.js +24 -0
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/parser.js +1 -0
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/index.js +405 -352
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/muteState.js +13 -0
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +0 -27
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/util.js +0 -56
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +2 -0
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +27 -17
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/request.js +14 -12
- package/dist/meetings/request.js.map +1 -1
- package/dist/member/util.js +3 -1
- package/dist/member/util.js.map +1 -1
- package/dist/members/request.js +3 -1
- package/dist/members/request.js.map +1 -1
- package/dist/reachability/index.js +4 -4
- package/dist/reachability/index.js.map +1 -1
- package/dist/reactions/reactions.type.js +1 -0
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/recording-controller/enums.js +17 -0
- package/dist/recording-controller/enums.js.map +1 -0
- package/dist/recording-controller/index.js +343 -0
- package/dist/recording-controller/index.js.map +1 -0
- package/dist/recording-controller/util.js +63 -0
- package/dist/recording-controller/util.js.map +1 -0
- package/dist/roap/index.js +16 -10
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/turnDiscovery.js +6 -4
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.js +18 -6
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/package.json +23 -18
- package/src/config.ts +1 -1
- package/src/constants.ts +1 -0
- package/src/locus-info/index.ts +24 -0
- package/src/locus-info/parser.ts +1 -0
- package/src/media/properties.ts +1 -1
- package/src/meeting/index.ts +121 -70
- package/src/meeting/muteState.ts +11 -0
- package/src/meeting/request.ts +0 -31
- package/src/meeting/util.ts +0 -60
- package/src/meeting-info/meeting-info-v2.ts +2 -0
- package/src/meetings/index.ts +8 -3
- package/src/meetings/request.ts +1 -1
- package/src/member/util.ts +2 -1
- package/src/members/request.ts +1 -0
- package/src/reachability/index.ts +2 -1
- package/src/reactions/reactions.type.ts +2 -1
- package/src/recording-controller/enums.ts +8 -0
- package/src/recording-controller/index.ts +315 -0
- package/src/recording-controller/util.ts +58 -0
- package/src/roap/index.ts +8 -8
- package/src/roap/turnDiscovery.ts +5 -5
- package/src/statsAnalyzer/mqaUtil.ts +6 -0
- package/test/integration/spec/journey.js +1 -1
- package/test/integration/spec/space-meeting.js +1 -1
- package/test/integration/spec/transcription.js +1 -1
- package/test/unit/spec/meeting/index.js +33 -6
- package/test/unit/spec/meeting/muteState.js +11 -0
- package/test/unit/spec/meeting/utils.js +0 -127
- package/test/unit/spec/recording-controller/index.js +231 -0
- package/test/unit/spec/recording-controller/util.js +102 -0
- package/test/unit/spec/roap/index.ts +10 -5
- package/test/unit/spec/roap/turnDiscovery.ts +13 -8
- package/tsconfig.json +6 -0
|
@@ -40,8 +40,12 @@ describe('TurnDiscovery', () => {
|
|
|
40
40
|
mediaId: 'fake media id',
|
|
41
41
|
locusUrl: `https://locus-a.wbx2.com/locus/api/v1/loci/${FAKE_LOCUS_ID}`,
|
|
42
42
|
roapSeq: -1,
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
audio:{
|
|
44
|
+
isLocallyMuted: () => true,
|
|
45
|
+
},
|
|
46
|
+
video:{
|
|
47
|
+
isLocallyMuted: () => false,
|
|
48
|
+
},
|
|
45
49
|
setRoapSeq: sinon.fake((newSeq) => {
|
|
46
50
|
testMeeting.roapSeq = newSeq;
|
|
47
51
|
}),
|
|
@@ -72,8 +76,8 @@ describe('TurnDiscovery', () => {
|
|
|
72
76
|
correlationId: testMeeting.correlationId,
|
|
73
77
|
locusSelfUrl: testMeeting.selfUrl,
|
|
74
78
|
mediaId: expectedMediaId,
|
|
75
|
-
audioMuted: testMeeting.
|
|
76
|
-
videoMuted: testMeeting.
|
|
79
|
+
audioMuted: testMeeting.audio?.isLocallyMuted(),
|
|
80
|
+
videoMuted: testMeeting.video?.isLocallyMuted(),
|
|
77
81
|
meetingId: testMeeting.id,
|
|
78
82
|
});
|
|
79
83
|
|
|
@@ -104,7 +108,7 @@ describe('TurnDiscovery', () => {
|
|
|
104
108
|
|
|
105
109
|
// check that TURN_DISCOVERY_REQUEST was sent
|
|
106
110
|
await checkRoapMessageSent('TURN_DISCOVERY_REQUEST', 0);
|
|
107
|
-
|
|
111
|
+
// @ts-ignore
|
|
108
112
|
mockRoapRequest.sendRoap.resetHistory();
|
|
109
113
|
|
|
110
114
|
// simulate the response
|
|
@@ -141,6 +145,7 @@ describe('TurnDiscovery', () => {
|
|
|
141
145
|
await checkRoapMessageSent('TURN_DISCOVERY_REQUEST', 0, '');
|
|
142
146
|
|
|
143
147
|
// the main part of the test is complete now, checking the remaining part of the flow just for completeness
|
|
148
|
+
// @ts-ignore
|
|
144
149
|
mockRoapRequest.sendRoap.resetHistory();
|
|
145
150
|
|
|
146
151
|
// simulate the response
|
|
@@ -173,7 +178,7 @@ describe('TurnDiscovery', () => {
|
|
|
173
178
|
|
|
174
179
|
// check that TURN_DISCOVERY_REQUEST was sent
|
|
175
180
|
await checkRoapMessageSent('TURN_DISCOVERY_REQUEST', 0);
|
|
176
|
-
|
|
181
|
+
// @ts-ignore
|
|
177
182
|
mockRoapRequest.sendRoap.resetHistory();
|
|
178
183
|
|
|
179
184
|
// simulate the response with some extra headers
|
|
@@ -206,7 +211,7 @@ describe('TurnDiscovery', () => {
|
|
|
206
211
|
const prevConfigValue = testMeeting.config.experimental.enableTurnDiscovery;
|
|
207
212
|
|
|
208
213
|
testMeeting.config.experimental.enableTurnDiscovery = false;
|
|
209
|
-
|
|
214
|
+
// @ts-ignore
|
|
210
215
|
const result = await new TurnDiscovery(mockRoapRequest).doTurnDiscovery(testMeeting);
|
|
211
216
|
|
|
212
217
|
const {turnServerInfo, turnDiscoverySkippedReason} = result;
|
|
@@ -319,7 +324,7 @@ describe('TurnDiscovery', () => {
|
|
|
319
324
|
|
|
320
325
|
// check that TURN_DISCOVERY_REQUEST was sent
|
|
321
326
|
await checkRoapMessageSent('TURN_DISCOVERY_REQUEST', 0);
|
|
322
|
-
|
|
327
|
+
// @ts-ignore
|
|
323
328
|
mockRoapRequest.sendRoap.resetHistory();
|
|
324
329
|
|
|
325
330
|
// setup the mock so that sending of OK fails
|