@webex/calling 0.0.1-next.8 → 0.0.1-next.9
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Event, RoapMediaConnection } from '@webex/internal-media-core';
|
|
1
|
+
import { Event, LocalStreamEventNames, RoapMediaConnection, } from '@webex/internal-media-core';
|
|
2
2
|
import { createMachine, interpret } from 'xstate';
|
|
3
3
|
import { v4 as uuid } from 'uuid';
|
|
4
4
|
import { ERROR_LAYER, ERROR_TYPE } from '../../Errors/types';
|
|
@@ -1225,6 +1225,7 @@ export class Call extends Eventing {
|
|
|
1225
1225
|
this.initMediaConnection(localAudioTrack);
|
|
1226
1226
|
this.mediaRoapEventsListener();
|
|
1227
1227
|
this.mediaTrackListener();
|
|
1228
|
+
this.outputTrackUpdateListener(localAudioStream);
|
|
1228
1229
|
}
|
|
1229
1230
|
if (this.callStateMachine.state.value === 'S_SEND_CALL_PROGRESS') {
|
|
1230
1231
|
this.sendCallStateMachineEvt({ type: 'E_SEND_CALL_CONNECT' });
|
|
@@ -1240,6 +1241,7 @@ export class Call extends Eventing {
|
|
|
1240
1241
|
this.initMediaConnection(localAudioTrack);
|
|
1241
1242
|
this.mediaRoapEventsListener();
|
|
1242
1243
|
this.mediaTrackListener();
|
|
1244
|
+
this.outputTrackUpdateListener(localAudioStream);
|
|
1243
1245
|
}
|
|
1244
1246
|
if (this.mediaStateMachine.state.value === 'S_ROAP_IDLE') {
|
|
1245
1247
|
this.sendMediaStateMachineEvt({ type: 'E_SEND_ROAP_OFFER' });
|
|
@@ -1506,6 +1508,11 @@ export class Call extends Eventing {
|
|
|
1506
1508
|
}
|
|
1507
1509
|
});
|
|
1508
1510
|
}
|
|
1511
|
+
outputTrackUpdateListener(localAudioStream) {
|
|
1512
|
+
localAudioStream.on(LocalStreamEventNames.OutputTrackChange, (track) => {
|
|
1513
|
+
this.mediaConnection.updateLocalTracks({ audio: track });
|
|
1514
|
+
});
|
|
1515
|
+
}
|
|
1509
1516
|
async delete() {
|
|
1510
1517
|
const disconnectMetrics = await this.getCallStats();
|
|
1511
1518
|
return this.webex.request({
|
package/dist/module/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createMicrophoneStream } from '@webex/media-helpers';
|
|
1
|
+
import { NoiseReductionEffect, createMicrophoneStream } from '@webex/media-helpers';
|
|
2
2
|
import { createCallSettingsClient } from './CallSettings/CallSettings';
|
|
3
3
|
import { createContactsClient } from './Contacts/ContactsClient';
|
|
4
4
|
import { createClient } from './CallingClient/CallingClient';
|
|
5
5
|
import { createCallHistoryClient } from './CallHistory/CallHistory';
|
|
6
6
|
import { createVoicemailClient } from './Voicemail/Voicemail';
|
|
7
7
|
import Logger from './Logger';
|
|
8
|
-
export { createClient, createCallHistoryClient,
|
|
8
|
+
export { createClient, createCallHistoryClient, createCallSettingsClient, createContactsClient, createMicrophoneStream, createVoicemailClient, Logger, NoiseReductionEffect, };
|
package/package.json
CHANGED