@wazo/sdk 0.38.20 → 0.38.22
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/wazo-sdk.js +2 -2
- package/esm/__tests__/web-rtc-client.test.js +1 -2
- package/esm/checker/Checker.js +1 -2
- package/esm/checker/checks/index.js +1 -2
- package/esm/checker/checks/webrtc-transport.js +1 -2
- package/esm/checker/checks/webrtc.js +1 -2
- package/esm/domain/Phone/WebRTCPhone.js +3 -2
- package/esm/index.js +4 -4
- package/esm/simple/Auth.js +4 -4
- package/esm/simple/Configuration.js +4 -4
- package/esm/simple/Phone.js +4 -4
- package/esm/simple/index.js +4 -4
- package/esm/simple/room/LocalParticipant.js +4 -4
- package/esm/simple/room/Participant.js +4 -4
- package/esm/simple/room/RemoteParticipant.js +4 -4
- package/esm/simple/room/Room.js +4 -4
- package/esm/simple/room/SipRoom.js +4 -4
- package/esm/simple/room/Stream.js +4 -4
- package/esm/simple/room/__tests__/Participant.test.js +4 -4
- package/esm/simple/room/__tests__/RemoteParticipant.test.js +4 -4
- package/esm/simple/utils.js +4 -4
- package/esm/web-rtc-client.js +1 -2
- package/lib/__tests__/web-rtc-client.test.js +1 -2
- package/lib/checker/Checker.js +1 -2
- package/lib/checker/checks/index.js +1 -2
- package/lib/checker/checks/webrtc-transport.js +1 -2
- package/lib/checker/checks/webrtc.js +1 -2
- package/lib/domain/Phone/WebRTCPhone.js +3 -2
- package/lib/index.js +4 -4
- package/lib/simple/Auth.js +4 -4
- package/lib/simple/Configuration.js +4 -4
- package/lib/simple/Phone.js +4 -4
- package/lib/simple/index.js +4 -4
- package/lib/simple/room/LocalParticipant.js +4 -4
- package/lib/simple/room/Participant.js +4 -4
- package/lib/simple/room/RemoteParticipant.js +4 -4
- package/lib/simple/room/Room.js +4 -4
- package/lib/simple/room/SipRoom.js +4 -4
- package/lib/simple/room/Stream.js +4 -4
- package/lib/simple/room/__tests__/Participant.test.js +4 -4
- package/lib/simple/room/__tests__/RemoteParticipant.test.js +4 -4
- package/lib/simple/utils.js +4 -4
- package/lib/web-rtc-client.js +1 -2
- package/package.json +1 -1
- package/src/domain/Phone/WebRTCPhone.js +3 -2
- package/src/web-rtc-client.js +1 -2
package/lib/simple/utils.js
CHANGED
|
@@ -7081,7 +7081,6 @@ class WebRTCClient extends Emitter {
|
|
|
7081
7081
|
|
|
7082
7082
|
|
|
7083
7083
|
|
|
7084
|
-
|
|
7085
7084
|
|
|
7086
7085
|
|
|
7087
7086
|
|
|
@@ -7190,7 +7189,6 @@ class WebRTCClient extends Emitter {
|
|
|
7190
7189
|
|
|
7191
7190
|
configureMedia(media ) {
|
|
7192
7191
|
this.hasAudio = !!media.audio;
|
|
7193
|
-
this.audioContext = this._isWeb() ? new (window.AudioContext || window.webkitAudioContext)() : null;
|
|
7194
7192
|
this.audioStreams = {};
|
|
7195
7193
|
this.audioElements = {};
|
|
7196
7194
|
}
|
|
@@ -8040,6 +8038,7 @@ class WebRTCClient extends Emitter {
|
|
|
8040
8038
|
|
|
8041
8039
|
changeAudioOutputDevice(id ) {
|
|
8042
8040
|
logger$8.info('Changing audio output device', { id });
|
|
8041
|
+
this.audioOutputDeviceId = id;
|
|
8043
8042
|
|
|
8044
8043
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
8045
8044
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10753,9 +10752,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10753
10752
|
logger$7.info('WebRTC disconnected');
|
|
10754
10753
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10755
10754
|
});
|
|
10756
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10755
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10757
10756
|
logger$7.info('WebRTC early media');
|
|
10758
|
-
this.
|
|
10757
|
+
const callSession = this._createCallSession(session);
|
|
10758
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10759
10759
|
});
|
|
10760
10760
|
|
|
10761
10761
|
this.client.on(this.client.REGISTERED, () => {
|
package/lib/web-rtc-client.js
CHANGED
|
@@ -5668,7 +5668,6 @@ class WebRTCClient extends Emitter {
|
|
|
5668
5668
|
|
|
5669
5669
|
|
|
5670
5670
|
|
|
5671
|
-
|
|
5672
5671
|
|
|
5673
5672
|
|
|
5674
5673
|
|
|
@@ -5777,7 +5776,6 @@ class WebRTCClient extends Emitter {
|
|
|
5777
5776
|
|
|
5778
5777
|
configureMedia(media ) {
|
|
5779
5778
|
this.hasAudio = !!media.audio;
|
|
5780
|
-
this.audioContext = this._isWeb() ? new (window.AudioContext || window.webkitAudioContext)() : null;
|
|
5781
5779
|
this.audioStreams = {};
|
|
5782
5780
|
this.audioElements = {};
|
|
5783
5781
|
}
|
|
@@ -6627,6 +6625,7 @@ class WebRTCClient extends Emitter {
|
|
|
6627
6625
|
|
|
6628
6626
|
changeAudioOutputDevice(id ) {
|
|
6629
6627
|
logger.info('Changing audio output device', { id });
|
|
6628
|
+
this.audioOutputDeviceId = id;
|
|
6630
6629
|
|
|
6631
6630
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
6632
6631
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
package/package.json
CHANGED
|
@@ -1528,9 +1528,10 @@ export default class WebRTCPhone extends Emitter implements Phone {
|
|
|
1528
1528
|
logger.info('WebRTC disconnected');
|
|
1529
1529
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
1530
1530
|
});
|
|
1531
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
1531
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
1532
1532
|
logger.info('WebRTC early media');
|
|
1533
|
-
this.
|
|
1533
|
+
const callSession = this._createCallSession(session);
|
|
1534
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
1534
1535
|
});
|
|
1535
1536
|
|
|
1536
1537
|
this.client.on(this.client.REGISTERED, () => {
|
package/src/web-rtc-client.js
CHANGED
|
@@ -114,7 +114,6 @@ export default class WebRTCClient extends Emitter {
|
|
|
114
114
|
audio: Object | boolean;
|
|
115
115
|
audioElements: { [string]: HTMLAudioElement };
|
|
116
116
|
video: Object | boolean;
|
|
117
|
-
audioContext: ?AudioContext;
|
|
118
117
|
audioStreams: Object;
|
|
119
118
|
audioOutputDeviceId: ?string;
|
|
120
119
|
audioOutputVolume: number;
|
|
@@ -223,7 +222,6 @@ export default class WebRTCClient extends Emitter {
|
|
|
223
222
|
|
|
224
223
|
configureMedia(media: MediaConfig) {
|
|
225
224
|
this.hasAudio = !!media.audio;
|
|
226
|
-
this.audioContext = this._isWeb() ? new (window.AudioContext || window.webkitAudioContext)() : null;
|
|
227
225
|
this.audioStreams = {};
|
|
228
226
|
this.audioElements = {};
|
|
229
227
|
}
|
|
@@ -1073,6 +1071,7 @@ export default class WebRTCClient extends Emitter {
|
|
|
1073
1071
|
|
|
1074
1072
|
changeAudioOutputDevice(id: string) {
|
|
1075
1073
|
logger.info('Changing audio output device', { id });
|
|
1074
|
+
this.audioOutputDeviceId = id;
|
|
1076
1075
|
|
|
1077
1076
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
1078
1077
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|