@webex/plugin-meetings 2.52.11 → 2.52.13
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/meeting/index.js +194 -202
- package/dist/meeting/index.js.map +1 -1
- package/package.json +20 -20
- package/src/meeting/index.ts +4 -23
- package/test/unit/spec/meeting/index.js +7 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/plugin-meetings",
|
|
3
|
-
"version": "2.52.
|
|
3
|
+
"version": "2.52.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Cisco EULA (https://www.cisco.com/c/en/us/products/end-user-license-agreement.html)",
|
|
6
6
|
"contributors": [
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@babel/core": "^7.17.10",
|
|
41
41
|
"@types/jsdom": "^21",
|
|
42
|
-
"@webex/babel-config-legacy": "2.52.
|
|
43
|
-
"@webex/eslint-config-legacy": "2.52.
|
|
44
|
-
"@webex/jest-config-legacy": "2.52.
|
|
45
|
-
"@webex/legacy-tools": "2.52.
|
|
46
|
-
"@webex/test-helper-chai": "2.52.
|
|
47
|
-
"@webex/test-helper-mocha": "2.52.
|
|
48
|
-
"@webex/test-helper-mock-webex": "2.52.
|
|
49
|
-
"@webex/test-helper-retry": "2.52.
|
|
50
|
-
"@webex/test-helper-test-users": "2.52.
|
|
42
|
+
"@webex/babel-config-legacy": "2.52.13",
|
|
43
|
+
"@webex/eslint-config-legacy": "2.52.13",
|
|
44
|
+
"@webex/jest-config-legacy": "2.52.13",
|
|
45
|
+
"@webex/legacy-tools": "2.52.13",
|
|
46
|
+
"@webex/test-helper-chai": "2.52.13",
|
|
47
|
+
"@webex/test-helper-mocha": "2.52.13",
|
|
48
|
+
"@webex/test-helper-mock-webex": "2.52.13",
|
|
49
|
+
"@webex/test-helper-retry": "2.52.13",
|
|
50
|
+
"@webex/test-helper-test-users": "2.52.13",
|
|
51
51
|
"chai": "^4.3.4",
|
|
52
52
|
"chai-as-promised": "^7.1.1",
|
|
53
53
|
"eslint": "^8.24.0",
|
|
@@ -58,18 +58,18 @@
|
|
|
58
58
|
"typescript": "^4.7.4"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@webex/common": "2.52.
|
|
61
|
+
"@webex/common": "2.52.13",
|
|
62
62
|
"@webex/internal-media-core": "0.0.7-beta",
|
|
63
|
-
"@webex/internal-plugin-conversation": "2.52.
|
|
64
|
-
"@webex/internal-plugin-device": "2.52.
|
|
65
|
-
"@webex/internal-plugin-mercury": "2.52.
|
|
66
|
-
"@webex/internal-plugin-metrics": "2.52.
|
|
67
|
-
"@webex/internal-plugin-support": "2.52.
|
|
68
|
-
"@webex/internal-plugin-user": "2.52.
|
|
69
|
-
"@webex/plugin-people": "2.52.
|
|
70
|
-
"@webex/plugin-rooms": "2.52.
|
|
63
|
+
"@webex/internal-plugin-conversation": "2.52.13",
|
|
64
|
+
"@webex/internal-plugin-device": "2.52.13",
|
|
65
|
+
"@webex/internal-plugin-mercury": "2.52.13",
|
|
66
|
+
"@webex/internal-plugin-metrics": "2.52.13",
|
|
67
|
+
"@webex/internal-plugin-support": "2.52.13",
|
|
68
|
+
"@webex/internal-plugin-user": "2.52.13",
|
|
69
|
+
"@webex/plugin-people": "2.52.13",
|
|
70
|
+
"@webex/plugin-rooms": "2.52.13",
|
|
71
71
|
"@webex/ts-sdp": "1.0.1",
|
|
72
|
-
"@webex/webex-core": "2.52.
|
|
72
|
+
"@webex/webex-core": "2.52.13",
|
|
73
73
|
"bowser": "^2.11.0",
|
|
74
74
|
"btoa": "^1.2.1",
|
|
75
75
|
"dotenv": "^4.0.0",
|
package/src/meeting/index.ts
CHANGED
|
@@ -4019,30 +4019,11 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
4019
4019
|
* @memberof Meeting
|
|
4020
4020
|
*/
|
|
4021
4021
|
public usePhoneAudio(phoneNumber: string) {
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
.then(() => {
|
|
4026
|
-
LoggerProxy.logger.info(
|
|
4027
|
-
`Meeting:index#usePhoneAudio --> ${
|
|
4028
|
-
phoneNumber ? 'dialOutPstn' : 'dialInPstn'
|
|
4029
|
-
} request completed`
|
|
4030
|
-
);
|
|
4031
|
-
LoggerProxy.logger.info(
|
|
4032
|
-
`Meeting:index#usePhoneAudio --> removing audio track from desktop`
|
|
4033
|
-
);
|
|
4034
|
-
|
|
4035
|
-
// removing audio from desktop to avoid echo as phone audio is being used
|
|
4036
|
-
Media.stopTracks(this.mediaProperties.audioTrack);
|
|
4037
|
-
})
|
|
4038
|
-
.catch((error) => {
|
|
4039
|
-
LoggerProxy.logger.error(
|
|
4040
|
-
'Meeting:index#usePhoneAudio --> Failed to move audio to phone',
|
|
4041
|
-
error
|
|
4042
|
-
);
|
|
4022
|
+
if (!phoneNumber) {
|
|
4023
|
+
return this.dialInPstn();
|
|
4024
|
+
}
|
|
4043
4025
|
|
|
4044
|
-
|
|
4045
|
-
});
|
|
4026
|
+
return this.dialOutPstn(phoneNumber);
|
|
4046
4027
|
}
|
|
4047
4028
|
|
|
4048
4029
|
/**
|
|
@@ -2471,22 +2471,14 @@ describe('plugin-meetings', () => {
|
|
|
2471
2471
|
});
|
|
2472
2472
|
|
|
2473
2473
|
describe('#usePhoneAudio', () => {
|
|
2474
|
-
const fakeAudioTrack = () => ({stop: () => {}});
|
|
2475
|
-
let sandbox = null;
|
|
2476
|
-
|
|
2477
2474
|
beforeEach(() => {
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
meeting.
|
|
2485
|
-
});
|
|
2486
|
-
|
|
2487
|
-
afterEach(() => {
|
|
2488
|
-
sandbox.restore();
|
|
2489
|
-
sandbox = null;
|
|
2475
|
+
meeting.meetingRequest.dialIn = sinon
|
|
2476
|
+
.stub()
|
|
2477
|
+
.returns(Promise.resolve({body: {locus: 'testData'}}));
|
|
2478
|
+
meeting.meetingRequest.dialOut = sinon
|
|
2479
|
+
.stub()
|
|
2480
|
+
.returns(Promise.resolve({body: {locus: 'testData'}}));
|
|
2481
|
+
meeting.locusInfo.onFullLocus = sinon.stub().returns(Promise.resolve());
|
|
2490
2482
|
});
|
|
2491
2483
|
|
|
2492
2484
|
it('with no parameters triggers dial-in, delegating request to meetingRequest correctly', async () => {
|
|
@@ -2501,7 +2493,6 @@ describe('plugin-meetings', () => {
|
|
|
2501
2493
|
});
|
|
2502
2494
|
assert.calledWith(meeting.locusInfo.onFullLocus, 'testData');
|
|
2503
2495
|
assert.notCalled(meeting.meetingRequest.dialOut);
|
|
2504
|
-
assert.calledWith(Media.stopTracks, fakeAudioTrack)
|
|
2505
2496
|
|
|
2506
2497
|
meeting.meetingRequest.dialIn.resetHistory();
|
|
2507
2498
|
meeting.locusInfo.onFullLocus.resetHistory();
|
|
@@ -2517,7 +2508,6 @@ describe('plugin-meetings', () => {
|
|
|
2517
2508
|
});
|
|
2518
2509
|
assert.calledWith(meeting.locusInfo.onFullLocus, 'testData');
|
|
2519
2510
|
assert.notCalled(meeting.meetingRequest.dialOut);
|
|
2520
|
-
assert.calledWith(Media.stopTracks, fakeAudioTrack)
|
|
2521
2511
|
});
|
|
2522
2512
|
|
|
2523
2513
|
it('given a phone number, triggers dial-out, delegating request to meetingRequest correctly', async () => {
|
|
@@ -2535,7 +2525,6 @@ describe('plugin-meetings', () => {
|
|
|
2535
2525
|
});
|
|
2536
2526
|
assert.calledWith(meeting.locusInfo.onFullLocus, 'testData');
|
|
2537
2527
|
assert.notCalled(meeting.meetingRequest.dialIn);
|
|
2538
|
-
assert.calledWith(Media.stopTracks, fakeAudioTrack)
|
|
2539
2528
|
|
|
2540
2529
|
meeting.meetingRequest.dialOut.resetHistory();
|
|
2541
2530
|
meeting.locusInfo.onFullLocus.resetHistory();
|
|
@@ -2552,7 +2541,6 @@ describe('plugin-meetings', () => {
|
|
|
2552
2541
|
});
|
|
2553
2542
|
assert.calledWith(meeting.locusInfo.onFullLocus, 'testData');
|
|
2554
2543
|
assert.notCalled(meeting.meetingRequest.dialIn);
|
|
2555
|
-
assert.calledWith(Media.stopTracks, fakeAudioTrack)
|
|
2556
2544
|
});
|
|
2557
2545
|
|
|
2558
2546
|
it('rejects if the request failed (dial in)', () => {
|
|
@@ -2565,7 +2553,6 @@ describe('plugin-meetings', () => {
|
|
|
2565
2553
|
.then(() => Promise.reject(new Error('Promise resolved when it should have rejected')))
|
|
2566
2554
|
.catch((e) => {
|
|
2567
2555
|
assert.equal(e, error);
|
|
2568
|
-
assert.notCalled(Media.stopTracks)
|
|
2569
2556
|
|
|
2570
2557
|
return Promise.resolve();
|
|
2571
2558
|
});
|
|
@@ -2581,7 +2568,6 @@ describe('plugin-meetings', () => {
|
|
|
2581
2568
|
.then(() => Promise.reject(new Error('Promise resolved when it should have rejected')))
|
|
2582
2569
|
.catch((e) => {
|
|
2583
2570
|
assert.equal(e, error);
|
|
2584
|
-
assert.notCalled(Media.stopTracks)
|
|
2585
2571
|
|
|
2586
2572
|
return Promise.resolve();
|
|
2587
2573
|
});
|