@webex/plugin-meetings 3.0.0-beta.337 → 3.0.0-beta.339

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.
@@ -65,7 +65,8 @@ describe('plugin-meetings/roap', () => {
65
65
  REACHABILITY.localStorageResult,
66
66
  JSON.stringify({
67
67
  clusterId: {
68
- udp: 'test',
68
+ udp: { result: 'reachable', latencyInMilliseconds: 10 },
69
+ tcp: { result: 'unreachable' },
69
70
  isVideoMesh: false,
70
71
  },
71
72
  })
@@ -79,7 +80,16 @@ describe('plugin-meetings/roap', () => {
79
80
  assert.deepEqual(res.localSdp, {
80
81
  reachability: {
81
82
  clusterId: {
82
- udp: 'test',
83
+ udp: {
84
+ reachable: 'true',
85
+ latencyInMilliseconds: '10',
86
+ },
87
+ tcp: {
88
+ reachable: 'false',
89
+ },
90
+ xtls: {
91
+ untested: 'true',
92
+ }
83
93
  },
84
94
  },
85
95
  });
@@ -149,7 +159,20 @@ describe('plugin-meetings/roap', () => {
149
159
  roapMessage: {
150
160
  seq: 'seq',
151
161
  },
152
- reachability: {clusterId: {udp: 'test'}},
162
+ reachability: {
163
+ clusterId: {
164
+ tcp: {
165
+ reachable: 'false',
166
+ },
167
+ udp: {
168
+ latencyInMilliseconds: '10',
169
+ reachable: 'true',
170
+ },
171
+ xtls: {
172
+ untested: 'true',
173
+ },
174
+ },
175
+ },
153
176
  });
154
177
  });
155
178
 
@@ -130,17 +130,17 @@ describe('plugin-meetings', () => {
130
130
  {
131
131
  type: 'candidate-pair',
132
132
  state: 'succeeded',
133
- localCandidateId: 'fake-candidate-id'
133
+ localCandidateId: 'fake-candidate-id',
134
134
  },
135
135
  {
136
136
  type: 'candidate-pair',
137
137
  state: 'failed',
138
- localCandidateId: 'bad-candidate-id'
138
+ localCandidateId: 'bad-candidate-id',
139
139
  },
140
140
  {
141
141
  type: 'local-candidate',
142
142
  id: 'fake-candidate-id',
143
- protocol: 'tcp'
143
+ protocol: 'tcp',
144
144
  },
145
145
  ],
146
146
  },
@@ -156,17 +156,17 @@ describe('plugin-meetings', () => {
156
156
  {
157
157
  type: 'candidate-pair',
158
158
  state: 'succeeded',
159
- localCandidateId: 'fake-candidate-id'
159
+ localCandidateId: 'fake-candidate-id',
160
160
  },
161
161
  {
162
162
  type: 'candidate-pair',
163
163
  state: 'failed',
164
- localCandidateId: 'bad-candidate-id'
164
+ localCandidateId: 'bad-candidate-id',
165
165
  },
166
166
  {
167
167
  type: 'local-candidate',
168
168
  id: 'fake-candidate-id',
169
- protocol: 'tcp'
169
+ protocol: 'tcp',
170
170
  },
171
171
  ],
172
172
  },
@@ -185,17 +185,17 @@ describe('plugin-meetings', () => {
185
185
  {
186
186
  type: 'candidate-pair',
187
187
  state: 'succeeded',
188
- localCandidateId: 'fake-candidate-id'
188
+ localCandidateId: 'fake-candidate-id',
189
189
  },
190
190
  {
191
191
  type: 'candidate-pair',
192
192
  state: 'failed',
193
- localCandidateId: 'bad-candidate-id'
193
+ localCandidateId: 'bad-candidate-id',
194
194
  },
195
195
  {
196
196
  type: 'local-candidate',
197
197
  id: 'fake-candidate-id',
198
- protocol: 'tcp'
198
+ protocol: 'tcp',
199
199
  },
200
200
  ],
201
201
  },
@@ -214,17 +214,17 @@ describe('plugin-meetings', () => {
214
214
  {
215
215
  type: 'candidate-pair',
216
216
  state: 'succeeded',
217
- localCandidateId: 'fake-candidate-id'
217
+ localCandidateId: 'fake-candidate-id',
218
218
  },
219
219
  {
220
220
  type: 'candidate-pair',
221
221
  state: 'failed',
222
- localCandidateId: 'bad-candidate-id'
222
+ localCandidateId: 'bad-candidate-id',
223
223
  },
224
224
  {
225
225
  type: 'local-candidate',
226
226
  id: 'fake-candidate-id',
227
- protocol: 'tcp'
227
+ protocol: 'tcp',
228
228
  },
229
229
  ],
230
230
  },
@@ -244,12 +244,12 @@ describe('plugin-meetings', () => {
244
244
  receivers: [fakeStats.video.receivers[0]],
245
245
  },
246
246
  screenShareAudio: {
247
- senders: [],
248
- receivers: [],
247
+ senders: [fakeStats.audio.senders[0]],
248
+ receivers: [fakeStats.audio.receivers[0]],
249
249
  },
250
250
  screenShareVideo: {
251
- senders: [],
252
- receivers: [],
251
+ senders: [fakeStats.video.senders[0]],
252
+ receivers: [fakeStats.video.receivers[0]],
253
253
  },
254
254
  }),
255
255
  };
@@ -300,6 +300,17 @@ describe('plugin-meetings', () => {
300
300
  };
301
301
 
302
302
  const checkMqeData = () => {
303
+ for (const data of [
304
+ mqeData.audioTransmit,
305
+ mqeData.audioReceive,
306
+ mqeData.videoTransmit,
307
+ mqeData.videoReceive,
308
+ ]) {
309
+ assert.strictEqual(data.length, 2);
310
+ assert.strictEqual(data[0].common.common.isMain, true);
311
+ assert.strictEqual(data[1].common.common.isMain, false);
312
+ }
313
+
303
314
  assert.strictEqual(mqeData.videoReceive[0].streams[0].receivedFrameSize, 3600);
304
315
  assert.strictEqual(mqeData.videoReceive[0].streams[0].receivedHeight, 720);
305
316
  assert.strictEqual(mqeData.videoReceive[0].streams[0].receivedWidth, 1280);
@@ -422,8 +433,16 @@ describe('plugin-meetings', () => {
422
433
 
423
434
  await progressTime();
424
435
 
425
- assert.strictEqual(mqeData.intervalMetadata.peripherals.find((val) => val.name === MEDIA_DEVICES.MICROPHONE).information, 'fake-microphone');
426
- assert.strictEqual(mqeData.intervalMetadata.peripherals.find((val) => val.name === MEDIA_DEVICES.CAMERA).information, 'fake-camera');
436
+ assert.strictEqual(
437
+ mqeData.intervalMetadata.peripherals.find((val) => val.name === MEDIA_DEVICES.MICROPHONE)
438
+ .information,
439
+ 'fake-microphone'
440
+ );
441
+ assert.strictEqual(
442
+ mqeData.intervalMetadata.peripherals.find((val) => val.name === MEDIA_DEVICES.CAMERA)
443
+ .information,
444
+ 'fake-camera'
445
+ );
427
446
  });
428
447
 
429
448
  it('emits the correct peripherals in MEDIA_QUALITY events when localTrackLabel is undefined', async () => {
@@ -434,8 +453,16 @@ describe('plugin-meetings', () => {
434
453
 
435
454
  await progressTime();
436
455
 
437
- assert.strictEqual(mqeData.intervalMetadata.peripherals.find((val) => val.name === MEDIA_DEVICES.MICROPHONE).information, _UNKNOWN_);
438
- assert.strictEqual(mqeData.intervalMetadata.peripherals.find((val) => val.name === MEDIA_DEVICES.CAMERA).information, _UNKNOWN_);
456
+ assert.strictEqual(
457
+ mqeData.intervalMetadata.peripherals.find((val) => val.name === MEDIA_DEVICES.MICROPHONE)
458
+ .information,
459
+ _UNKNOWN_
460
+ );
461
+ assert.strictEqual(
462
+ mqeData.intervalMetadata.peripherals.find((val) => val.name === MEDIA_DEVICES.CAMERA)
463
+ .information,
464
+ _UNKNOWN_
465
+ );
439
466
  });
440
467
 
441
468
  it('emits the correct frameRate', async () => {