@webex/plugin-meetings 3.0.0-beta.277 → 3.0.0-beta.279
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/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/index.js +10 -5
- package/dist/meeting/index.js.map +1 -1
- package/dist/statsAnalyzer/index.js +16 -39
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.js +5 -4
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/package.json +19 -19
- package/src/meeting/index.ts +16 -1
- package/src/statsAnalyzer/index.ts +15 -53
- package/src/statsAnalyzer/mqaUtil.ts +5 -4
- package/test/unit/spec/meeting/index.js +160 -12
- package/test/unit/spec/stats-analyzer/index.js +35 -0
|
@@ -125,6 +125,11 @@ describe('plugin-meetings', () => {
|
|
|
125
125
|
packetsSent: 0,
|
|
126
126
|
bytesSent: 1,
|
|
127
127
|
},
|
|
128
|
+
{
|
|
129
|
+
type: 'local-candidate',
|
|
130
|
+
id: 'fake-candidate-id',
|
|
131
|
+
protocol: 'tcp'
|
|
132
|
+
},
|
|
128
133
|
],
|
|
129
134
|
},
|
|
130
135
|
],
|
|
@@ -136,6 +141,11 @@ describe('plugin-meetings', () => {
|
|
|
136
141
|
packetsReceived: 0,
|
|
137
142
|
bytesReceived: 1,
|
|
138
143
|
},
|
|
144
|
+
{
|
|
145
|
+
type: 'local-candidate',
|
|
146
|
+
id: 'fake-candidate-id',
|
|
147
|
+
protocol: 'tcp'
|
|
148
|
+
},
|
|
139
149
|
],
|
|
140
150
|
},
|
|
141
151
|
],
|
|
@@ -149,6 +159,11 @@ describe('plugin-meetings', () => {
|
|
|
149
159
|
framesSent: 0,
|
|
150
160
|
bytesSent: 1,
|
|
151
161
|
},
|
|
162
|
+
{
|
|
163
|
+
type: 'local-candidate',
|
|
164
|
+
id: 'fake-candidate-id',
|
|
165
|
+
protocol: 'tcp'
|
|
166
|
+
},
|
|
152
167
|
],
|
|
153
168
|
},
|
|
154
169
|
],
|
|
@@ -163,6 +178,11 @@ describe('plugin-meetings', () => {
|
|
|
163
178
|
frameWidth: 1280,
|
|
164
179
|
framesReceived: 1,
|
|
165
180
|
},
|
|
181
|
+
{
|
|
182
|
+
type: 'local-candidate',
|
|
183
|
+
id: 'fake-candidate-id',
|
|
184
|
+
protocol: 'tcp'
|
|
185
|
+
},
|
|
166
186
|
],
|
|
167
187
|
},
|
|
168
188
|
],
|
|
@@ -242,6 +262,13 @@ describe('plugin-meetings', () => {
|
|
|
242
262
|
assert.strictEqual(mqeData.videoReceive[0].streams[0].receivedWidth, 1280);
|
|
243
263
|
};
|
|
244
264
|
|
|
265
|
+
const checkMqeTransportType = () => {
|
|
266
|
+
console.log(mqeData.audioTransmit[0])
|
|
267
|
+
console.log(mqeData.videoReceive[0])
|
|
268
|
+
assert.strictEqual(mqeData.audioTransmit[0].common.transportType, 'TCP');
|
|
269
|
+
assert.strictEqual(mqeData.videoReceive[0].common.transportType, 'TCP');
|
|
270
|
+
}
|
|
271
|
+
|
|
245
272
|
it('emits LOCAL_MEDIA_STARTED and LOCAL_MEDIA_STOPPED events for audio', async () => {
|
|
246
273
|
await startStatsAnalyzer({expected: {sendAudio: true}});
|
|
247
274
|
|
|
@@ -330,6 +357,14 @@ describe('plugin-meetings', () => {
|
|
|
330
357
|
// Check that the mqe data has been emitted and is correctly computed.
|
|
331
358
|
checkMqeData();
|
|
332
359
|
});
|
|
360
|
+
|
|
361
|
+
it('emits the correct transportType in MEDIA_QUALITY events', async () => {
|
|
362
|
+
await startStatsAnalyzer({expected: {receiveVideo: true}});
|
|
363
|
+
|
|
364
|
+
await progressTime();
|
|
365
|
+
|
|
366
|
+
checkMqeTransportType();
|
|
367
|
+
});
|
|
333
368
|
});
|
|
334
369
|
});
|
|
335
370
|
});
|