@webex/plugin-meetings 3.0.0-next.1 → 3.0.0-next.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/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/constants.d.ts +1 -2
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/interpretation/index.js +3 -3
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/mediaSharesUtils.js +15 -1
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/media/index.js +4 -1
- package/dist/media/index.js.map +1 -1
- package/dist/meeting/index.d.ts +15 -5
- package/dist/meeting/index.js +678 -543
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/muteState.d.ts +2 -8
- package/dist/meeting/muteState.js +37 -25
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.d.ts +1 -0
- package/dist/meeting/request.js +10 -5
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/util.js +1 -0
- package/dist/meeting/util.js.map +1 -1
- package/dist/reconnection-manager/index.js +2 -1
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/roap/index.d.ts +10 -2
- package/dist/roap/index.js +15 -0
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js +1 -1
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/turnDiscovery.d.ts +64 -17
- package/dist/roap/turnDiscovery.js +307 -126
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/webinar/index.js +1 -1
- package/package.json +22 -22
- package/src/constants.ts +1 -1
- package/src/index.ts +1 -0
- package/src/interpretation/index.ts +2 -2
- package/src/locus-info/mediaSharesUtils.ts +16 -0
- package/src/media/index.ts +3 -1
- package/src/meeting/index.ts +199 -78
- package/src/meeting/muteState.ts +34 -20
- package/src/meeting/request.ts +11 -2
- package/src/meeting/util.ts +1 -0
- package/src/reconnection-manager/index.ts +1 -1
- package/src/roap/index.ts +25 -3
- package/src/roap/request.ts +1 -1
- package/src/roap/turnDiscovery.ts +244 -78
- package/test/integration/spec/journey.js +14 -14
- package/test/integration/spec/space-meeting.js +1 -1
- package/test/unit/spec/interpretation/index.ts +4 -1
- package/test/unit/spec/locus-info/index.js +28 -19
- package/test/unit/spec/locus-info/mediaSharesUtils.ts +9 -0
- package/test/unit/spec/locus-info/selfUtils.js +7 -12
- package/test/unit/spec/media/index.ts +89 -78
- package/test/unit/spec/meeting/index.js +329 -58
- package/test/unit/spec/meeting/muteState.js +219 -67
- package/test/unit/spec/meeting/request.js +3 -0
- package/test/unit/spec/meeting/utils.js +6 -1
- package/test/unit/spec/reconnection-manager/index.js +28 -0
- package/test/unit/spec/roap/index.ts +61 -6
- package/test/unit/spec/roap/turnDiscovery.ts +298 -16
- package/dist/member/member.types.d.ts +0 -11
- package/dist/member/member.types.js +0 -17
- package/dist/member/member.types.js.map +0 -1
- package/src/member/member.types.ts +0 -13
- /package/test/unit/spec/locus-info/{lib/selfConstant.js → selfConstant.js} +0 -0
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
_MEETING_,
|
|
25
25
|
} from '../../../../src/constants';
|
|
26
26
|
|
|
27
|
-
import {self, selfWithInactivity} from './
|
|
27
|
+
import {self, selfWithInactivity} from './selfConstant';
|
|
28
28
|
|
|
29
29
|
describe('plugin-meetings', () => {
|
|
30
30
|
describe('LocusInfo index', () => {
|
|
@@ -1385,7 +1385,7 @@ describe('plugin-meetings', () => {
|
|
|
1385
1385
|
function: 'updateMeetingInfo',
|
|
1386
1386
|
},
|
|
1387
1387
|
LOCUSINFO.EVENTS.MEETING_INFO_UPDATED,
|
|
1388
|
-
payload
|
|
1388
|
+
payload,
|
|
1389
1389
|
];
|
|
1390
1390
|
|
|
1391
1391
|
if (expected) {
|
|
@@ -1404,7 +1404,7 @@ describe('plugin-meetings', () => {
|
|
|
1404
1404
|
function: 'updateMeetingInfo',
|
|
1405
1405
|
},
|
|
1406
1406
|
LOCUSINFO.EVENTS.MEETING_INFO_UPDATED,
|
|
1407
|
-
payload
|
|
1407
|
+
payload,
|
|
1408
1408
|
];
|
|
1409
1409
|
|
|
1410
1410
|
if (expected) {
|
|
@@ -1426,8 +1426,7 @@ describe('plugin-meetings', () => {
|
|
|
1426
1426
|
*/
|
|
1427
1427
|
sinon.stub(locusInfo, 'emitScoped').callsFake(() => {
|
|
1428
1428
|
assert.deepEqual(mockMeeting, expectedMeeting);
|
|
1429
|
-
})
|
|
1430
|
-
|
|
1429
|
+
});
|
|
1431
1430
|
|
|
1432
1431
|
// set the info initially as locusInfo.info starts as undefined
|
|
1433
1432
|
expectedMeeting = {
|
|
@@ -1907,7 +1906,7 @@ describe('plugin-meetings', () => {
|
|
|
1907
1906
|
locusInfo.locusParser.workingCopy = {
|
|
1908
1907
|
syncUrl: 'current sync url',
|
|
1909
1908
|
};
|
|
1910
|
-
|
|
1909
|
+
|
|
1911
1910
|
locusInfo.applyLocusDeltaData(LOCUS_URL_CHANGED, fakeLocus, meeting);
|
|
1912
1911
|
assert.calledOnceWithExactly(meeting.meetingRequest.getLocusDTO, {url: 'current sync url'});
|
|
1913
1912
|
});
|
|
@@ -1970,8 +1969,12 @@ describe('plugin-meetings', () => {
|
|
|
1970
1969
|
}).then(() => {
|
|
1971
1970
|
assert.calledTwice(meeting.meetingRequest.getLocusDTO);
|
|
1972
1971
|
|
|
1973
|
-
assert.deepEqual(meeting.meetingRequest.getLocusDTO.getCalls()[0].args, [
|
|
1974
|
-
|
|
1972
|
+
assert.deepEqual(meeting.meetingRequest.getLocusDTO.getCalls()[0].args, [
|
|
1973
|
+
{url: 'deltaSyncUrl'},
|
|
1974
|
+
]);
|
|
1975
|
+
assert.deepEqual(meeting.meetingRequest.getLocusDTO.getCalls()[1].args, [
|
|
1976
|
+
{url: 'fullSyncUrl'},
|
|
1977
|
+
]);
|
|
1975
1978
|
|
|
1976
1979
|
assert.calledWith(sendBehavioralMetricStub, 'js_sdk_locus_delta_sync_failed', {
|
|
1977
1980
|
correlationId: meeting.correlationId,
|
|
@@ -1999,8 +2002,12 @@ describe('plugin-meetings', () => {
|
|
|
1999
2002
|
}).then(() => {
|
|
2000
2003
|
assert.calledTwice(meeting.meetingRequest.getLocusDTO);
|
|
2001
2004
|
|
|
2002
|
-
assert.deepEqual(meeting.meetingRequest.getLocusDTO.getCalls()[0].args, [
|
|
2003
|
-
|
|
2005
|
+
assert.deepEqual(meeting.meetingRequest.getLocusDTO.getCalls()[0].args, [
|
|
2006
|
+
{url: 'deltaSyncUrl'},
|
|
2007
|
+
]);
|
|
2008
|
+
assert.deepEqual(meeting.meetingRequest.getLocusDTO.getCalls()[1].args, [
|
|
2009
|
+
{url: 'fullSyncUrl'},
|
|
2010
|
+
]);
|
|
2004
2011
|
|
|
2005
2012
|
assert.calledWith(sendBehavioralMetricStub, 'js_sdk_locus_delta_sync_failed', {
|
|
2006
2013
|
correlationId: meeting.correlationId,
|
|
@@ -2084,7 +2091,7 @@ describe('plugin-meetings', () => {
|
|
|
2084
2091
|
|
|
2085
2092
|
locusInfo.clearMainSessionLocusCache = sinon.stub();
|
|
2086
2093
|
locusInfo.getTheLocusToUpdate(newLocus);
|
|
2087
|
-
assert.notCalled(locusInfo.clearMainSessionLocusCache)
|
|
2094
|
+
assert.notCalled(locusInfo.clearMainSessionLocusCache);
|
|
2088
2095
|
});
|
|
2089
2096
|
|
|
2090
2097
|
it('return the new locus if return to main session but no cache and do not clear main session cache', () => {
|
|
@@ -2106,7 +2113,7 @@ describe('plugin-meetings', () => {
|
|
|
2106
2113
|
|
|
2107
2114
|
locusInfo.clearMainSessionLocusCache = sinon.stub();
|
|
2108
2115
|
locusInfo.getTheLocusToUpdate(newLocus);
|
|
2109
|
-
assert.notCalled(locusInfo.clearMainSessionLocusCache)
|
|
2116
|
+
assert.notCalled(locusInfo.clearMainSessionLocusCache);
|
|
2110
2117
|
});
|
|
2111
2118
|
|
|
2112
2119
|
it('return the new locus if not return to main session and clear main session cache', () => {
|
|
@@ -2116,9 +2123,9 @@ describe('plugin-meetings', () => {
|
|
|
2116
2123
|
sessionType: 'MAIN',
|
|
2117
2124
|
},
|
|
2118
2125
|
},
|
|
2119
|
-
self: {removed: true}
|
|
2126
|
+
self: {removed: true},
|
|
2120
2127
|
};
|
|
2121
|
-
locusInfo.fullState = {state: 'ACTIVE'}
|
|
2128
|
+
locusInfo.fullState = {state: 'ACTIVE'};
|
|
2122
2129
|
locusInfo.controls = {
|
|
2123
2130
|
breakout: {
|
|
2124
2131
|
sessionType: 'MAIN',
|
|
@@ -2134,7 +2141,7 @@ describe('plugin-meetings', () => {
|
|
|
2134
2141
|
|
|
2135
2142
|
locusInfo.clearMainSessionLocusCache = sinon.stub();
|
|
2136
2143
|
const result = locusInfo.getTheLocusToUpdate(newLocus);
|
|
2137
|
-
assert.calledOnce(locusInfo.clearMainSessionLocusCache)
|
|
2144
|
+
assert.calledOnce(locusInfo.clearMainSessionLocusCache);
|
|
2138
2145
|
|
|
2139
2146
|
assert.deepEqual(result, newLocus);
|
|
2140
2147
|
});
|
|
@@ -2146,9 +2153,9 @@ describe('plugin-meetings', () => {
|
|
|
2146
2153
|
sessionType: 'MAIN',
|
|
2147
2154
|
},
|
|
2148
2155
|
},
|
|
2149
|
-
self: {removed: undefined}
|
|
2156
|
+
self: {removed: undefined},
|
|
2150
2157
|
};
|
|
2151
|
-
locusInfo.fullState = {state: 'ACTIVE'}
|
|
2158
|
+
locusInfo.fullState = {state: 'ACTIVE'};
|
|
2152
2159
|
locusInfo.controls = {
|
|
2153
2160
|
breakout: {
|
|
2154
2161
|
sessionType: 'MAIN',
|
|
@@ -2164,7 +2171,7 @@ describe('plugin-meetings', () => {
|
|
|
2164
2171
|
|
|
2165
2172
|
locusInfo.clearMainSessionLocusCache = sinon.stub();
|
|
2166
2173
|
locusInfo.getTheLocusToUpdate(newLocus);
|
|
2167
|
-
assert.notCalled(locusInfo.clearMainSessionLocusCache)
|
|
2174
|
+
assert.notCalled(locusInfo.clearMainSessionLocusCache);
|
|
2168
2175
|
});
|
|
2169
2176
|
});
|
|
2170
2177
|
|
|
@@ -2611,7 +2618,9 @@ describe('plugin-meetings', () => {
|
|
|
2611
2618
|
// send an out-of-order delta
|
|
2612
2619
|
locusInfo.handleLocusDelta(oooDelta, mockMeeting);
|
|
2613
2620
|
|
|
2614
|
-
assert.calledOnceWithExactly(sendBehavioralMetricStub, 'js_sdk_locus_delta_ooo', {
|
|
2621
|
+
assert.calledOnceWithExactly(sendBehavioralMetricStub, 'js_sdk_locus_delta_ooo', {
|
|
2622
|
+
stack: sinon.match.any,
|
|
2623
|
+
});
|
|
2615
2624
|
|
|
2616
2625
|
await clock.tickAsync(12499);
|
|
2617
2626
|
await testUtils.flushPromises();
|
|
@@ -20,6 +20,15 @@ describe('getContentUrl', () => {
|
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
+
describe('getContentResourceType', () => {
|
|
24
|
+
it('getContentResourceType return correct resourceType value', () => {
|
|
25
|
+
const stub = Sinon.stub(MediaSharesUtils, 'extractContent').returns({resourceType:'resourceType'});
|
|
26
|
+
const resourceType = MediaSharesUtils.getContentResourceType();
|
|
27
|
+
assert.equal(resourceType,'resourceType');
|
|
28
|
+
stub.restore();
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
23
32
|
describe('getContentBeneficiaryDeviceUrl', () => {
|
|
24
33
|
it('getContentBeneficiaryDeviceUrl return correct deviceUrl value', () => {
|
|
25
34
|
const mockContentBeneficiaryDeviceUrl = "https://wdm-a.wbx2.com/wdm/api/v1/devices/e9ffd8a1-1fae-42d1-afbe-013e951f93ab"
|
|
@@ -3,7 +3,7 @@ import Sinon from 'sinon';
|
|
|
3
3
|
import {cloneDeep} from 'lodash';
|
|
4
4
|
import SelfUtils from '@webex/plugin-meetings/src/locus-info/selfUtils';
|
|
5
5
|
|
|
6
|
-
import {self} from './
|
|
6
|
+
import {self} from './selfConstant';
|
|
7
7
|
|
|
8
8
|
describe('plugin-meetings', () => {
|
|
9
9
|
describe('selfUtils', () => {
|
|
@@ -150,8 +150,7 @@ describe('plugin-meetings', () => {
|
|
|
150
150
|
|
|
151
151
|
it('should return false if no breakouts in current', () => {
|
|
152
152
|
const current = {
|
|
153
|
-
breakoutSessions: {
|
|
154
|
-
},
|
|
153
|
+
breakoutSessions: {},
|
|
155
154
|
};
|
|
156
155
|
const previous = {
|
|
157
156
|
breakoutSessions: {
|
|
@@ -293,7 +292,7 @@ describe('plugin-meetings', () => {
|
|
|
293
292
|
const clonedSelf = cloneDeep(self);
|
|
294
293
|
|
|
295
294
|
clonedSelf.controls.audio.requestedToUnmute = true;
|
|
296
|
-
clonedSelf.controls.audio.lastModifiedRequestedToUnmute = '2023-06-16T18:25:04.369Z'
|
|
295
|
+
clonedSelf.controls.audio.lastModifiedRequestedToUnmute = '2023-06-16T18:25:04.369Z';
|
|
297
296
|
|
|
298
297
|
const {updates} = SelfUtils.getSelves(self, clonedSelf);
|
|
299
298
|
|
|
@@ -371,23 +370,18 @@ describe('plugin-meetings', () => {
|
|
|
371
370
|
const clonedSelf = cloneDeep(self);
|
|
372
371
|
|
|
373
372
|
it('get breakoutMoveId works', () => {
|
|
374
|
-
|
|
375
373
|
assert.deepEqual(SelfUtils.getReplacedBreakoutMoveId(self, deviceId), breakoutMoveId);
|
|
376
|
-
|
|
377
374
|
});
|
|
378
375
|
|
|
379
376
|
it('replaces is empty', () => {
|
|
380
|
-
|
|
381
377
|
clonedSelf.devices[0].replaces = undefined;
|
|
382
378
|
assert.deepEqual(SelfUtils.getReplacedBreakoutMoveId(clonedSelf, deviceId), null);
|
|
383
|
-
|
|
384
379
|
});
|
|
385
380
|
|
|
386
381
|
it('no self or self.devices is not array', () => {
|
|
387
|
-
|
|
388
382
|
assert.deepEqual(SelfUtils.getReplacedBreakoutMoveId(undefined, deviceId), null);
|
|
389
383
|
|
|
390
|
-
clonedSelf.devices =
|
|
384
|
+
clonedSelf.devices = {
|
|
391
385
|
url: 'https://wdm-a.wbx2.com/wdm/api/v1/devices/20eabde3-4254-48da-9a24',
|
|
392
386
|
deviceType: 'WEB',
|
|
393
387
|
mediaSessionsExternal: false,
|
|
@@ -395,10 +389,11 @@ describe('plugin-meetings', () => {
|
|
|
395
389
|
{
|
|
396
390
|
breakoutMoveId: 'e5caeb2c-ffcc-4e06-a08a-1122e7710398',
|
|
397
391
|
lastActive: '2023-05-04T07:14:32.068Z',
|
|
398
|
-
locusUrl:
|
|
392
|
+
locusUrl:
|
|
393
|
+
'https://locus-alpha-apdx.prod.meetapi.webex.com/locus/api/v1/loci/495061ca-7b3c-3b77-85ff-4e1bd58600d1',
|
|
399
394
|
replacedAt: '2023-05-04T07:16:04.905Z',
|
|
400
395
|
sessionId: 'be3147d4-c318-86d8-7611-8d24beaaca8d',
|
|
401
|
-
}
|
|
396
|
+
},
|
|
402
397
|
],
|
|
403
398
|
state: 'JOINED',
|
|
404
399
|
};
|
|
@@ -170,37 +170,15 @@ describe('createMediaConnection', () => {
|
|
|
170
170
|
);
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
Media.createMediaConnection(true, 'debug string', webex, 'meeting id', 'correlationId', {
|
|
179
|
-
mediaProperties: {
|
|
180
|
-
mediaDirection: {
|
|
181
|
-
sendAudio: true,
|
|
182
|
-
sendVideo: true,
|
|
183
|
-
sendShare: false,
|
|
184
|
-
receiveAudio: true,
|
|
185
|
-
receiveVideo: true,
|
|
186
|
-
receiveShare: true,
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
});
|
|
190
|
-
assert.calledOnce(multistreamRoapMediaConnectionConstructorStub);
|
|
191
|
-
assert.calledWith(
|
|
192
|
-
multistreamRoapMediaConnectionConstructorStub,
|
|
193
|
-
{
|
|
194
|
-
iceServers: [],
|
|
195
|
-
},
|
|
196
|
-
'meeting id'
|
|
197
|
-
);
|
|
198
|
-
|
|
199
|
-
it('does not pass bundlePolicy to MultistreamRoapMediaConnection if bundlePolicy is undefined', () => {
|
|
173
|
+
[
|
|
174
|
+
{testCase: 'turnServerInfo is undefined', turnServerInfo: undefined},
|
|
175
|
+
{testCase: 'turnServerInfo.url is empty string', turnServerInfo: {url: '', username: 'turn username', password: 'turn password'}},
|
|
176
|
+
].forEach(({testCase, turnServerInfo}) => {
|
|
177
|
+
it(`passes empty ICE servers array to MultistreamRoapMediaConnection if ${testCase} (multistream enabled)`, () => {
|
|
200
178
|
const multistreamRoapMediaConnectionConstructorStub = sinon
|
|
201
179
|
.stub(internalMediaModule, 'MultistreamRoapMediaConnection')
|
|
202
180
|
.returns(fakeRoapMediaConnection);
|
|
203
|
-
|
|
181
|
+
|
|
204
182
|
Media.createMediaConnection(true, 'debug string', webex, 'meeting id', 'correlationId', {
|
|
205
183
|
mediaProperties: {
|
|
206
184
|
mediaDirection: {
|
|
@@ -212,7 +190,7 @@ describe('createMediaConnection', () => {
|
|
|
212
190
|
receiveShare: true,
|
|
213
191
|
},
|
|
214
192
|
},
|
|
215
|
-
|
|
193
|
+
turnServerInfo,
|
|
216
194
|
});
|
|
217
195
|
assert.calledOnce(multistreamRoapMediaConnectionConstructorStub);
|
|
218
196
|
assert.calledWith(
|
|
@@ -221,75 +199,108 @@ describe('createMediaConnection', () => {
|
|
|
221
199
|
iceServers: [],
|
|
222
200
|
},
|
|
223
201
|
'meeting id'
|
|
224
|
-
|
|
202
|
+
);
|
|
225
203
|
});
|
|
226
204
|
});
|
|
227
|
-
|
|
228
|
-
it('
|
|
229
|
-
const
|
|
230
|
-
.stub(internalMediaModule, '
|
|
205
|
+
|
|
206
|
+
it('does not pass bundlePolicy to MultistreamRoapMediaConnection if bundlePolicy is undefined', () => {
|
|
207
|
+
const multistreamRoapMediaConnectionConstructorStub = sinon
|
|
208
|
+
.stub(internalMediaModule, 'MultistreamRoapMediaConnection')
|
|
231
209
|
.returns(fakeRoapMediaConnection);
|
|
232
210
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
const ENABLE_EXTMAP = false;
|
|
236
|
-
const ENABLE_RTX = true;
|
|
237
|
-
|
|
238
|
-
Media.createMediaConnection(false, 'some debug id', webex, 'meeting id', 'correlationId', {
|
|
211
|
+
Media.createMediaConnection(true, 'debug string', webex, 'meeting id', 'correlationId', {
|
|
239
212
|
mediaProperties: {
|
|
240
213
|
mediaDirection: {
|
|
241
214
|
sendAudio: true,
|
|
242
215
|
sendVideo: true,
|
|
243
|
-
sendShare:
|
|
216
|
+
sendShare: false,
|
|
244
217
|
receiveAudio: true,
|
|
245
218
|
receiveVideo: true,
|
|
246
219
|
receiveShare: true,
|
|
247
220
|
},
|
|
248
|
-
audioStream: fakeAudioStream,
|
|
249
|
-
videoStream: null,
|
|
250
|
-
shareVideoStream: fakeShareVideoStream,
|
|
251
|
-
shareAudioStream: fakeShareAudioStream,
|
|
252
221
|
},
|
|
253
|
-
|
|
254
|
-
enableRtx: ENABLE_RTX,
|
|
255
|
-
enableExtmap: ENABLE_EXTMAP,
|
|
256
|
-
turnServerInfo: undefined,
|
|
222
|
+
bundlePolicy: undefined,
|
|
257
223
|
});
|
|
258
|
-
assert.calledOnce(
|
|
224
|
+
assert.calledOnce(multistreamRoapMediaConnectionConstructorStub);
|
|
259
225
|
assert.calledWith(
|
|
260
|
-
|
|
226
|
+
multistreamRoapMediaConnectionConstructorStub,
|
|
261
227
|
{
|
|
262
228
|
iceServers: [],
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
229
|
+
},
|
|
230
|
+
'meeting id'
|
|
231
|
+
);
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
[
|
|
235
|
+
{testCase: 'turnServerInfo is undefined', turnServerInfo: undefined},
|
|
236
|
+
{testCase: 'turnServerInfo.url is empty string', turnServerInfo: {url: '', username: 'turn username', password: 'turn password'}},
|
|
237
|
+
].forEach(({testCase, turnServerInfo}) => {
|
|
238
|
+
it(`passes empty ICE servers array to RoapMediaConnection if ${testCase} (multistream disabled)`, () => {
|
|
239
|
+
const roapMediaConnectionConstructorStub = sinon
|
|
240
|
+
.stub(internalMediaModule, 'RoapMediaConnection')
|
|
241
|
+
.returns(fakeRoapMediaConnection);
|
|
242
|
+
|
|
243
|
+
StaticConfig.set({bandwidth: {audio: 123, video: 456, startBitrate: 999}});
|
|
244
|
+
|
|
245
|
+
const ENABLE_EXTMAP = false;
|
|
246
|
+
const ENABLE_RTX = true;
|
|
247
|
+
|
|
248
|
+
Media.createMediaConnection(false, 'some debug id', webex, 'meeting id', 'correlationId', {
|
|
249
|
+
mediaProperties: {
|
|
250
|
+
mediaDirection: {
|
|
251
|
+
sendAudio: true,
|
|
252
|
+
sendVideo: true,
|
|
253
|
+
sendShare: true,
|
|
254
|
+
receiveAudio: true,
|
|
255
|
+
receiveVideo: true,
|
|
256
|
+
receiveShare: true,
|
|
271
257
|
},
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
258
|
+
audioStream: fakeAudioStream,
|
|
259
|
+
videoStream: null,
|
|
260
|
+
shareVideoStream: fakeShareVideoStream,
|
|
261
|
+
shareAudioStream: fakeShareAudioStream,
|
|
276
262
|
},
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
263
|
+
remoteQualityLevel: 'HIGH',
|
|
264
|
+
enableRtx: ENABLE_RTX,
|
|
265
|
+
enableExtmap: ENABLE_EXTMAP,
|
|
266
|
+
turnServerInfo,
|
|
267
|
+
});
|
|
268
|
+
assert.calledOnce(roapMediaConnectionConstructorStub);
|
|
269
|
+
assert.calledWith(
|
|
270
|
+
roapMediaConnectionConstructorStub,
|
|
271
|
+
{
|
|
272
|
+
iceServers: [],
|
|
273
|
+
skipInactiveTransceivers: false,
|
|
274
|
+
requireH264: true,
|
|
275
|
+
sdpMunging: {
|
|
276
|
+
convertPort9to0: false,
|
|
277
|
+
addContentSlides: true,
|
|
278
|
+
bandwidthLimits: {
|
|
279
|
+
audio: 123,
|
|
280
|
+
video: 456,
|
|
281
|
+
},
|
|
282
|
+
startBitrate: 999,
|
|
283
|
+
periodicKeyframes: 20,
|
|
284
|
+
disableExtmap: !ENABLE_EXTMAP,
|
|
285
|
+
disableRtx: !ENABLE_RTX,
|
|
286
|
+
},
|
|
284
287
|
},
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
288
|
+
{
|
|
289
|
+
localTracks: {
|
|
290
|
+
audio: fakeTrack,
|
|
291
|
+
video: undefined,
|
|
292
|
+
screenShareVideo: fakeTrack,
|
|
293
|
+
screenShareAudio: fakeTrack,
|
|
294
|
+
},
|
|
295
|
+
direction: {
|
|
296
|
+
audio: 'sendrecv',
|
|
297
|
+
video: 'sendrecv',
|
|
298
|
+
screenShareVideo: 'sendrecv',
|
|
299
|
+
},
|
|
300
|
+
remoteQualityLevel: 'HIGH',
|
|
289
301
|
},
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
);
|
|
302
|
+
'some debug id'
|
|
303
|
+
);
|
|
304
|
+
});
|
|
294
305
|
});
|
|
295
306
|
});
|