@webex/plugin-meetings 3.8.1-next.8 → 3.8.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/README.md +13 -26
- package/dist/annotation/annotation.types.d.ts +42 -0
- package/dist/annotation/constants.d.ts +31 -0
- package/dist/annotation/index.d.ts +117 -0
- package/dist/breakouts/breakout.d.ts +8 -0
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/collection.d.ts +5 -0
- package/dist/breakouts/edit-lock-error.d.ts +15 -0
- package/dist/breakouts/events.d.ts +8 -0
- package/dist/breakouts/index.d.ts +5 -0
- package/dist/breakouts/index.js +1 -1
- package/dist/breakouts/request.d.ts +22 -0
- package/dist/breakouts/utils.d.ts +15 -0
- package/dist/common/browser-detection.d.ts +9 -0
- package/dist/common/collection.d.ts +48 -0
- package/dist/common/config.d.ts +2 -0
- package/dist/common/errors/captcha-error.d.ts +15 -0
- package/dist/common/errors/intent-to-join.d.ts +16 -0
- package/dist/common/errors/join-meeting.d.ts +17 -0
- package/dist/common/errors/media.d.ts +15 -0
- package/dist/common/errors/no-meeting-info.d.ts +14 -0
- package/dist/common/errors/parameter.d.ts +15 -0
- package/dist/common/errors/password-error.d.ts +15 -0
- package/dist/common/errors/permission.d.ts +14 -0
- package/dist/common/errors/reclaim-host-role-error.d.ts +60 -0
- package/dist/common/errors/reclaim-host-role-error.js +158 -0
- package/dist/common/errors/reclaim-host-role-error.js.map +1 -0
- package/dist/common/errors/reclaim-host-role-errors.d.ts +60 -0
- package/dist/common/errors/reconnection-in-progress.d.ts +9 -0
- package/dist/common/errors/reconnection-in-progress.js +35 -0
- package/dist/common/errors/reconnection-in-progress.js.map +1 -0
- package/dist/common/errors/reconnection.d.ts +15 -0
- package/dist/common/errors/stats.d.ts +15 -0
- package/dist/common/errors/webex-errors.d.ts +81 -0
- package/dist/common/errors/webex-meetings-error.d.ts +20 -0
- package/dist/common/events/events-scope.d.ts +17 -0
- package/dist/common/events/events.d.ts +12 -0
- package/dist/common/events/trigger-proxy.d.ts +2 -0
- package/dist/common/events/util.d.ts +2 -0
- package/dist/common/logs/logger-config.d.ts +2 -0
- package/dist/common/logs/logger-proxy.d.ts +2 -0
- package/dist/common/logs/request.d.ts +34 -0
- package/dist/common/queue.d.ts +32 -0
- package/dist/config.d.ts +73 -0
- package/dist/constants.d.ts +952 -0
- package/dist/constants.js +1 -8
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.d.ts +4 -0
- package/dist/controls-options-manager/enums.d.ts +5 -0
- package/dist/controls-options-manager/enums.js +0 -1
- package/dist/controls-options-manager/enums.js.map +1 -1
- package/dist/controls-options-manager/index.d.ts +120 -0
- package/dist/controls-options-manager/types.d.ts +43 -0
- package/dist/controls-options-manager/types.js.map +1 -1
- package/dist/controls-options-manager/util.d.ts +7 -0
- package/dist/controls-options-manager/util.js +0 -26
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/interceptors/index.d.ts +2 -0
- package/dist/interceptors/locusRetry.d.ts +27 -0
- package/dist/interpretation/collection.d.ts +5 -0
- package/dist/interpretation/index.d.ts +5 -0
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.d.ts +5 -0
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/controlsUtils.d.ts +2 -0
- package/dist/locus-info/controlsUtils.js +3 -11
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.d.ts +2 -0
- package/dist/locus-info/fullState.d.ts +2 -0
- package/dist/locus-info/hostUtils.d.ts +2 -0
- package/dist/locus-info/index.d.ts +269 -0
- package/dist/locus-info/index.js +0 -30
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.d.ts +2 -0
- package/dist/locus-info/mediaSharesUtils.d.ts +2 -0
- package/dist/locus-info/parser.d.ts +212 -0
- package/dist/locus-info/selfUtils.d.ts +2 -0
- package/dist/media/index.d.ts +32 -0
- package/dist/media/properties.d.ts +108 -0
- package/dist/media/util.d.ts +2 -0
- package/dist/mediaQualityMetrics/config.d.ts +233 -0
- package/dist/mediaQualityMetrics/config.js +513 -0
- package/dist/mediaQualityMetrics/config.js.map +1 -0
- package/dist/meeting/brbState.js +2 -3
- package/dist/meeting/brbState.js.map +1 -1
- package/dist/meeting/effectsState.d.ts +42 -0
- package/dist/meeting/effectsState.js +260 -0
- package/dist/meeting/effectsState.js.map +1 -0
- package/dist/meeting/in-meeting-actions.d.ts +79 -0
- package/dist/meeting/in-meeting-actions.js +1 -5
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.d.ts +1622 -0
- package/dist/meeting/index.js +66 -88
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.d.ts +74 -0
- package/dist/meeting/muteState.d.ts +116 -0
- package/dist/meeting/request.d.ts +257 -0
- package/dist/meeting/request.type.d.ts +11 -0
- package/dist/meeting/state.d.ts +9 -0
- package/dist/meeting/util.d.ts +2 -0
- package/dist/meeting/voicea-meeting.d.ts +16 -0
- package/dist/meeting-info/collection.d.ts +20 -0
- package/dist/meeting-info/index.d.ts +57 -0
- package/dist/meeting-info/meeting-info-v2.d.ts +93 -0
- package/dist/meeting-info/request.d.ts +22 -0
- package/dist/meeting-info/util.d.ts +2 -0
- package/dist/meeting-info/utilv2.d.ts +2 -0
- package/dist/meetings/collection.d.ts +23 -0
- package/dist/meetings/index.d.ts +296 -0
- package/dist/meetings/meetings.types.d.ts +4 -0
- package/dist/meetings/request.d.ts +27 -0
- package/dist/meetings/util.d.ts +18 -0
- package/dist/member/index.d.ts +148 -0
- package/dist/member/member.types.d.ts +11 -0
- package/dist/member/member.types.js +18 -0
- package/dist/member/member.types.js.map +1 -0
- package/dist/member/types.d.ts +32 -0
- package/dist/member/util.d.ts +2 -0
- package/dist/members/collection.d.ts +24 -0
- package/dist/members/index.d.ts +308 -0
- package/dist/members/request.d.ts +58 -0
- package/dist/members/types.d.ts +25 -0
- package/dist/members/util.d.ts +2 -0
- package/dist/metrics/config.d.ts +169 -0
- package/dist/metrics/config.js +289 -0
- package/dist/metrics/config.js.map +1 -0
- package/dist/metrics/constants.d.ts +59 -0
- package/dist/metrics/constants.js +0 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.d.ts +152 -0
- package/dist/multistream/mediaRequestManager.d.ts +119 -0
- package/dist/multistream/receiveSlot.d.ts +68 -0
- package/dist/multistream/receiveSlotManager.d.ts +56 -0
- package/dist/multistream/remoteMedia.d.ts +72 -0
- package/dist/multistream/remoteMediaGroup.d.ts +49 -0
- package/dist/multistream/remoteMediaManager.d.ts +300 -0
- package/dist/multistream/sendSlotManager.d.ts +69 -0
- package/dist/networkQualityMonitor/index.d.ts +70 -0
- package/dist/networkQualityMonitor/index.js +226 -0
- package/dist/networkQualityMonitor/index.js.map +1 -0
- package/dist/peer-connection-manager/index.d.ts +6 -0
- package/dist/peer-connection-manager/index.js +671 -0
- package/dist/peer-connection-manager/index.js.map +1 -0
- package/dist/peer-connection-manager/util.d.ts +6 -0
- package/dist/peer-connection-manager/util.js +110 -0
- package/dist/peer-connection-manager/util.js.map +1 -0
- package/dist/personal-meeting-room/index.d.ts +47 -0
- package/dist/personal-meeting-room/request.d.ts +14 -0
- package/dist/personal-meeting-room/util.d.ts +2 -0
- package/dist/reachability/clusterReachability.d.ts +109 -0
- package/dist/reachability/index.d.ts +139 -0
- package/dist/reachability/index.js +10 -5
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.d.ts +35 -0
- package/dist/reachability/util.d.ts +8 -0
- package/dist/reactions/constants.d.ts +3 -0
- package/dist/reactions/reactions.d.ts +4 -0
- package/dist/reactions/reactions.type.d.ts +32 -0
- package/dist/reconnection-manager/index.d.ts +112 -0
- package/dist/recording-controller/enums.d.ts +7 -0
- package/dist/recording-controller/index.d.ts +193 -0
- package/dist/recording-controller/util.d.ts +13 -0
- package/dist/roap/collection.d.ts +10 -0
- package/dist/roap/collection.js +63 -0
- package/dist/roap/collection.js.map +1 -0
- package/dist/roap/handler.d.ts +47 -0
- package/dist/roap/handler.js +279 -0
- package/dist/roap/handler.js.map +1 -0
- package/dist/roap/index.d.ts +116 -0
- package/dist/roap/request.d.ts +35 -0
- package/dist/roap/state.d.ts +9 -0
- package/dist/roap/state.js +127 -0
- package/dist/roap/state.js.map +1 -0
- package/dist/roap/turnDiscovery.d.ts +81 -0
- package/dist/roap/util.d.ts +2 -0
- package/dist/roap/util.js +76 -0
- package/dist/roap/util.js.map +1 -0
- package/dist/rtcMetrics/constants.d.ts +4 -0
- package/dist/rtcMetrics/constants.js +11 -0
- package/dist/rtcMetrics/constants.js.map +1 -0
- package/dist/rtcMetrics/index.d.ts +61 -0
- package/dist/rtcMetrics/index.js +197 -0
- package/dist/rtcMetrics/index.js.map +1 -0
- package/dist/statsAnalyzer/global.d.ts +118 -0
- package/dist/statsAnalyzer/global.js +127 -0
- package/dist/statsAnalyzer/global.js.map +1 -0
- package/dist/statsAnalyzer/index.d.ts +193 -0
- package/dist/statsAnalyzer/index.js +1019 -0
- package/dist/statsAnalyzer/index.js.map +1 -0
- package/dist/statsAnalyzer/mqaUtil.d.ts +22 -0
- package/dist/statsAnalyzer/mqaUtil.js +181 -0
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -0
- package/dist/transcription/index.d.ts +64 -0
- package/dist/types/common/errors/reconnection-in-progress.d.ts +9 -0
- package/dist/types/constants.d.ts +0 -6
- package/dist/types/controls-options-manager/enums.d.ts +1 -2
- package/dist/types/controls-options-manager/types.d.ts +1 -4
- package/dist/types/mediaQualityMetrics/config.d.ts +241 -0
- package/dist/types/meeting/in-meeting-actions.d.ts +0 -4
- package/dist/types/metrics/constants.d.ts +0 -1
- package/dist/types/networkQualityMonitor/index.d.ts +70 -0
- package/dist/types/reachability/index.d.ts +2 -2
- package/dist/types/rtcMetrics/constants.d.ts +4 -0
- package/dist/types/rtcMetrics/index.d.ts +71 -0
- package/dist/types/statsAnalyzer/global.d.ts +36 -0
- package/dist/types/statsAnalyzer/index.d.ts +217 -0
- package/dist/types/statsAnalyzer/mqaUtil.d.ts +48 -0
- package/dist/webinar/collection.d.ts +16 -0
- package/dist/webinar/index.d.ts +5 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +22 -22
- package/src/constants.ts +0 -9
- package/src/controls-options-manager/enums.ts +0 -1
- package/src/controls-options-manager/types.ts +1 -6
- package/src/controls-options-manager/util.ts +0 -31
- package/src/locus-info/controlsUtils.ts +0 -15
- package/src/locus-info/index.ts +0 -41
- package/src/meeting/brbState.ts +2 -4
- package/src/meeting/in-meeting-actions.ts +0 -8
- package/src/meeting/index.ts +29 -62
- package/src/metrics/constants.ts +0 -1
- package/src/reachability/index.ts +13 -5
- package/test/unit/spec/controls-options-manager/util.js +0 -58
- package/test/unit/spec/locus-info/controlsUtils.js +0 -52
- package/test/unit/spec/locus-info/index.js +0 -42
- package/test/unit/spec/meeting/brbState.ts +2 -21
- package/test/unit/spec/meeting/in-meeting-actions.ts +0 -4
- package/test/unit/spec/meeting/index.js +27 -130
- package/test/unit/spec/reachability/index.ts +6 -2
@@ -1223,46 +1223,6 @@ describe('plugin-meetings', () => {
|
|
1223
1223
|
});
|
1224
1224
|
});
|
1225
1225
|
|
1226
|
-
describe('#update spoken language', () => {
|
1227
|
-
beforeEach(() => {
|
1228
|
-
webex.internal.voicea.onSpokenLanguageUpdate = sinon.stub();
|
1229
|
-
meeting.transcription = {languageOptions: {currentSpokenLanguage: 'en'}};
|
1230
|
-
});
|
1231
|
-
afterEach(() => {
|
1232
|
-
// Restore the original methods after each test
|
1233
|
-
sinon.restore();
|
1234
|
-
});
|
1235
|
-
it('should call voicea.onSpokenLanguageUpdate when joined', async () => {
|
1236
|
-
|
1237
|
-
meeting.joinedWith = {state: 'JOINED'};
|
1238
|
-
await meeting.locusInfo.emitScoped(
|
1239
|
-
{function: 'test', file: 'test'},
|
1240
|
-
LOCUSINFO.EVENTS.CONTROLS_MEETING_TRANSCRIPTION_SPOKEN_LANGUAGE_UPDATED,
|
1241
|
-
{spokenLanguage: 'fr'},
|
1242
|
-
);
|
1243
|
-
assert.calledWith(webex.internal.voicea.onSpokenLanguageUpdate, 'fr');
|
1244
|
-
assert.equal(meeting.transcription.languageOptions.currentSpokenLanguage, 'fr');
|
1245
|
-
assert.calledWith(
|
1246
|
-
TriggerProxy.trigger,
|
1247
|
-
meeting,
|
1248
|
-
{file: 'meeting/index', function: 'setupLocusControlsListener'},
|
1249
|
-
EVENT_TRIGGERS.MEETING_TRANSCRIPTION_SPOKEN_LANGUAGE_UPDATED
|
1250
|
-
);
|
1251
|
-
});
|
1252
|
-
|
1253
|
-
it('should also call voicea.onSpokenLanguageUpdate when not joined', async () => {
|
1254
|
-
|
1255
|
-
meeting.joinedWith = {state: 'NOT_JOINED'};
|
1256
|
-
await meeting.locusInfo.emitScoped(
|
1257
|
-
{function: 'test', file: 'test'},
|
1258
|
-
LOCUSINFO.EVENTS.CONTROLS_MEETING_TRANSCRIPTION_SPOKEN_LANGUAGE_UPDATED,
|
1259
|
-
{spokenLanguage: 'de'},
|
1260
|
-
);
|
1261
|
-
assert.calledWith(webex.internal.voicea.onSpokenLanguageUpdate, 'de');
|
1262
|
-
assert.equal(meeting.transcription.languageOptions.currentSpokenLanguage, 'de');
|
1263
|
-
});
|
1264
|
-
});
|
1265
|
-
|
1266
1226
|
describe('#startTranscription', () => {
|
1267
1227
|
beforeEach(() => {
|
1268
1228
|
webex.internal.voicea.on = sinon.stub();
|
@@ -2227,9 +2187,8 @@ describe('plugin-meetings', () => {
|
|
2227
2187
|
someReachabilityMetric1: 'some value1',
|
2228
2188
|
someReachabilityMetric2: 'some value2',
|
2229
2189
|
selectedCandidatePairChanges: 2,
|
2230
|
-
|
2231
|
-
|
2232
|
-
selected_subnet: null,
|
2190
|
+
isSubnetReachable: null,
|
2191
|
+
selectedCluster: null,
|
2233
2192
|
numTransports: 1,
|
2234
2193
|
iceCandidatesCount: 0,
|
2235
2194
|
}
|
@@ -2276,9 +2235,8 @@ describe('plugin-meetings', () => {
|
|
2276
2235
|
signalingState: 'unknown',
|
2277
2236
|
connectionState: 'unknown',
|
2278
2237
|
iceConnectionState: 'unknown',
|
2279
|
-
|
2280
|
-
|
2281
|
-
selected_subnet: null,
|
2238
|
+
isSubnetReachable: null,
|
2239
|
+
selectedCluster: null,
|
2282
2240
|
})
|
2283
2241
|
);
|
2284
2242
|
|
@@ -2344,9 +2302,8 @@ describe('plugin-meetings', () => {
|
|
2344
2302
|
selectedCandidatePairChanges: 2,
|
2345
2303
|
numTransports: 1,
|
2346
2304
|
iceCandidatesCount: 0,
|
2347
|
-
|
2348
|
-
|
2349
|
-
selected_subnet: null,
|
2305
|
+
isSubnetReachable: null,
|
2306
|
+
selectedCluster: null,
|
2350
2307
|
}
|
2351
2308
|
);
|
2352
2309
|
});
|
@@ -2404,9 +2361,8 @@ describe('plugin-meetings', () => {
|
|
2404
2361
|
signalingState: 'have-local-offer',
|
2405
2362
|
connectionState: 'connecting',
|
2406
2363
|
iceConnectionState: 'checking',
|
2407
|
-
|
2408
|
-
|
2409
|
-
selected_subnet: null,
|
2364
|
+
isSubnetReachable: null,
|
2365
|
+
selectedCluster: null,
|
2410
2366
|
})
|
2411
2367
|
);
|
2412
2368
|
|
@@ -2464,9 +2420,8 @@ describe('plugin-meetings', () => {
|
|
2464
2420
|
signalingState: 'have-local-offer',
|
2465
2421
|
connectionState: 'connecting',
|
2466
2422
|
iceConnectionState: 'checking',
|
2467
|
-
|
2468
|
-
|
2469
|
-
selected_subnet: null,
|
2423
|
+
isSubnetReachable: null,
|
2424
|
+
selectedCluster: null,
|
2470
2425
|
})
|
2471
2426
|
);
|
2472
2427
|
|
@@ -2988,9 +2943,8 @@ describe('plugin-meetings', () => {
|
|
2988
2943
|
selectedCandidatePairChanges: 2,
|
2989
2944
|
numTransports: 1,
|
2990
2945
|
iceCandidatesCount: 0,
|
2991
|
-
|
2992
|
-
|
2993
|
-
selected_subnet: null,
|
2946
|
+
isSubnetReachable: null,
|
2947
|
+
selectedCluster: null,
|
2994
2948
|
},
|
2995
2949
|
]);
|
2996
2950
|
|
@@ -3197,9 +3151,8 @@ describe('plugin-meetings', () => {
|
|
3197
3151
|
retriedWithTurnServer: true,
|
3198
3152
|
isJoinWithMediaRetry: false,
|
3199
3153
|
iceCandidatesCount: 0,
|
3200
|
-
|
3201
|
-
|
3202
|
-
selected_subnet: null,
|
3154
|
+
isSubnetReachable: null,
|
3155
|
+
selectedCluster: null,
|
3203
3156
|
},
|
3204
3157
|
]);
|
3205
3158
|
meeting.roap.doTurnDiscovery;
|
@@ -3362,9 +3315,8 @@ describe('plugin-meetings', () => {
|
|
3362
3315
|
iceCandidatesCount: 3,
|
3363
3316
|
'701_error': 3,
|
3364
3317
|
'701_turn_host_lookup_received_error': 1,
|
3365
|
-
|
3366
|
-
|
3367
|
-
selected_subnet: null,
|
3318
|
+
isSubnetReachable: null,
|
3319
|
+
selectedCluster: 'some.cluster',
|
3368
3320
|
}
|
3369
3321
|
);
|
3370
3322
|
|
@@ -3427,9 +3379,8 @@ describe('plugin-meetings', () => {
|
|
3427
3379
|
iceConnectionState: 'unknown',
|
3428
3380
|
selectedCandidatePairChanges: 2,
|
3429
3381
|
numTransports: 1,
|
3430
|
-
|
3431
|
-
|
3432
|
-
selected_subnet: null,
|
3382
|
+
isSubnetReachable: null,
|
3383
|
+
selectedCluster: null,
|
3433
3384
|
iceCandidatesCount: 0,
|
3434
3385
|
}
|
3435
3386
|
);
|
@@ -3491,9 +3442,8 @@ describe('plugin-meetings', () => {
|
|
3491
3442
|
numTransports: 1,
|
3492
3443
|
'701_error': 2,
|
3493
3444
|
'701_turn_host_lookup_received_error': 1,
|
3494
|
-
|
3495
|
-
|
3496
|
-
selected_subnet: null,
|
3445
|
+
isSubnetReachable: null,
|
3446
|
+
selectedCluster: null,
|
3497
3447
|
iceCandidatesCount: 0,
|
3498
3448
|
}
|
3499
3449
|
);
|
@@ -3501,7 +3451,7 @@ describe('plugin-meetings', () => {
|
|
3501
3451
|
assert.isOk(errorThrown);
|
3502
3452
|
});
|
3503
3453
|
|
3504
|
-
it('should send
|
3454
|
+
it('should send valid isSubnetReachability if media connection success', async () => {
|
3505
3455
|
meeting.roap.doTurnDiscovery = sinon.stub().returns({
|
3506
3456
|
turnServerInfo: undefined,
|
3507
3457
|
turnDiscoverySkippedReason: undefined,
|
@@ -3515,12 +3465,6 @@ describe('plugin-meetings', () => {
|
|
3515
3465
|
stopReachability: sinon.stub(),
|
3516
3466
|
isSubnetReachable: sinon.stub().returns(false),
|
3517
3467
|
};
|
3518
|
-
meeting.mediaServerIp = '1.2.3.4';
|
3519
|
-
meeting.mediaConnections = [
|
3520
|
-
{
|
3521
|
-
mediaAgentCluster: 'some.cluster',
|
3522
|
-
}
|
3523
|
-
]
|
3524
3468
|
|
3525
3469
|
const forceRtcMetricsSend = sinon.stub().resolves();
|
3526
3470
|
const closeMediaConnectionStub = sinon.stub();
|
@@ -3548,13 +3492,12 @@ describe('plugin-meetings', () => {
|
|
3548
3492
|
isJoinWithMediaRetry: false,
|
3549
3493
|
iceCandidatesCount: 0,
|
3550
3494
|
reachability_public_udp_success: 5,
|
3551
|
-
|
3552
|
-
|
3553
|
-
selected_subnet: '1.X.X.X',
|
3495
|
+
isSubnetReachable: false,
|
3496
|
+
selectedCluster: null,
|
3554
3497
|
});
|
3555
3498
|
});
|
3556
3499
|
|
3557
|
-
it('should send
|
3500
|
+
it('should send valid isSubnetReachability if media connection fails', async () => {
|
3558
3501
|
let errorThrown = undefined;
|
3559
3502
|
|
3560
3503
|
meeting.roap.doTurnDiscovery = sinon.stub().returns({
|
@@ -3570,12 +3513,6 @@ describe('plugin-meetings', () => {
|
|
3570
3513
|
stopReachability: sinon.stub(),
|
3571
3514
|
isSubnetReachable: sinon.stub().returns(true),
|
3572
3515
|
};
|
3573
|
-
meeting.mediaServerIp = '1.2.3.4';
|
3574
|
-
meeting.mediaConnections = [
|
3575
|
-
{
|
3576
|
-
mediaAgentCluster: 'some.cluster',
|
3577
|
-
}
|
3578
|
-
]
|
3579
3516
|
|
3580
3517
|
const forceRtcMetricsSend = sinon.stub().resolves();
|
3581
3518
|
const closeMediaConnectionStub = sinon.stub();
|
@@ -3617,9 +3554,8 @@ describe('plugin-meetings', () => {
|
|
3617
3554
|
selectedCandidatePairChanges: 2,
|
3618
3555
|
numTransports: 1,
|
3619
3556
|
reachability_public_udp_success: 5,
|
3620
|
-
|
3621
|
-
|
3622
|
-
selected_subnet: '1.X.X.X',
|
3557
|
+
isSubnetReachable: true,
|
3558
|
+
selectedCluster: null,
|
3623
3559
|
iceCandidatesCount: 0,
|
3624
3560
|
}
|
3625
3561
|
);
|
@@ -4216,7 +4152,7 @@ describe('plugin-meetings', () => {
|
|
4216
4152
|
meeting.deviceUrl = 'device url';
|
4217
4153
|
meeting.selfId = 'self id';
|
4218
4154
|
meeting.brbState = createBrbState(meeting, false);
|
4219
|
-
sinon.stub(
|
4155
|
+
meeting.brbState.enable = sinon.stub().resolves();
|
4220
4156
|
});
|
4221
4157
|
|
4222
4158
|
afterEach(() => {
|
@@ -4280,19 +4216,6 @@ describe('plugin-meetings', () => {
|
|
4280
4216
|
|
4281
4217
|
assert.notCalled(meeting.audio.handleServerRemoteMuteUpdate);
|
4282
4218
|
});
|
4283
|
-
|
4284
|
-
it('should reject when brb enable fails', async () => {
|
4285
|
-
meeting.brbState.enable.restore();
|
4286
|
-
|
4287
|
-
const error = new Error();
|
4288
|
-
meeting.meetingRequest.setBrb = sinon.stub().rejects(error);
|
4289
|
-
|
4290
|
-
await expect(
|
4291
|
-
meeting.beRightBack(true)
|
4292
|
-
).to.be.rejectedWith(error);
|
4293
|
-
|
4294
|
-
assert.isFalse(meeting.brbState.state.syncToServerInProgress);
|
4295
|
-
});
|
4296
4219
|
});
|
4297
4220
|
});
|
4298
4221
|
|
@@ -10088,24 +10011,6 @@ describe('plugin-meetings', () => {
|
|
10088
10011
|
);
|
10089
10012
|
});
|
10090
10013
|
|
10091
|
-
it('listens to CONTROLS_POLLING_QA_CHANGED', async () => {
|
10092
|
-
const state = {example: 'value'};
|
10093
|
-
|
10094
|
-
await meeting.locusInfo.emitScoped(
|
10095
|
-
{function: 'test', file: 'test'},
|
10096
|
-
LOCUSINFO.EVENTS.CONTROLS_POLLING_QA_CHANGED,
|
10097
|
-
{state}
|
10098
|
-
);
|
10099
|
-
|
10100
|
-
assert.calledWith(
|
10101
|
-
TriggerProxy.trigger,
|
10102
|
-
meeting,
|
10103
|
-
{file: 'meeting/index', function: 'setupLocusControlsListener'},
|
10104
|
-
EVENT_TRIGGERS.MEETING_CONTROLS_POLLING_QA_UPDATED,
|
10105
|
-
{state}
|
10106
|
-
);
|
10107
|
-
});
|
10108
|
-
|
10109
10014
|
it('listens to the locus interpretation update event', () => {
|
10110
10015
|
const interpretation = {
|
10111
10016
|
siLanguages: [{languageCode: 20, languageName: 'en'}],
|
@@ -11698,14 +11603,6 @@ describe('plugin-meetings', () => {
|
|
11698
11603
|
requiredHints: [DISPLAY_HINTS.DISABLE_RDC_MEETING_OPTION],
|
11699
11604
|
displayHints: userDisplayHints,
|
11700
11605
|
});
|
11701
|
-
assert.calledWith(ControlsOptionsUtil.hasHints, {
|
11702
|
-
requiredHints: [DISPLAY_HINTS.ENABLE_ATTENDEE_START_POLLING_QA],
|
11703
|
-
displayHints: userDisplayHints,
|
11704
|
-
});
|
11705
|
-
assert.calledWith(ControlsOptionsUtil.hasHints, {
|
11706
|
-
requiredHints: [DISPLAY_HINTS.DISABLE_ATTENDEE_START_POLLING_QA],
|
11707
|
-
displayHints: userDisplayHints,
|
11708
|
-
});
|
11709
11606
|
|
11710
11607
|
assert.calledWith(
|
11711
11608
|
TriggerProxy.trigger,
|
@@ -2764,10 +2764,14 @@ describe('isSubnetReachable', () => {
|
|
2764
2764
|
});
|
2765
2765
|
|
2766
2766
|
it('returns true if the subnet is reachable', () => {
|
2767
|
-
assert(reachability.isSubnetReachable('1'));
|
2767
|
+
assert(reachability.isSubnetReachable('1.2.3.4'));
|
2768
2768
|
});
|
2769
2769
|
|
2770
2770
|
it(`returns false if the subnet is unreachable`, () => {
|
2771
|
-
assert(!reachability.isSubnetReachable('11'));
|
2771
|
+
assert(!reachability.isSubnetReachable('11.2.3.4'));
|
2772
|
+
});
|
2773
|
+
|
2774
|
+
it('returns null if the subnet is not provided', () => {
|
2775
|
+
assert.isNull(reachability.isSubnetReachable(undefined));
|
2772
2776
|
});
|
2773
2777
|
});
|