@webex/plugin-meetings 3.12.0-next.8 → 3.12.0-task-refactor.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/annotation/index.js +5 -14
- package/dist/annotation/index.js.map +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/config.js +2 -8
- package/dist/config.js.map +1 -1
- package/dist/constants.js +6 -29
- package/dist/constants.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +29 -1563
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/hashTree/types.js +3 -13
- package/dist/hashTree/types.js.map +1 -1
- package/dist/index.js +2 -11
- package/dist/index.js.map +1 -1
- package/dist/interceptors/index.js +0 -7
- package/dist/interceptors/index.js.map +1 -1
- package/dist/interceptors/locusRouteToken.js +5 -27
- package/dist/interceptors/locusRouteToken.js.map +1 -1
- package/dist/interpretation/index.js +2 -2
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/controlsUtils.js +3 -7
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +247 -642
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/selfUtils.js +0 -1
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/locus-info/types.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +1 -57
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/properties.js +2 -4
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +1 -7
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +1036 -1481
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/request.js +0 -50
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js.map +1 -1
- package/dist/meeting/util.js +3 -133
- package/dist/meeting/util.js.map +1 -1
- package/dist/meetings/index.js +59 -142
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/util.js +7 -11
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +0 -10
- package/dist/member/index.js.map +1 -1
- package/dist/member/util.js +0 -10
- package/dist/member/util.js.map +1 -1
- package/dist/metrics/constants.js +1 -7
- package/dist/metrics/constants.js.map +1 -1
- package/dist/multistream/mediaRequestManager.js +60 -9
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +0 -11
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +2 -116
- package/dist/multistream/sendSlotManager.js.map +1 -1
- package/dist/reachability/clusterReachability.js +18 -171
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +11 -21
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/reachabilityPeerConnection.js +1 -1
- package/dist/reachability/reachabilityPeerConnection.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.js +1 -0
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/types/common/browser-detection.d.ts +0 -1
- package/dist/types/common/events/events-scope.d.ts +0 -1
- package/dist/types/common/events/events.d.ts +0 -1
- package/dist/types/config.d.ts +0 -5
- package/dist/types/constants.d.ts +1 -24
- package/dist/types/hashTree/hashTreeParser.d.ts +11 -260
- package/dist/types/hashTree/types.d.ts +0 -20
- package/dist/types/index.d.ts +0 -1
- package/dist/types/interceptors/index.d.ts +1 -2
- package/dist/types/interceptors/locusRouteToken.d.ts +0 -2
- package/dist/types/locus-info/index.d.ts +47 -68
- package/dist/types/locus-info/types.d.ts +12 -28
- package/dist/types/media/MediaConnectionAwaiter.d.ts +1 -10
- package/dist/types/media/properties.d.ts +1 -2
- package/dist/types/meeting/in-meeting-actions.d.ts +0 -6
- package/dist/types/meeting/index.d.ts +7 -86
- package/dist/types/meeting/request.d.ts +1 -16
- package/dist/types/meeting/request.type.d.ts +0 -5
- package/dist/types/meeting/util.d.ts +0 -31
- package/dist/types/meeting-info/util.d.ts +0 -1
- package/dist/types/meeting-info/utilv2.d.ts +0 -1
- package/dist/types/meetings/index.d.ts +2 -4
- package/dist/types/member/index.d.ts +0 -1
- package/dist/types/member/types.d.ts +4 -4
- package/dist/types/member/util.d.ts +0 -5
- package/dist/types/metrics/constants.d.ts +0 -6
- package/dist/types/multistream/mediaRequestManager.d.ts +23 -0
- package/dist/types/multistream/sendSlotManager.d.ts +1 -23
- package/dist/types/reachability/clusterReachability.d.ts +3 -30
- package/dist/types/reactions/reactions.type.d.ts +0 -1
- package/dist/types/recording-controller/util.d.ts +5 -5
- package/dist/types/roap/index.d.ts +1 -1
- package/dist/webinar/index.js +163 -438
- package/dist/webinar/index.js.map +1 -1
- package/package.json +24 -26
- package/src/annotation/index.ts +7 -27
- package/src/config.ts +0 -5
- package/src/constants.ts +1 -30
- package/src/hashTree/hashTreeParser.ts +25 -1523
- package/src/hashTree/types.ts +1 -24
- package/src/index.ts +1 -8
- package/src/interceptors/index.ts +1 -2
- package/src/interceptors/locusRouteToken.ts +5 -22
- package/src/interpretation/index.ts +2 -2
- package/src/locus-info/controlsUtils.ts +0 -17
- package/src/locus-info/index.ts +213 -707
- package/src/locus-info/selfUtils.ts +0 -1
- package/src/locus-info/types.ts +12 -27
- package/src/media/MediaConnectionAwaiter.ts +1 -41
- package/src/media/properties.ts +1 -3
- package/src/meeting/in-meeting-actions.ts +0 -12
- package/src/meeting/index.ts +84 -461
- package/src/meeting/request.ts +0 -42
- package/src/meeting/request.type.ts +0 -6
- package/src/meeting/util.ts +2 -160
- package/src/meetings/index.ts +60 -180
- package/src/meetings/util.ts +9 -10
- package/src/member/index.ts +0 -10
- package/src/member/util.ts +0 -12
- package/src/metrics/constants.ts +0 -7
- package/src/multistream/mediaRequestManager.ts +54 -4
- package/src/multistream/remoteMediaManager.ts +0 -13
- package/src/multistream/sendSlotManager.ts +3 -97
- package/src/reachability/clusterReachability.ts +27 -153
- package/src/reachability/index.ts +1 -15
- package/src/reachability/reachabilityPeerConnection.ts +1 -3
- package/src/reactions/reactions.type.ts +0 -1
- package/src/reconnection-manager/index.ts +1 -0
- package/src/webinar/index.ts +6 -265
- package/test/unit/spec/annotation/index.ts +7 -69
- package/test/unit/spec/interceptors/locusRouteToken.ts +0 -44
- package/test/unit/spec/locus-info/controlsUtils.js +1 -56
- package/test/unit/spec/locus-info/index.js +90 -1457
- package/test/unit/spec/media/MediaConnectionAwaiter.ts +1 -41
- package/test/unit/spec/media/properties.ts +3 -12
- package/test/unit/spec/meeting/in-meeting-actions.ts +2 -8
- package/test/unit/spec/meeting/index.js +128 -981
- package/test/unit/spec/meeting/request.js +0 -70
- package/test/unit/spec/meeting/utils.js +26 -438
- package/test/unit/spec/meetings/index.js +33 -845
- package/test/unit/spec/meetings/utils.js +1 -51
- package/test/unit/spec/member/index.js +4 -28
- package/test/unit/spec/member/util.js +27 -65
- package/test/unit/spec/multistream/mediaRequestManager.ts +85 -2
- package/test/unit/spec/multistream/remoteMediaManager.ts +0 -30
- package/test/unit/spec/multistream/sendSlotManager.ts +36 -135
- package/test/unit/spec/reachability/clusterReachability.ts +1 -125
- package/test/unit/spec/reachability/index.ts +3 -26
- package/test/unit/spec/reconnection-manager/index.js +8 -4
- package/test/unit/spec/webinar/index.ts +37 -534
- package/dist/aiEnableRequest/index.js +0 -184
- package/dist/aiEnableRequest/index.js.map +0 -1
- package/dist/aiEnableRequest/utils.js +0 -36
- package/dist/aiEnableRequest/utils.js.map +0 -1
- package/dist/hashTree/constants.js +0 -22
- package/dist/hashTree/constants.js.map +0 -1
- package/dist/hashTree/hashTree.js +0 -533
- package/dist/hashTree/hashTree.js.map +0 -1
- package/dist/hashTree/utils.js +0 -69
- package/dist/hashTree/utils.js.map +0 -1
- package/dist/interceptors/constant.js +0 -12
- package/dist/interceptors/constant.js.map +0 -1
- package/dist/interceptors/dataChannelAuthToken.js +0 -290
- package/dist/interceptors/dataChannelAuthToken.js.map +0 -1
- package/dist/interceptors/utils.js +0 -27
- package/dist/interceptors/utils.js.map +0 -1
- package/dist/types/aiEnableRequest/index.d.ts +0 -5
- package/dist/types/aiEnableRequest/utils.d.ts +0 -2
- package/dist/types/hashTree/constants.d.ts +0 -9
- package/dist/types/hashTree/hashTree.d.ts +0 -136
- package/dist/types/hashTree/utils.d.ts +0 -22
- package/dist/types/interceptors/constant.d.ts +0 -5
- package/dist/types/interceptors/dataChannelAuthToken.d.ts +0 -43
- package/dist/types/interceptors/utils.d.ts +0 -1
- package/dist/types/webinar/utils.d.ts +0 -6
- package/dist/webinar/utils.js +0 -25
- package/dist/webinar/utils.js.map +0 -1
- package/src/aiEnableRequest/README.md +0 -84
- package/src/aiEnableRequest/index.ts +0 -170
- package/src/aiEnableRequest/utils.ts +0 -25
- package/src/hashTree/constants.ts +0 -10
- package/src/hashTree/hashTree.ts +0 -480
- package/src/hashTree/utils.ts +0 -62
- package/src/interceptors/constant.ts +0 -6
- package/src/interceptors/dataChannelAuthToken.ts +0 -170
- package/src/interceptors/utils.ts +0 -16
- package/src/webinar/utils.ts +0 -16
- package/test/unit/spec/aiEnableRequest/index.ts +0 -981
- package/test/unit/spec/aiEnableRequest/utils.ts +0 -130
- package/test/unit/spec/hashTree/hashTree.ts +0 -721
- package/test/unit/spec/hashTree/hashTreeParser.ts +0 -3670
- package/test/unit/spec/hashTree/utils.ts +0 -140
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +0 -210
- package/test/unit/spec/interceptors/utils.ts +0 -75
- package/test/unit/spec/webinar/utils.ts +0 -39
|
@@ -5,8 +5,6 @@ import {ConnectionState, MediaConnectionEventNames} from '@webex/internal-media-
|
|
|
5
5
|
import testUtils from '../../../utils/testUtils';
|
|
6
6
|
import {ICE_AND_DTLS_CONNECTION_TIMEOUT} from '@webex/plugin-meetings/src/constants';
|
|
7
7
|
import MediaConnectionAwaiter from '../../../../src/media/MediaConnectionAwaiter';
|
|
8
|
-
import Metrics from '../../../../src/metrics';
|
|
9
|
-
import BEHAVIORAL_METRICS from '../../../../src/metrics/constants';
|
|
10
8
|
|
|
11
9
|
describe('MediaConnectionAwaiter', () => {
|
|
12
10
|
let mediaConnectionAwaiter;
|
|
@@ -16,34 +14,18 @@ describe('MediaConnectionAwaiter', () => {
|
|
|
16
14
|
beforeEach(() => {
|
|
17
15
|
clock = sinon.useFakeTimers();
|
|
18
16
|
|
|
19
|
-
const mockTransportReport = {
|
|
20
|
-
type: 'transport',
|
|
21
|
-
dtlsState: 'connecting',
|
|
22
|
-
iceState: 'checking',
|
|
23
|
-
packetsSent: 10,
|
|
24
|
-
packetsReceived: 5,
|
|
25
|
-
};
|
|
26
|
-
|
|
27
17
|
mockMC = {
|
|
28
|
-
getStats: sinon.stub().resolves(
|
|
29
|
-
values: () => [mockTransportReport],
|
|
30
|
-
}),
|
|
18
|
+
getStats: sinon.stub().resolves([]),
|
|
31
19
|
on: sinon.stub(),
|
|
32
20
|
off: sinon.stub(),
|
|
33
21
|
getConnectionState: sinon.stub().returns(ConnectionState.New),
|
|
34
22
|
getIceGatheringState: sinon.stub().returns('new'),
|
|
35
23
|
getIceConnectionState: sinon.stub().returns('new'),
|
|
36
24
|
getPeerConnectionState: sinon.stub().returns('new'),
|
|
37
|
-
multistreamConnection: {
|
|
38
|
-
dataChannel: {
|
|
39
|
-
readyState: 'open',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
25
|
};
|
|
43
26
|
|
|
44
27
|
mediaConnectionAwaiter = new MediaConnectionAwaiter({
|
|
45
28
|
webrtcMediaConnection: mockMC,
|
|
46
|
-
correlationId: 'test-correlation-id',
|
|
47
29
|
});
|
|
48
30
|
});
|
|
49
31
|
|
|
@@ -62,8 +44,6 @@ describe('MediaConnectionAwaiter', () => {
|
|
|
62
44
|
});
|
|
63
45
|
|
|
64
46
|
it('rejects after timeout if ice state is not connected', async () => {
|
|
65
|
-
const sendMetricSpy = sinon.spy(Metrics, 'sendBehavioralMetric');
|
|
66
|
-
|
|
67
47
|
mockMC.getConnectionState.returns(ConnectionState.Connecting);
|
|
68
48
|
mockMC.getIceGatheringState.returns('gathering');
|
|
69
49
|
|
|
@@ -103,18 +83,6 @@ describe('MediaConnectionAwaiter', () => {
|
|
|
103
83
|
assert.equal(promiseRejected, true);
|
|
104
84
|
|
|
105
85
|
assert.calledThrice(mockMC.off);
|
|
106
|
-
|
|
107
|
-
assert.calledOnceWithExactly(sendMetricSpy, BEHAVIORAL_METRICS.MEDIA_STILL_NOT_CONNECTED, {
|
|
108
|
-
correlation_id: 'test-correlation-id',
|
|
109
|
-
numTransports: 1,
|
|
110
|
-
dtlsState: 'connecting',
|
|
111
|
-
iceState: 'checking',
|
|
112
|
-
packetsSent: 10,
|
|
113
|
-
packetsReceived: 5,
|
|
114
|
-
dataChannelState: 'open',
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
sendMetricSpy.restore();
|
|
118
86
|
});
|
|
119
87
|
|
|
120
88
|
it('rejects immediately if ice state is FAILED', async () => {
|
|
@@ -383,8 +351,6 @@ describe('MediaConnectionAwaiter', () => {
|
|
|
383
351
|
});
|
|
384
352
|
|
|
385
353
|
it(`reject with restart timer once if gathering state is not complete`, async () => {
|
|
386
|
-
const sendMetricSpy = sinon.spy(Metrics, 'sendBehavioralMetric');
|
|
387
|
-
|
|
388
354
|
mockMC.getConnectionState.returns(ConnectionState.Connecting);
|
|
389
355
|
mockMC.getIceGatheringState.returns('new');
|
|
390
356
|
|
|
@@ -424,12 +390,6 @@ describe('MediaConnectionAwaiter', () => {
|
|
|
424
390
|
|
|
425
391
|
assert.calledOnce(clearTimeoutSpy);
|
|
426
392
|
assert.calledTwice(setTimeoutSpy);
|
|
427
|
-
|
|
428
|
-
// verify sendMetric was called twice (once for each timeout)
|
|
429
|
-
assert.calledTwice(sendMetricSpy);
|
|
430
|
-
assert.calledWith(sendMetricSpy, BEHAVIORAL_METRICS.MEDIA_STILL_NOT_CONNECTED);
|
|
431
|
-
|
|
432
|
-
sendMetricSpy.restore();
|
|
433
393
|
});
|
|
434
394
|
|
|
435
395
|
it(`resolves gathering and connection state complete right after`, async () => {
|
|
@@ -41,23 +41,14 @@ describe('MediaProperties', () => {
|
|
|
41
41
|
describe('waitForMediaConnectionConnected', () => {
|
|
42
42
|
it('resolves if media connection is connected', async () => {
|
|
43
43
|
const waitForMediaConnectionConnectedResult = new Defer();
|
|
44
|
-
const correlationId = 'aaaa-bbbb-cccc-dddd';
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
const stub = sinon
|
|
45
|
+
sinon
|
|
48
46
|
.stub(MediaConnectionAwaiter.prototype, 'waitForMediaConnectionConnected')
|
|
49
|
-
.
|
|
50
|
-
capturedInstance = this;
|
|
51
|
-
return waitForMediaConnectionConnectedResult.promise;
|
|
52
|
-
});
|
|
47
|
+
.returns(waitForMediaConnectionConnectedResult.promise);
|
|
53
48
|
|
|
54
49
|
waitForMediaConnectionConnectedResult.resolve();
|
|
55
50
|
|
|
56
|
-
await mediaProperties.waitForMediaConnectionConnected(
|
|
57
|
-
|
|
58
|
-
assert.calledOnce(stub);
|
|
59
|
-
assert.equal(capturedInstance.correlationId, correlationId);
|
|
60
|
-
assert.equal(capturedInstance.webrtcMediaConnection, mockMC);
|
|
51
|
+
await mediaProperties.waitForMediaConnectionConnected();
|
|
61
52
|
});
|
|
62
53
|
it('rejects if media connection is not connected', async () => {
|
|
63
54
|
const waitForMediaConnectionConnectedResult = new Defer();
|
|
@@ -26,7 +26,6 @@ describe('plugin-meetings', () => {
|
|
|
26
26
|
canLowerAllHands: null,
|
|
27
27
|
canLowerSomeoneElsesHand: null,
|
|
28
28
|
bothLeaveAndEndMeetingAvailable: null,
|
|
29
|
-
requireHostEndMeetingBeforeLeave: null,
|
|
30
29
|
canEnableClosedCaption: null,
|
|
31
30
|
canStartTranscribing: null,
|
|
32
31
|
canStopTranscribing: null,
|
|
@@ -36,8 +35,8 @@ describe('plugin-meetings', () => {
|
|
|
36
35
|
isLocalRecordingStarted: null,
|
|
37
36
|
isLocalRecordingStopped: null,
|
|
38
37
|
isLocalRecordingPaused: null,
|
|
39
|
-
isLocalStreamingStarted:
|
|
40
|
-
isLocalStreamingStopped:
|
|
38
|
+
isLocalStreamingStarted:null,
|
|
39
|
+
isLocalStreamingStopped:null,
|
|
41
40
|
isManualCaptionActive: null,
|
|
42
41
|
isPremiseRecordingEnabled: null,
|
|
43
42
|
isSaveTranscriptsEnabled: null,
|
|
@@ -112,8 +111,6 @@ describe('plugin-meetings', () => {
|
|
|
112
111
|
canMoveToLobby: null,
|
|
113
112
|
canEnablePollingQA: null,
|
|
114
113
|
canDisablePollingQA: null,
|
|
115
|
-
canAttendeeRequestAiAssistantEnabled: null,
|
|
116
|
-
isAttendeeRequestAiAssistantDeclinedAll: null,
|
|
117
114
|
|
|
118
115
|
...expected,
|
|
119
116
|
};
|
|
@@ -152,7 +149,6 @@ describe('plugin-meetings', () => {
|
|
|
152
149
|
'canLowerAllHands',
|
|
153
150
|
'canLowerSomeoneElsesHand',
|
|
154
151
|
'bothLeaveAndEndMeetingAvailable',
|
|
155
|
-
'requireHostEndMeetingBeforeLeave',
|
|
156
152
|
'canEnableClosedCaption',
|
|
157
153
|
'canStopTranscribing',
|
|
158
154
|
'isClosedCaptionActive',
|
|
@@ -232,8 +228,6 @@ describe('plugin-meetings', () => {
|
|
|
232
228
|
'canMoveToLobby',
|
|
233
229
|
'canEnablePollingQA',
|
|
234
230
|
'canDisablePollingQA',
|
|
235
|
-
'canAttendeeRequestAiAssistantEnabled',
|
|
236
|
-
'isAttendeeRequestAiAssistantDeclinedAll',
|
|
237
231
|
].forEach((key) => {
|
|
238
232
|
it(`get and set for ${key} work as expected`, () => {
|
|
239
233
|
const inMeetingActions = new InMeetingActions();
|