@wazo/sdk 0.38.20 → 0.38.21
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 -0
- package/esm/checker/Checker.js +1 -0
- package/esm/checker/checks/index.js +1 -0
- package/esm/checker/checks/webrtc-transport.js +1 -0
- package/esm/checker/checks/webrtc.js +1 -0
- package/esm/domain/Phone/WebRTCPhone.js +3 -2
- package/esm/index.js +4 -2
- package/esm/simple/Auth.js +4 -2
- package/esm/simple/Configuration.js +4 -2
- package/esm/simple/Phone.js +4 -2
- package/esm/simple/index.js +4 -2
- package/esm/simple/room/LocalParticipant.js +4 -2
- package/esm/simple/room/Participant.js +4 -2
- package/esm/simple/room/RemoteParticipant.js +4 -2
- package/esm/simple/room/Room.js +4 -2
- package/esm/simple/room/SipRoom.js +4 -2
- package/esm/simple/room/Stream.js +4 -2
- package/esm/simple/room/__tests__/Participant.test.js +4 -2
- package/esm/simple/room/__tests__/RemoteParticipant.test.js +4 -2
- package/esm/simple/utils.js +4 -2
- package/esm/web-rtc-client.js +1 -0
- package/lib/__tests__/web-rtc-client.test.js +1 -0
- package/lib/checker/Checker.js +1 -0
- package/lib/checker/checks/index.js +1 -0
- package/lib/checker/checks/webrtc-transport.js +1 -0
- package/lib/checker/checks/webrtc.js +1 -0
- package/lib/domain/Phone/WebRTCPhone.js +3 -2
- package/lib/index.js +4 -2
- package/lib/simple/Auth.js +4 -2
- package/lib/simple/Configuration.js +4 -2
- package/lib/simple/Phone.js +4 -2
- package/lib/simple/index.js +4 -2
- package/lib/simple/room/LocalParticipant.js +4 -2
- package/lib/simple/room/Participant.js +4 -2
- package/lib/simple/room/RemoteParticipant.js +4 -2
- package/lib/simple/room/Room.js +4 -2
- package/lib/simple/room/SipRoom.js +4 -2
- package/lib/simple/room/Stream.js +4 -2
- package/lib/simple/room/__tests__/Participant.test.js +4 -2
- package/lib/simple/room/__tests__/RemoteParticipant.test.js +4 -2
- package/lib/simple/utils.js +4 -2
- package/lib/web-rtc-client.js +1 -0
- package/package.json +1 -1
- package/src/domain/Phone/WebRTCPhone.js +3 -2
- package/src/web-rtc-client.js +1 -0
|
@@ -6613,6 +6613,7 @@ class WebRTCClient extends Emitter {
|
|
|
6613
6613
|
|
|
6614
6614
|
changeAudioOutputDevice(id ) {
|
|
6615
6615
|
logger.info('Changing audio output device', { id });
|
|
6616
|
+
this.audioOutputDeviceId = id;
|
|
6616
6617
|
|
|
6617
6618
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
6618
6619
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
package/esm/checker/Checker.js
CHANGED
|
@@ -7200,6 +7200,7 @@ class WebRTCClient extends Emitter {
|
|
|
7200
7200
|
|
|
7201
7201
|
changeAudioOutputDevice(id ) {
|
|
7202
7202
|
logger$1.info('Changing audio output device', { id });
|
|
7203
|
+
this.audioOutputDeviceId = id;
|
|
7203
7204
|
|
|
7204
7205
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7205
7206
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -7200,6 +7200,7 @@ class WebRTCClient extends Emitter {
|
|
|
7200
7200
|
|
|
7201
7201
|
changeAudioOutputDevice(id ) {
|
|
7202
7202
|
logger.info('Changing audio output device', { id });
|
|
7203
|
+
this.audioOutputDeviceId = id;
|
|
7203
7204
|
|
|
7204
7205
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7205
7206
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -6613,6 +6613,7 @@ class WebRTCClient extends Emitter {
|
|
|
6613
6613
|
|
|
6614
6614
|
changeAudioOutputDevice(id ) {
|
|
6615
6615
|
logger.info('Changing audio output device', { id });
|
|
6616
|
+
this.audioOutputDeviceId = id;
|
|
6616
6617
|
|
|
6617
6618
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
6618
6619
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -6613,6 +6613,7 @@ class WebRTCClient extends Emitter {
|
|
|
6613
6613
|
|
|
6614
6614
|
changeAudioOutputDevice(id ) {
|
|
6615
6615
|
logger.info('Changing audio output device', { id });
|
|
6616
|
+
this.audioOutputDeviceId = id;
|
|
6616
6617
|
|
|
6617
6618
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
6618
6619
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -2431,9 +2431,10 @@ class WebRTCPhone extends Emitter {
|
|
|
2431
2431
|
logger.info('WebRTC disconnected');
|
|
2432
2432
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
2433
2433
|
});
|
|
2434
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
2434
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
2435
2435
|
logger.info('WebRTC early media');
|
|
2436
|
-
this.
|
|
2436
|
+
const callSession = this._createCallSession(session);
|
|
2437
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
2437
2438
|
});
|
|
2438
2439
|
|
|
2439
2440
|
this.client.on(this.client.REGISTERED, () => {
|
package/esm/index.js
CHANGED
|
@@ -7519,6 +7519,7 @@ class WebRTCClient extends Emitter {
|
|
|
7519
7519
|
|
|
7520
7520
|
changeAudioOutputDevice(id ) {
|
|
7521
7521
|
logger$9.info('Changing audio output device', { id });
|
|
7522
|
+
this.audioOutputDeviceId = id;
|
|
7522
7523
|
|
|
7523
7524
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7524
7525
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -11140,9 +11141,10 @@ class WebRTCPhone extends Emitter {
|
|
|
11140
11141
|
logger$7.info('WebRTC disconnected');
|
|
11141
11142
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
11142
11143
|
});
|
|
11143
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
11144
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
11144
11145
|
logger$7.info('WebRTC early media');
|
|
11145
|
-
this.
|
|
11146
|
+
const callSession = this._createCallSession(session);
|
|
11147
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
11146
11148
|
});
|
|
11147
11149
|
|
|
11148
11150
|
this.client.on(this.client.REGISTERED, () => {
|
package/esm/simple/Auth.js
CHANGED
|
@@ -7697,6 +7697,7 @@ class WebRTCClient extends Emitter {
|
|
|
7697
7697
|
|
|
7698
7698
|
changeAudioOutputDevice(id ) {
|
|
7699
7699
|
logger$9.info('Changing audio output device', { id });
|
|
7700
|
+
this.audioOutputDeviceId = id;
|
|
7700
7701
|
|
|
7701
7702
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7702
7703
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10410,9 +10411,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10410
10411
|
logger$8.info('WebRTC disconnected');
|
|
10411
10412
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10412
10413
|
});
|
|
10413
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10414
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10414
10415
|
logger$8.info('WebRTC early media');
|
|
10415
|
-
this.
|
|
10416
|
+
const callSession = this._createCallSession(session);
|
|
10417
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10416
10418
|
});
|
|
10417
10419
|
|
|
10418
10420
|
this.client.on(this.client.REGISTERED, () => {
|
|
@@ -7697,6 +7697,7 @@ class WebRTCClient extends Emitter {
|
|
|
7697
7697
|
|
|
7698
7698
|
changeAudioOutputDevice(id ) {
|
|
7699
7699
|
logger$9.info('Changing audio output device', { id });
|
|
7700
|
+
this.audioOutputDeviceId = id;
|
|
7700
7701
|
|
|
7701
7702
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7702
7703
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10410,9 +10411,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10410
10411
|
logger$8.info('WebRTC disconnected');
|
|
10411
10412
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10412
10413
|
});
|
|
10413
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10414
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10414
10415
|
logger$8.info('WebRTC early media');
|
|
10415
|
-
this.
|
|
10416
|
+
const callSession = this._createCallSession(session);
|
|
10417
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10416
10418
|
});
|
|
10417
10419
|
|
|
10418
10420
|
this.client.on(this.client.REGISTERED, () => {
|
package/esm/simple/Phone.js
CHANGED
|
@@ -7697,6 +7697,7 @@ class WebRTCClient extends Emitter {
|
|
|
7697
7697
|
|
|
7698
7698
|
changeAudioOutputDevice(id ) {
|
|
7699
7699
|
logger$9.info('Changing audio output device', { id });
|
|
7700
|
+
this.audioOutputDeviceId = id;
|
|
7700
7701
|
|
|
7701
7702
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7702
7703
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10410,9 +10411,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10410
10411
|
logger$8.info('WebRTC disconnected');
|
|
10411
10412
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10412
10413
|
});
|
|
10413
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10414
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10414
10415
|
logger$8.info('WebRTC early media');
|
|
10415
|
-
this.
|
|
10416
|
+
const callSession = this._createCallSession(session);
|
|
10417
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10416
10418
|
});
|
|
10417
10419
|
|
|
10418
10420
|
this.client.on(this.client.REGISTERED, () => {
|
package/esm/simple/index.js
CHANGED
|
@@ -8028,6 +8028,7 @@ class WebRTCClient extends Emitter {
|
|
|
8028
8028
|
|
|
8029
8029
|
changeAudioOutputDevice(id ) {
|
|
8030
8030
|
logger$8.info('Changing audio output device', { id });
|
|
8031
|
+
this.audioOutputDeviceId = id;
|
|
8031
8032
|
|
|
8032
8033
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
8033
8034
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10741,9 +10742,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10741
10742
|
logger$7.info('WebRTC disconnected');
|
|
10742
10743
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10743
10744
|
});
|
|
10744
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10745
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10745
10746
|
logger$7.info('WebRTC early media');
|
|
10746
|
-
this.
|
|
10747
|
+
const callSession = this._createCallSession(session);
|
|
10748
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10747
10749
|
});
|
|
10748
10750
|
|
|
10749
10751
|
this.client.on(this.client.REGISTERED, () => {
|
|
@@ -7697,6 +7697,7 @@ class WebRTCClient extends Emitter {
|
|
|
7697
7697
|
|
|
7698
7698
|
changeAudioOutputDevice(id ) {
|
|
7699
7699
|
logger$9.info('Changing audio output device', { id });
|
|
7700
|
+
this.audioOutputDeviceId = id;
|
|
7700
7701
|
|
|
7701
7702
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7702
7703
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10410,9 +10411,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10410
10411
|
logger$8.info('WebRTC disconnected');
|
|
10411
10412
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10412
10413
|
});
|
|
10413
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10414
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10414
10415
|
logger$8.info('WebRTC early media');
|
|
10415
|
-
this.
|
|
10416
|
+
const callSession = this._createCallSession(session);
|
|
10417
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10416
10418
|
});
|
|
10417
10419
|
|
|
10418
10420
|
this.client.on(this.client.REGISTERED, () => {
|
|
@@ -7697,6 +7697,7 @@ class WebRTCClient extends Emitter {
|
|
|
7697
7697
|
|
|
7698
7698
|
changeAudioOutputDevice(id ) {
|
|
7699
7699
|
logger$9.info('Changing audio output device', { id });
|
|
7700
|
+
this.audioOutputDeviceId = id;
|
|
7700
7701
|
|
|
7701
7702
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7702
7703
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10410,9 +10411,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10410
10411
|
logger$8.info('WebRTC disconnected');
|
|
10411
10412
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10412
10413
|
});
|
|
10413
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10414
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10414
10415
|
logger$8.info('WebRTC early media');
|
|
10415
|
-
this.
|
|
10416
|
+
const callSession = this._createCallSession(session);
|
|
10417
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10416
10418
|
});
|
|
10417
10419
|
|
|
10418
10420
|
this.client.on(this.client.REGISTERED, () => {
|
|
@@ -8028,6 +8028,7 @@ class WebRTCClient extends Emitter {
|
|
|
8028
8028
|
|
|
8029
8029
|
changeAudioOutputDevice(id ) {
|
|
8030
8030
|
logger$8.info('Changing audio output device', { id });
|
|
8031
|
+
this.audioOutputDeviceId = id;
|
|
8031
8032
|
|
|
8032
8033
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
8033
8034
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10741,9 +10742,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10741
10742
|
logger$7.info('WebRTC disconnected');
|
|
10742
10743
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10743
10744
|
});
|
|
10744
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10745
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10745
10746
|
logger$7.info('WebRTC early media');
|
|
10746
|
-
this.
|
|
10747
|
+
const callSession = this._createCallSession(session);
|
|
10748
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10747
10749
|
});
|
|
10748
10750
|
|
|
10749
10751
|
this.client.on(this.client.REGISTERED, () => {
|
package/esm/simple/room/Room.js
CHANGED
|
@@ -8028,6 +8028,7 @@ class WebRTCClient extends Emitter {
|
|
|
8028
8028
|
|
|
8029
8029
|
changeAudioOutputDevice(id ) {
|
|
8030
8030
|
logger$8.info('Changing audio output device', { id });
|
|
8031
|
+
this.audioOutputDeviceId = id;
|
|
8031
8032
|
|
|
8032
8033
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
8033
8034
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10741,9 +10742,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10741
10742
|
logger$7.info('WebRTC disconnected');
|
|
10742
10743
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10743
10744
|
});
|
|
10744
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10745
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10745
10746
|
logger$7.info('WebRTC early media');
|
|
10746
|
-
this.
|
|
10747
|
+
const callSession = this._createCallSession(session);
|
|
10748
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10747
10749
|
});
|
|
10748
10750
|
|
|
10749
10751
|
this.client.on(this.client.REGISTERED, () => {
|
|
@@ -8028,6 +8028,7 @@ class WebRTCClient extends Emitter {
|
|
|
8028
8028
|
|
|
8029
8029
|
changeAudioOutputDevice(id ) {
|
|
8030
8030
|
logger$8.info('Changing audio output device', { id });
|
|
8031
|
+
this.audioOutputDeviceId = id;
|
|
8031
8032
|
|
|
8032
8033
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
8033
8034
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10741,9 +10742,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10741
10742
|
logger$7.info('WebRTC disconnected');
|
|
10742
10743
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10743
10744
|
});
|
|
10744
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10745
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10745
10746
|
logger$7.info('WebRTC early media');
|
|
10746
|
-
this.
|
|
10747
|
+
const callSession = this._createCallSession(session);
|
|
10748
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10747
10749
|
});
|
|
10748
10750
|
|
|
10749
10751
|
this.client.on(this.client.REGISTERED, () => {
|
|
@@ -8028,6 +8028,7 @@ class WebRTCClient extends Emitter {
|
|
|
8028
8028
|
|
|
8029
8029
|
changeAudioOutputDevice(id ) {
|
|
8030
8030
|
logger$8.info('Changing audio output device', { id });
|
|
8031
|
+
this.audioOutputDeviceId = id;
|
|
8031
8032
|
|
|
8032
8033
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
8033
8034
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10741,9 +10742,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10741
10742
|
logger$7.info('WebRTC disconnected');
|
|
10742
10743
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10743
10744
|
});
|
|
10744
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10745
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10745
10746
|
logger$7.info('WebRTC early media');
|
|
10746
|
-
this.
|
|
10747
|
+
const callSession = this._createCallSession(session);
|
|
10748
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10747
10749
|
});
|
|
10748
10750
|
|
|
10749
10751
|
this.client.on(this.client.REGISTERED, () => {
|
|
@@ -8028,6 +8028,7 @@ class WebRTCClient extends Emitter {
|
|
|
8028
8028
|
|
|
8029
8029
|
changeAudioOutputDevice(id ) {
|
|
8030
8030
|
logger$8.info('Changing audio output device', { id });
|
|
8031
|
+
this.audioOutputDeviceId = id;
|
|
8031
8032
|
|
|
8032
8033
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
8033
8034
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10741,9 +10742,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10741
10742
|
logger$7.info('WebRTC disconnected');
|
|
10742
10743
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10743
10744
|
});
|
|
10744
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10745
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10745
10746
|
logger$7.info('WebRTC early media');
|
|
10746
|
-
this.
|
|
10747
|
+
const callSession = this._createCallSession(session);
|
|
10748
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10747
10749
|
});
|
|
10748
10750
|
|
|
10749
10751
|
this.client.on(this.client.REGISTERED, () => {
|
|
@@ -8028,6 +8028,7 @@ class WebRTCClient extends Emitter {
|
|
|
8028
8028
|
|
|
8029
8029
|
changeAudioOutputDevice(id ) {
|
|
8030
8030
|
logger$8.info('Changing audio output device', { id });
|
|
8031
|
+
this.audioOutputDeviceId = id;
|
|
8031
8032
|
|
|
8032
8033
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
8033
8034
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10741,9 +10742,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10741
10742
|
logger$7.info('WebRTC disconnected');
|
|
10742
10743
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10743
10744
|
});
|
|
10744
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10745
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10745
10746
|
logger$7.info('WebRTC early media');
|
|
10746
|
-
this.
|
|
10747
|
+
const callSession = this._createCallSession(session);
|
|
10748
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10747
10749
|
});
|
|
10748
10750
|
|
|
10749
10751
|
this.client.on(this.client.REGISTERED, () => {
|
package/esm/simple/utils.js
CHANGED
|
@@ -8028,6 +8028,7 @@ class WebRTCClient extends Emitter {
|
|
|
8028
8028
|
|
|
8029
8029
|
changeAudioOutputDevice(id ) {
|
|
8030
8030
|
logger$8.info('Changing audio output device', { id });
|
|
8031
|
+
this.audioOutputDeviceId = id;
|
|
8031
8032
|
|
|
8032
8033
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
8033
8034
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10741,9 +10742,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10741
10742
|
logger$7.info('WebRTC disconnected');
|
|
10742
10743
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10743
10744
|
});
|
|
10744
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10745
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10745
10746
|
logger$7.info('WebRTC early media');
|
|
10746
|
-
this.
|
|
10747
|
+
const callSession = this._createCallSession(session);
|
|
10748
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10747
10749
|
});
|
|
10748
10750
|
|
|
10749
10751
|
this.client.on(this.client.REGISTERED, () => {
|
package/esm/web-rtc-client.js
CHANGED
|
@@ -6616,6 +6616,7 @@ class WebRTCClient extends Emitter {
|
|
|
6616
6616
|
|
|
6617
6617
|
changeAudioOutputDevice(id ) {
|
|
6618
6618
|
logger.info('Changing audio output device', { id });
|
|
6619
|
+
this.audioOutputDeviceId = id;
|
|
6619
6620
|
|
|
6620
6621
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
6621
6622
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -6622,6 +6622,7 @@ class WebRTCClient extends Emitter {
|
|
|
6622
6622
|
|
|
6623
6623
|
changeAudioOutputDevice(id ) {
|
|
6624
6624
|
logger.info('Changing audio output device', { id });
|
|
6625
|
+
this.audioOutputDeviceId = id;
|
|
6625
6626
|
|
|
6626
6627
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
6627
6628
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
package/lib/checker/Checker.js
CHANGED
|
@@ -7210,6 +7210,7 @@ class WebRTCClient extends Emitter {
|
|
|
7210
7210
|
|
|
7211
7211
|
changeAudioOutputDevice(id ) {
|
|
7212
7212
|
logger$1.info('Changing audio output device', { id });
|
|
7213
|
+
this.audioOutputDeviceId = id;
|
|
7213
7214
|
|
|
7214
7215
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7215
7216
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -7210,6 +7210,7 @@ class WebRTCClient extends Emitter {
|
|
|
7210
7210
|
|
|
7211
7211
|
changeAudioOutputDevice(id ) {
|
|
7212
7212
|
logger.info('Changing audio output device', { id });
|
|
7213
|
+
this.audioOutputDeviceId = id;
|
|
7213
7214
|
|
|
7214
7215
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7215
7216
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -6622,6 +6622,7 @@ class WebRTCClient extends Emitter {
|
|
|
6622
6622
|
|
|
6623
6623
|
changeAudioOutputDevice(id ) {
|
|
6624
6624
|
logger.info('Changing audio output device', { id });
|
|
6625
|
+
this.audioOutputDeviceId = id;
|
|
6625
6626
|
|
|
6626
6627
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
6627
6628
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -6622,6 +6622,7 @@ class WebRTCClient extends Emitter {
|
|
|
6622
6622
|
|
|
6623
6623
|
changeAudioOutputDevice(id ) {
|
|
6624
6624
|
logger.info('Changing audio output device', { id });
|
|
6625
|
+
this.audioOutputDeviceId = id;
|
|
6625
6626
|
|
|
6626
6627
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
6627
6628
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -2440,9 +2440,10 @@ class WebRTCPhone extends Emitter {
|
|
|
2440
2440
|
logger.info('WebRTC disconnected');
|
|
2441
2441
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
2442
2442
|
});
|
|
2443
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
2443
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
2444
2444
|
logger.info('WebRTC early media');
|
|
2445
|
-
this.
|
|
2445
|
+
const callSession = this._createCallSession(session);
|
|
2446
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
2446
2447
|
});
|
|
2447
2448
|
|
|
2448
2449
|
this.client.on(this.client.REGISTERED, () => {
|
package/lib/index.js
CHANGED
|
@@ -7530,6 +7530,7 @@ class WebRTCClient extends Emitter {
|
|
|
7530
7530
|
|
|
7531
7531
|
changeAudioOutputDevice(id ) {
|
|
7532
7532
|
logger$9.info('Changing audio output device', { id });
|
|
7533
|
+
this.audioOutputDeviceId = id;
|
|
7533
7534
|
|
|
7534
7535
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7535
7536
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -11151,9 +11152,10 @@ class WebRTCPhone extends Emitter {
|
|
|
11151
11152
|
logger$7.info('WebRTC disconnected');
|
|
11152
11153
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
11153
11154
|
});
|
|
11154
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
11155
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
11155
11156
|
logger$7.info('WebRTC early media');
|
|
11156
|
-
this.
|
|
11157
|
+
const callSession = this._createCallSession(session);
|
|
11158
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
11157
11159
|
});
|
|
11158
11160
|
|
|
11159
11161
|
this.client.on(this.client.REGISTERED, () => {
|
package/lib/simple/Auth.js
CHANGED
|
@@ -7709,6 +7709,7 @@ class WebRTCClient extends Emitter {
|
|
|
7709
7709
|
|
|
7710
7710
|
changeAudioOutputDevice(id ) {
|
|
7711
7711
|
logger$9.info('Changing audio output device', { id });
|
|
7712
|
+
this.audioOutputDeviceId = id;
|
|
7712
7713
|
|
|
7713
7714
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7714
7715
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10422,9 +10423,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10422
10423
|
logger$8.info('WebRTC disconnected');
|
|
10423
10424
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10424
10425
|
});
|
|
10425
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10426
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10426
10427
|
logger$8.info('WebRTC early media');
|
|
10427
|
-
this.
|
|
10428
|
+
const callSession = this._createCallSession(session);
|
|
10429
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10428
10430
|
});
|
|
10429
10431
|
|
|
10430
10432
|
this.client.on(this.client.REGISTERED, () => {
|
|
@@ -7707,6 +7707,7 @@ class WebRTCClient extends Emitter {
|
|
|
7707
7707
|
|
|
7708
7708
|
changeAudioOutputDevice(id ) {
|
|
7709
7709
|
logger$9.info('Changing audio output device', { id });
|
|
7710
|
+
this.audioOutputDeviceId = id;
|
|
7710
7711
|
|
|
7711
7712
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7712
7713
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10420,9 +10421,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10420
10421
|
logger$8.info('WebRTC disconnected');
|
|
10421
10422
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10422
10423
|
});
|
|
10423
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10424
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10424
10425
|
logger$8.info('WebRTC early media');
|
|
10425
|
-
this.
|
|
10426
|
+
const callSession = this._createCallSession(session);
|
|
10427
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10426
10428
|
});
|
|
10427
10429
|
|
|
10428
10430
|
this.client.on(this.client.REGISTERED, () => {
|
package/lib/simple/Phone.js
CHANGED
|
@@ -7707,6 +7707,7 @@ class WebRTCClient extends Emitter {
|
|
|
7707
7707
|
|
|
7708
7708
|
changeAudioOutputDevice(id ) {
|
|
7709
7709
|
logger$9.info('Changing audio output device', { id });
|
|
7710
|
+
this.audioOutputDeviceId = id;
|
|
7710
7711
|
|
|
7711
7712
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7712
7713
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10420,9 +10421,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10420
10421
|
logger$8.info('WebRTC disconnected');
|
|
10421
10422
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10422
10423
|
});
|
|
10423
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10424
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10424
10425
|
logger$8.info('WebRTC early media');
|
|
10425
|
-
this.
|
|
10426
|
+
const callSession = this._createCallSession(session);
|
|
10427
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10426
10428
|
});
|
|
10427
10429
|
|
|
10428
10430
|
this.client.on(this.client.REGISTERED, () => {
|
package/lib/simple/index.js
CHANGED
|
@@ -8038,6 +8038,7 @@ class WebRTCClient extends Emitter {
|
|
|
8038
8038
|
|
|
8039
8039
|
changeAudioOutputDevice(id ) {
|
|
8040
8040
|
logger$8.info('Changing audio output device', { id });
|
|
8041
|
+
this.audioOutputDeviceId = id;
|
|
8041
8042
|
|
|
8042
8043
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
8043
8044
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10751,9 +10752,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10751
10752
|
logger$7.info('WebRTC disconnected');
|
|
10752
10753
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10753
10754
|
});
|
|
10754
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10755
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10755
10756
|
logger$7.info('WebRTC early media');
|
|
10756
|
-
this.
|
|
10757
|
+
const callSession = this._createCallSession(session);
|
|
10758
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10757
10759
|
});
|
|
10758
10760
|
|
|
10759
10761
|
this.client.on(this.client.REGISTERED, () => {
|
|
@@ -7707,6 +7707,7 @@ class WebRTCClient extends Emitter {
|
|
|
7707
7707
|
|
|
7708
7708
|
changeAudioOutputDevice(id ) {
|
|
7709
7709
|
logger$9.info('Changing audio output device', { id });
|
|
7710
|
+
this.audioOutputDeviceId = id;
|
|
7710
7711
|
|
|
7711
7712
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7712
7713
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10420,9 +10421,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10420
10421
|
logger$8.info('WebRTC disconnected');
|
|
10421
10422
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10422
10423
|
});
|
|
10423
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10424
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10424
10425
|
logger$8.info('WebRTC early media');
|
|
10425
|
-
this.
|
|
10426
|
+
const callSession = this._createCallSession(session);
|
|
10427
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10426
10428
|
});
|
|
10427
10429
|
|
|
10428
10430
|
this.client.on(this.client.REGISTERED, () => {
|
|
@@ -7707,6 +7707,7 @@ class WebRTCClient extends Emitter {
|
|
|
7707
7707
|
|
|
7708
7708
|
changeAudioOutputDevice(id ) {
|
|
7709
7709
|
logger$9.info('Changing audio output device', { id });
|
|
7710
|
+
this.audioOutputDeviceId = id;
|
|
7710
7711
|
|
|
7711
7712
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
7712
7713
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10420,9 +10421,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10420
10421
|
logger$8.info('WebRTC disconnected');
|
|
10421
10422
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10422
10423
|
});
|
|
10423
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10424
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10424
10425
|
logger$8.info('WebRTC early media');
|
|
10425
|
-
this.
|
|
10426
|
+
const callSession = this._createCallSession(session);
|
|
10427
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10426
10428
|
});
|
|
10427
10429
|
|
|
10428
10430
|
this.client.on(this.client.REGISTERED, () => {
|
|
@@ -8038,6 +8038,7 @@ class WebRTCClient extends Emitter {
|
|
|
8038
8038
|
|
|
8039
8039
|
changeAudioOutputDevice(id ) {
|
|
8040
8040
|
logger$8.info('Changing audio output device', { id });
|
|
8041
|
+
this.audioOutputDeviceId = id;
|
|
8041
8042
|
|
|
8042
8043
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
8043
8044
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10751,9 +10752,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10751
10752
|
logger$7.info('WebRTC disconnected');
|
|
10752
10753
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10753
10754
|
});
|
|
10754
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10755
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10755
10756
|
logger$7.info('WebRTC early media');
|
|
10756
|
-
this.
|
|
10757
|
+
const callSession = this._createCallSession(session);
|
|
10758
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10757
10759
|
});
|
|
10758
10760
|
|
|
10759
10761
|
this.client.on(this.client.REGISTERED, () => {
|
package/lib/simple/room/Room.js
CHANGED
|
@@ -8040,6 +8040,7 @@ class WebRTCClient extends Emitter {
|
|
|
8040
8040
|
|
|
8041
8041
|
changeAudioOutputDevice(id ) {
|
|
8042
8042
|
logger$8.info('Changing audio output device', { id });
|
|
8043
|
+
this.audioOutputDeviceId = id;
|
|
8043
8044
|
|
|
8044
8045
|
Object.values(this.audioElements).forEach(audioElement => {
|
|
8045
8046
|
// `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
|
|
@@ -10753,9 +10754,10 @@ class WebRTCPhone extends Emitter {
|
|
|
10753
10754
|
logger$7.info('WebRTC disconnected');
|
|
10754
10755
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
10755
10756
|
});
|
|
10756
|
-
this.client.on(this.client.ON_EARLY_MEDIA,
|
|
10757
|
+
this.client.on(this.client.ON_EARLY_MEDIA, session => {
|
|
10757
10758
|
logger$7.info('WebRTC early media');
|
|
10758
|
-
this.
|
|
10759
|
+
const callSession = this._createCallSession(session);
|
|
10760
|
+
this.eventEmitter.emit(ON_EARLY_MEDIA, callSession);
|
|
10759
10761
|
});
|
|
10760
10762
|
|
|
10761
10763
|
this.client.on(this.client.REGISTERED, () => {
|