@webex/plugin-meetings 3.6.0-next.18 → 3.6.0-next.19
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 +1 -1
- package/dist/meeting/index.js.map +1 -1
- package/dist/webinar/index.js +1 -1
- package/package.json +3 -3
- package/src/meeting/index.ts +1 -1
- package/test/unit/spec/meeting/index.js +30 -20
package/dist/webinar/index.js
CHANGED
package/package.json
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
44
44
|
"@webex/jest-config-legacy": "0.0.0",
|
|
45
45
|
"@webex/legacy-tools": "0.0.0",
|
|
46
|
-
"@webex/plugin-meetings": "3.6.0-next.
|
|
46
|
+
"@webex/plugin-meetings": "3.6.0-next.19",
|
|
47
47
|
"@webex/plugin-rooms": "3.6.0-next.8",
|
|
48
48
|
"@webex/test-helper-chai": "3.6.0-next.4",
|
|
49
49
|
"@webex/test-helper-mocha": "3.6.0-next.4",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@webex/internal-plugin-metrics": "3.6.0-next.4",
|
|
71
71
|
"@webex/internal-plugin-support": "3.6.0-next.8",
|
|
72
72
|
"@webex/internal-plugin-user": "3.6.0-next.4",
|
|
73
|
-
"@webex/internal-plugin-voicea": "3.6.0-next.
|
|
73
|
+
"@webex/internal-plugin-voicea": "3.6.0-next.19",
|
|
74
74
|
"@webex/media-helpers": "3.6.0-next.4",
|
|
75
75
|
"@webex/plugin-people": "3.6.0-next.6",
|
|
76
76
|
"@webex/plugin-rooms": "3.6.0-next.8",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"//": [
|
|
92
92
|
"TODO: upgrade jwt-decode when moving to node 18"
|
|
93
93
|
],
|
|
94
|
-
"version": "3.6.0-next.
|
|
94
|
+
"version": "3.6.0-next.19"
|
|
95
95
|
}
|
package/src/meeting/index.ts
CHANGED
|
@@ -6323,7 +6323,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
6323
6323
|
this.mediaProperties.webrtcMediaConnection.on(
|
|
6324
6324
|
MediaConnectionEventNames.ICE_CANDIDATE,
|
|
6325
6325
|
(event) => {
|
|
6326
|
-
if (event.candidate) {
|
|
6326
|
+
if (event.candidate && event.candidate.candidate && event.candidate.candidate.length > 0) {
|
|
6327
6327
|
this.iceCandidatesCount += 1;
|
|
6328
6328
|
}
|
|
6329
6329
|
}
|
|
@@ -90,8 +90,8 @@ import WebExMeetingsErrors from '../../../../src/common/errors/webex-meetings-er
|
|
|
90
90
|
import ParameterError from '../../../../src/common/errors/parameter';
|
|
91
91
|
import PasswordError from '../../../../src/common/errors/password-error';
|
|
92
92
|
import CaptchaError from '../../../../src/common/errors/captcha-error';
|
|
93
|
-
import PermissionError
|
|
94
|
-
import WebinarRegistrationError
|
|
93
|
+
import PermissionError from '../../../../src/common/errors/permission';
|
|
94
|
+
import WebinarRegistrationError from '../../../../src/common/errors/webinar-registration-error';
|
|
95
95
|
import IntentToJoinError from '../../../../src/common/errors/intent-to-join';
|
|
96
96
|
import testUtils from '../../../utils/testUtils';
|
|
97
97
|
import {
|
|
@@ -6290,14 +6290,22 @@ describe('plugin-meetings', () => {
|
|
|
6290
6290
|
meeting.attrs.meetingInfoProvider = {
|
|
6291
6291
|
fetchMeetingInfo: sinon
|
|
6292
6292
|
.stub()
|
|
6293
|
-
.throws(
|
|
6293
|
+
.throws(
|
|
6294
|
+
new MeetingInfoV2WebinarRegistrationError(403021, FAKE_MEETING_INFO, 'a message')
|
|
6295
|
+
),
|
|
6294
6296
|
};
|
|
6295
6297
|
|
|
6296
|
-
await assert.isRejected(
|
|
6298
|
+
await assert.isRejected(
|
|
6299
|
+
meeting.fetchMeetingInfo({sendCAevents: true}),
|
|
6300
|
+
WebinarRegistrationError
|
|
6301
|
+
);
|
|
6297
6302
|
|
|
6298
6303
|
assert.deepEqual(meeting.meetingInfo, FAKE_MEETING_INFO);
|
|
6299
6304
|
assert.equal(meeting.meetingInfoFailureCode, 403021);
|
|
6300
|
-
assert.equal(
|
|
6305
|
+
assert.equal(
|
|
6306
|
+
meeting.meetingInfoFailureReason,
|
|
6307
|
+
MEETING_INFO_FAILURE_REASON.WEBINAR_REGISTRATION
|
|
6308
|
+
);
|
|
6301
6309
|
});
|
|
6302
6310
|
});
|
|
6303
6311
|
|
|
@@ -7761,11 +7769,17 @@ describe('plugin-meetings', () => {
|
|
|
7761
7769
|
});
|
|
7762
7770
|
|
|
7763
7771
|
it('should collect ice candidates', () => {
|
|
7764
|
-
eventListeners[MediaConnectionEventNames.ICE_CANDIDATE]({candidate: 'candidate'});
|
|
7772
|
+
eventListeners[MediaConnectionEventNames.ICE_CANDIDATE]({candidate: {candidate: 'candidate'}});
|
|
7765
7773
|
|
|
7766
7774
|
assert.equal(meeting.iceCandidatesCount, 1);
|
|
7767
7775
|
});
|
|
7768
7776
|
|
|
7777
|
+
it('should not collect empty ice candidates', () => {
|
|
7778
|
+
eventListeners[MediaConnectionEventNames.ICE_CANDIDATE]({candidate: {candidate: ''}});
|
|
7779
|
+
|
|
7780
|
+
assert.equal(meeting.iceCandidatesCount, 0);
|
|
7781
|
+
});
|
|
7782
|
+
|
|
7769
7783
|
it('should not collect null ice candidates', () => {
|
|
7770
7784
|
eventListeners[MediaConnectionEventNames.ICE_CANDIDATE]({candidate: null});
|
|
7771
7785
|
|
|
@@ -9160,7 +9174,6 @@ describe('plugin-meetings', () => {
|
|
|
9160
9174
|
webcastInstance: {
|
|
9161
9175
|
url: 'url',
|
|
9162
9176
|
},
|
|
9163
|
-
|
|
9164
9177
|
},
|
|
9165
9178
|
};
|
|
9166
9179
|
|
|
@@ -9174,10 +9187,7 @@ describe('plugin-meetings', () => {
|
|
|
9174
9187
|
newLocusResources
|
|
9175
9188
|
);
|
|
9176
9189
|
|
|
9177
|
-
assert.calledWith(
|
|
9178
|
-
meeting.webinar.updateWebcastUrl,
|
|
9179
|
-
newLocusResources
|
|
9180
|
-
);
|
|
9190
|
+
assert.calledWith(meeting.webinar.updateWebcastUrl, newLocusResources);
|
|
9181
9191
|
|
|
9182
9192
|
done();
|
|
9183
9193
|
});
|
|
@@ -12335,14 +12345,10 @@ describe('plugin-meetings', () => {
|
|
|
12335
12345
|
const testEmit = async (unmuteAllowed) => {
|
|
12336
12346
|
meeting.audio = {
|
|
12337
12347
|
handleServerLocalUnmuteRequired: sinon.stub(),
|
|
12338
|
-
}
|
|
12339
|
-
await meeting.locusInfo.emitScoped(
|
|
12340
|
-
|
|
12341
|
-
|
|
12342
|
-
{
|
|
12343
|
-
unmuteAllowed,
|
|
12344
|
-
}
|
|
12345
|
-
);
|
|
12348
|
+
};
|
|
12349
|
+
await meeting.locusInfo.emitScoped({}, LOCUSINFO.EVENTS.LOCAL_UNMUTE_REQUIRED, {
|
|
12350
|
+
unmuteAllowed,
|
|
12351
|
+
});
|
|
12346
12352
|
|
|
12347
12353
|
assert.calledWith(
|
|
12348
12354
|
TriggerProxy.trigger,
|
|
@@ -12358,7 +12364,11 @@ describe('plugin-meetings', () => {
|
|
|
12358
12364
|
},
|
|
12359
12365
|
}
|
|
12360
12366
|
);
|
|
12361
|
-
assert.calledOnceWithExactly(
|
|
12367
|
+
assert.calledOnceWithExactly(
|
|
12368
|
+
meeting.audio.handleServerLocalUnmuteRequired,
|
|
12369
|
+
meeting,
|
|
12370
|
+
unmuteAllowed
|
|
12371
|
+
);
|
|
12362
12372
|
};
|
|
12363
12373
|
|
|
12364
12374
|
[true, false].forEach((unmuteAllowed) => {
|