@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.
Files changed (46) hide show
  1. package/dist/wazo-sdk.js +2 -2
  2. package/esm/__tests__/web-rtc-client.test.js +1 -0
  3. package/esm/checker/Checker.js +1 -0
  4. package/esm/checker/checks/index.js +1 -0
  5. package/esm/checker/checks/webrtc-transport.js +1 -0
  6. package/esm/checker/checks/webrtc.js +1 -0
  7. package/esm/domain/Phone/WebRTCPhone.js +3 -2
  8. package/esm/index.js +4 -2
  9. package/esm/simple/Auth.js +4 -2
  10. package/esm/simple/Configuration.js +4 -2
  11. package/esm/simple/Phone.js +4 -2
  12. package/esm/simple/index.js +4 -2
  13. package/esm/simple/room/LocalParticipant.js +4 -2
  14. package/esm/simple/room/Participant.js +4 -2
  15. package/esm/simple/room/RemoteParticipant.js +4 -2
  16. package/esm/simple/room/Room.js +4 -2
  17. package/esm/simple/room/SipRoom.js +4 -2
  18. package/esm/simple/room/Stream.js +4 -2
  19. package/esm/simple/room/__tests__/Participant.test.js +4 -2
  20. package/esm/simple/room/__tests__/RemoteParticipant.test.js +4 -2
  21. package/esm/simple/utils.js +4 -2
  22. package/esm/web-rtc-client.js +1 -0
  23. package/lib/__tests__/web-rtc-client.test.js +1 -0
  24. package/lib/checker/Checker.js +1 -0
  25. package/lib/checker/checks/index.js +1 -0
  26. package/lib/checker/checks/webrtc-transport.js +1 -0
  27. package/lib/checker/checks/webrtc.js +1 -0
  28. package/lib/domain/Phone/WebRTCPhone.js +3 -2
  29. package/lib/index.js +4 -2
  30. package/lib/simple/Auth.js +4 -2
  31. package/lib/simple/Configuration.js +4 -2
  32. package/lib/simple/Phone.js +4 -2
  33. package/lib/simple/index.js +4 -2
  34. package/lib/simple/room/LocalParticipant.js +4 -2
  35. package/lib/simple/room/Participant.js +4 -2
  36. package/lib/simple/room/RemoteParticipant.js +4 -2
  37. package/lib/simple/room/Room.js +4 -2
  38. package/lib/simple/room/SipRoom.js +4 -2
  39. package/lib/simple/room/Stream.js +4 -2
  40. package/lib/simple/room/__tests__/Participant.test.js +4 -2
  41. package/lib/simple/room/__tests__/RemoteParticipant.test.js +4 -2
  42. package/lib/simple/utils.js +4 -2
  43. package/lib/web-rtc-client.js +1 -0
  44. package/package.json +1 -1
  45. package/src/domain/Phone/WebRTCPhone.js +3 -2
  46. package/src/web-rtc-client.js +1 -0
@@ -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.eventEmitter.emit(ON_EARLY_MEDIA);
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, () => {
@@ -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.eventEmitter.emit(ON_EARLY_MEDIA);
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, () => {
@@ -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.eventEmitter.emit(ON_EARLY_MEDIA);
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, () => {
@@ -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.eventEmitter.emit(ON_EARLY_MEDIA);
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, () => {
@@ -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.eventEmitter.emit(ON_EARLY_MEDIA);
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, () => {
@@ -6627,6 +6627,7 @@ class WebRTCClient extends Emitter {
6627
6627
 
6628
6628
  changeAudioOutputDevice(id ) {
6629
6629
  logger.info('Changing audio output device', { id });
6630
+ this.audioOutputDeviceId = id;
6630
6631
 
6631
6632
  Object.values(this.audioElements).forEach(audioElement => {
6632
6633
  // `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wazo/sdk",
3
- "version": "0.38.20",
3
+ "version": "0.38.21",
4
4
  "description": "Wazo's JavaScript Software Development Kit.",
5
5
  "main": "dist/wazo-sdk.js",
6
6
  "author": "Wazo (http://wazo.io)",
@@ -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.eventEmitter.emit(ON_EARLY_MEDIA);
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, () => {
@@ -1073,6 +1073,7 @@ export default class WebRTCClient extends Emitter {
1073
1073
 
1074
1074
  changeAudioOutputDevice(id: string) {
1075
1075
  logger.info('Changing audio output device', { id });
1076
+ this.audioOutputDeviceId = id;
1076
1077
 
1077
1078
  Object.values(this.audioElements).forEach(audioElement => {
1078
1079
  // `setSinkId` method is not included in any flow type definitions for HTMLAudioElements but is a valid method