@webex/plugin-meetings 1.157.1 → 1.158.0
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/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +12 -3
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/utilv2.js +44 -0
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/index.js +2 -2
- package/dist/meetings/index.js.map +1 -1
- package/package.json +5 -5
- package/src/index.js +0 -1
- package/src/meeting-info/meeting-info-v2.js +8 -2
- package/src/meeting-info/utilv2.js +39 -0
- package/src/meetings/index.js +1 -2
- package/test/{unit/spec/transcription/index.js → integration/spec/transcription.js} +1 -2
- package/test/unit/spec/meeting/index.js +23 -4
- package/test/unit/spec/meeting-info/utilv2.js +72 -0
- package/test/unit/spec/meetings/index.js +266 -74
- package/test/unit/spec/peerconnection-manager/index.js +10 -0
package/src/meetings/index.js
CHANGED
|
@@ -176,8 +176,6 @@ export default class Meetings extends WebexPlugin {
|
|
|
176
176
|
getSupportedDevice: Media.getSupportedDevice
|
|
177
177
|
};
|
|
178
178
|
|
|
179
|
-
LoggerProxy.set(this.webex.logger);
|
|
180
|
-
|
|
181
179
|
this.onReady();
|
|
182
180
|
MeetingsUtil.checkH264Support({disableNotifications: true});
|
|
183
181
|
Metrics.initialSetup(this.meetingCollection, this.webex);
|
|
@@ -368,6 +366,7 @@ export default class Meetings extends WebexPlugin {
|
|
|
368
366
|
onReady() {
|
|
369
367
|
this.webex.once(READY, () => {
|
|
370
368
|
StaticConfig.set(this.config);
|
|
369
|
+
LoggerProxy.set(this.webex.logger);
|
|
371
370
|
LoggerConfig.set(this.config.logging);
|
|
372
371
|
|
|
373
372
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import Transcription from '@webex/plugin-meetings/src/transcription';
|
|
2
2
|
import {assert} from '@webex/test-helper-chai';
|
|
3
3
|
import sinon from 'sinon';
|
|
4
|
-
import Transcription from '@webex/plugin-meetings/src/transcription';
|
|
5
4
|
|
|
6
5
|
describe('transcription index', () => {
|
|
7
6
|
let webSocketUrl, members, sessionId, token, transcription;
|
|
@@ -82,8 +82,28 @@ describe('plugin-meetings', () => {
|
|
|
82
82
|
Object.defineProperty(global.window.navigator, 'mediaDevices', {
|
|
83
83
|
writable: true,
|
|
84
84
|
value: {
|
|
85
|
-
getDisplayMedia: sinon.stub().returns(Promise.resolve(MediaStream))
|
|
86
|
-
|
|
85
|
+
getDisplayMedia: sinon.stub().returns(Promise.resolve(MediaStream)),
|
|
86
|
+
enumerateDevices: sinon.stub().returns(Promise.resolve([
|
|
87
|
+
{
|
|
88
|
+
deviceId: '',
|
|
89
|
+
kind: 'audioinput',
|
|
90
|
+
label: '',
|
|
91
|
+
groupId: '29d9339cc77bffdd24cb69ee80f6d3200481099bcd0f29267558672de0430777',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
deviceId: '',
|
|
95
|
+
kind: 'videoinput',
|
|
96
|
+
label: '',
|
|
97
|
+
groupId: '08d4f8200e7e4a3425ecf75b7edea9ae4acd934019f2a52217554bcc8e46604d',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
deviceId: '',
|
|
101
|
+
kind: 'audiooutput',
|
|
102
|
+
label: '',
|
|
103
|
+
groupId: '29d9339cc77bffdd24cb69ee80f6d3200481099bcd0f29267558672de0430777',
|
|
104
|
+
}
|
|
105
|
+
])),
|
|
106
|
+
},
|
|
87
107
|
});
|
|
88
108
|
|
|
89
109
|
Object.defineProperty(global.window, 'MediaStream', {
|
|
@@ -143,6 +163,7 @@ describe('plugin-meetings', () => {
|
|
|
143
163
|
Metrics.postEvent = sinon.stub();
|
|
144
164
|
Metrics.initialSetup(null, webex);
|
|
145
165
|
MediaUtil.createPeerConnection = sinon.stub().returns({});
|
|
166
|
+
MediaUtil.createMediaStream = sinon.stub().returns(true);
|
|
146
167
|
|
|
147
168
|
uuid1 = uuid.v4();
|
|
148
169
|
uuid2 = uuid.v4();
|
|
@@ -2551,7 +2572,6 @@ describe('plugin-meetings', () => {
|
|
|
2551
2572
|
sandbox.stub(MeetingUtil, 'getTrack').returns({audioTrack: null, videoTrack: fakeTrack});
|
|
2552
2573
|
sandbox.stub(meeting.mediaProperties, 'setMediaSettings');
|
|
2553
2574
|
sandbox.stub(meeting.mediaProperties, 'setVideoDeviceId');
|
|
2554
|
-
sandbox.stub(MediaUtil, 'createMediaStream').returns(true);
|
|
2555
2575
|
|
|
2556
2576
|
meeting.setLocalTracks(fakeStream);
|
|
2557
2577
|
|
|
@@ -2592,7 +2612,6 @@ describe('plugin-meetings', () => {
|
|
|
2592
2612
|
});
|
|
2593
2613
|
describe('#setRemoteStream', () => {
|
|
2594
2614
|
beforeEach(() => {
|
|
2595
|
-
MediaUtil.createMediaStream = sinon.stub().returns(true);
|
|
2596
2615
|
meeting.statsAnalyzer = {startAnalyzer: sinon.stub()};
|
|
2597
2616
|
});
|
|
2598
2617
|
it('should trigger a media:ready event when remote stream track ontrack is fired', () => {
|
|
@@ -211,5 +211,77 @@ describe('plugin-meetings', () => {
|
|
|
211
211
|
assert.equal(res.conversationUrl, 'https://conv-a.wbx2.com/conversation/api/v1/conversations/bfb49280');
|
|
212
212
|
});
|
|
213
213
|
});
|
|
214
|
+
|
|
215
|
+
describe('#getWebexSite', () => {
|
|
216
|
+
it('SIP meeting address', () => {
|
|
217
|
+
assert.equal(MeetingInfoUtil.getWebexSite('10019857020@convergedats.webex.com'), 'convergedats.webex.com');
|
|
218
|
+
});
|
|
219
|
+
it('SIP meeting address from excepted domain', () => {
|
|
220
|
+
assert.equal(MeetingInfoUtil.getWebexSite('10019857020@meet.webex.com'), null);
|
|
221
|
+
});
|
|
222
|
+
it('invalid domain', () => {
|
|
223
|
+
assert.equal(MeetingInfoUtil.getWebexSite('invaliddomain'), null);
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
describe('#getDirectMeetingInfoURI', () => {
|
|
228
|
+
it('for _SIP_URI_', () => {
|
|
229
|
+
assert.equal(MeetingInfoUtil.getDirectMeetingInfoURI({
|
|
230
|
+
type: _SIP_URI_,
|
|
231
|
+
destination: 'testing@convergedats.webex.com'
|
|
232
|
+
}), 'https://convergedats.webex.com/wbxappapi/v1/meetingInfo');
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
it('for _LOCUS_ID_ with webExSite', () => {
|
|
236
|
+
assert.equal(MeetingInfoUtil.getDirectMeetingInfoURI({
|
|
237
|
+
type: _LOCUS_ID_,
|
|
238
|
+
destination: {
|
|
239
|
+
info: {
|
|
240
|
+
webExMeetingId: '123456',
|
|
241
|
+
webExSite: 'convergedats.webex.com'
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}), 'https://convergedats.webex.com/wbxappapi/v1/meetingInfo');
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
// null means fall back to default meeting info URI
|
|
248
|
+
it('for _PERSONAL_ROOM_', () => {
|
|
249
|
+
assert.equal(MeetingInfoUtil.getDirectMeetingInfoURI({
|
|
250
|
+
type: _PERSONAL_ROOM_,
|
|
251
|
+
destination: {
|
|
252
|
+
userId: '01824b9b-adef-4b10-b5c1-8a2fe2fb7c0e',
|
|
253
|
+
orgId: '1eb65fdf-9643-417f-9974-ad72cae0e10f'
|
|
254
|
+
}
|
|
255
|
+
}), null);
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
it('for _MEETING_ID_', () => {
|
|
259
|
+
assert.equal(MeetingInfoUtil.getDirectMeetingInfoURI({
|
|
260
|
+
type: _MEETING_ID_,
|
|
261
|
+
destination: '1234323'
|
|
262
|
+
}), null);
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
it('for _MEETING_UUID_', () => {
|
|
266
|
+
assert.equal(MeetingInfoUtil.getDirectMeetingInfoURI({
|
|
267
|
+
type: _MEETING_UUID_,
|
|
268
|
+
destination: 'xsddsdsdsdssdsdsdsdsd'
|
|
269
|
+
}), null);
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
it('for _LOCUS_ID_ with sipUri with excepted domain', () => {
|
|
273
|
+
assert.equal(MeetingInfoUtil.getDirectMeetingInfoURI({
|
|
274
|
+
type: _LOCUS_ID_,
|
|
275
|
+
destination: {info: {webExMeetingId: '123456', sipUri: 'testing@meetup.webex.com'}}
|
|
276
|
+
}), null);
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
it('for _CONVERSATION_URL_', () => {
|
|
280
|
+
assert.equal(MeetingInfoUtil.getDirectMeetingInfoURI({
|
|
281
|
+
type: _CONVERSATION_URL_,
|
|
282
|
+
destination: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/bfb49280'
|
|
283
|
+
}), null);
|
|
284
|
+
});
|
|
285
|
+
});
|
|
214
286
|
});
|
|
215
287
|
});
|