@wazo/sdk 0.38.8 → 0.38.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.
@@ -1433,9 +1433,7 @@ class WebRTCPhone extends Emitter {
1433
1433
 
1434
1434
  try {
1435
1435
  if (this.currentScreenShare.stream) {
1436
- this.currentScreenShare.stream.getTracks()
1437
- .filter(track => track.kind === 'video')
1438
- .forEach(track => track.stop());
1436
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
1439
1437
  }
1440
1438
 
1441
1439
  if (restoreLocalStream) {
package/esm/index.js CHANGED
@@ -10059,9 +10059,7 @@ class WebRTCPhone extends Emitter {
10059
10059
 
10060
10060
  try {
10061
10061
  if (this.currentScreenShare.stream) {
10062
- this.currentScreenShare.stream.getTracks()
10063
- .filter(track => track.kind === 'video')
10064
- .forEach(track => track.stop());
10062
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
10065
10063
  }
10066
10064
 
10067
10065
  if (restoreLocalStream) {
@@ -9333,9 +9333,7 @@ class WebRTCPhone extends Emitter {
9333
9333
 
9334
9334
  try {
9335
9335
  if (this.currentScreenShare.stream) {
9336
- this.currentScreenShare.stream.getTracks()
9337
- .filter(track => track.kind === 'video')
9338
- .forEach(track => track.stop());
9336
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9339
9337
  }
9340
9338
 
9341
9339
  if (restoreLocalStream) {
@@ -9333,9 +9333,7 @@ class WebRTCPhone extends Emitter {
9333
9333
 
9334
9334
  try {
9335
9335
  if (this.currentScreenShare.stream) {
9336
- this.currentScreenShare.stream.getTracks()
9337
- .filter(track => track.kind === 'video')
9338
- .forEach(track => track.stop());
9336
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9339
9337
  }
9340
9338
 
9341
9339
  if (restoreLocalStream) {
@@ -9333,9 +9333,7 @@ class WebRTCPhone extends Emitter {
9333
9333
 
9334
9334
  try {
9335
9335
  if (this.currentScreenShare.stream) {
9336
- this.currentScreenShare.stream.getTracks()
9337
- .filter(track => track.kind === 'video')
9338
- .forEach(track => track.stop());
9336
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9339
9337
  }
9340
9338
 
9341
9339
  if (restoreLocalStream) {
@@ -9634,9 +9634,7 @@ class WebRTCPhone extends Emitter {
9634
9634
 
9635
9635
  try {
9636
9636
  if (this.currentScreenShare.stream) {
9637
- this.currentScreenShare.stream.getTracks()
9638
- .filter(track => track.kind === 'video')
9639
- .forEach(track => track.stop());
9637
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9640
9638
  }
9641
9639
 
9642
9640
  if (restoreLocalStream) {
@@ -9634,9 +9634,7 @@ class WebRTCPhone extends Emitter {
9634
9634
 
9635
9635
  try {
9636
9636
  if (this.currentScreenShare.stream) {
9637
- this.currentScreenShare.stream.getTracks()
9638
- .filter(track => track.kind === 'video')
9639
- .forEach(track => track.stop());
9637
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9640
9638
  }
9641
9639
 
9642
9640
  if (restoreLocalStream) {
@@ -9634,9 +9634,7 @@ class WebRTCPhone extends Emitter {
9634
9634
 
9635
9635
  try {
9636
9636
  if (this.currentScreenShare.stream) {
9637
- this.currentScreenShare.stream.getTracks()
9638
- .filter(track => track.kind === 'video')
9639
- .forEach(track => track.stop());
9637
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9640
9638
  }
9641
9639
 
9642
9640
  if (restoreLocalStream) {
@@ -9634,9 +9634,7 @@ class WebRTCPhone extends Emitter {
9634
9634
 
9635
9635
  try {
9636
9636
  if (this.currentScreenShare.stream) {
9637
- this.currentScreenShare.stream.getTracks()
9638
- .filter(track => track.kind === 'video')
9639
- .forEach(track => track.stop());
9637
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9640
9638
  }
9641
9639
 
9642
9640
  if (restoreLocalStream) {
@@ -9634,9 +9634,7 @@ class WebRTCPhone extends Emitter {
9634
9634
 
9635
9635
  try {
9636
9636
  if (this.currentScreenShare.stream) {
9637
- this.currentScreenShare.stream.getTracks()
9638
- .filter(track => track.kind === 'video')
9639
- .forEach(track => track.stop());
9637
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9640
9638
  }
9641
9639
 
9642
9640
  if (restoreLocalStream) {
@@ -9634,9 +9634,7 @@ class WebRTCPhone extends Emitter {
9634
9634
 
9635
9635
  try {
9636
9636
  if (this.currentScreenShare.stream) {
9637
- this.currentScreenShare.stream.getTracks()
9638
- .filter(track => track.kind === 'video')
9639
- .forEach(track => track.stop());
9637
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9640
9638
  }
9641
9639
 
9642
9640
  if (restoreLocalStream) {
@@ -9634,9 +9634,7 @@ class WebRTCPhone extends Emitter {
9634
9634
 
9635
9635
  try {
9636
9636
  if (this.currentScreenShare.stream) {
9637
- this.currentScreenShare.stream.getTracks()
9638
- .filter(track => track.kind === 'video')
9639
- .forEach(track => track.stop());
9637
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9640
9638
  }
9641
9639
 
9642
9640
  if (restoreLocalStream) {
@@ -9634,9 +9634,7 @@ class WebRTCPhone extends Emitter {
9634
9634
 
9635
9635
  try {
9636
9636
  if (this.currentScreenShare.stream) {
9637
- this.currentScreenShare.stream.getTracks()
9638
- .filter(track => track.kind === 'video')
9639
- .forEach(track => track.stop());
9637
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9640
9638
  }
9641
9639
 
9642
9640
  if (restoreLocalStream) {
@@ -9634,9 +9634,7 @@ class WebRTCPhone extends Emitter {
9634
9634
 
9635
9635
  try {
9636
9636
  if (this.currentScreenShare.stream) {
9637
- this.currentScreenShare.stream.getTracks()
9638
- .filter(track => track.kind === 'video')
9639
- .forEach(track => track.stop());
9637
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9640
9638
  }
9641
9639
 
9642
9640
  if (restoreLocalStream) {
@@ -9634,9 +9634,7 @@ class WebRTCPhone extends Emitter {
9634
9634
 
9635
9635
  try {
9636
9636
  if (this.currentScreenShare.stream) {
9637
- this.currentScreenShare.stream.getTracks()
9638
- .filter(track => track.kind === 'video')
9639
- .forEach(track => track.stop());
9637
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9640
9638
  }
9641
9639
 
9642
9640
  if (restoreLocalStream) {
@@ -1442,9 +1442,7 @@ class WebRTCPhone extends Emitter {
1442
1442
 
1443
1443
  try {
1444
1444
  if (this.currentScreenShare.stream) {
1445
- this.currentScreenShare.stream.getTracks()
1446
- .filter(track => track.kind === 'video')
1447
- .forEach(track => track.stop());
1445
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
1448
1446
  }
1449
1447
 
1450
1448
  if (restoreLocalStream) {
package/lib/index.js CHANGED
@@ -10070,9 +10070,7 @@ class WebRTCPhone extends Emitter {
10070
10070
 
10071
10071
  try {
10072
10072
  if (this.currentScreenShare.stream) {
10073
- this.currentScreenShare.stream.getTracks()
10074
- .filter(track => track.kind === 'video')
10075
- .forEach(track => track.stop());
10073
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
10076
10074
  }
10077
10075
 
10078
10076
  if (restoreLocalStream) {
@@ -9345,9 +9345,7 @@ class WebRTCPhone extends Emitter {
9345
9345
 
9346
9346
  try {
9347
9347
  if (this.currentScreenShare.stream) {
9348
- this.currentScreenShare.stream.getTracks()
9349
- .filter(track => track.kind === 'video')
9350
- .forEach(track => track.stop());
9348
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9351
9349
  }
9352
9350
 
9353
9351
  if (restoreLocalStream) {
@@ -9343,9 +9343,7 @@ class WebRTCPhone extends Emitter {
9343
9343
 
9344
9344
  try {
9345
9345
  if (this.currentScreenShare.stream) {
9346
- this.currentScreenShare.stream.getTracks()
9347
- .filter(track => track.kind === 'video')
9348
- .forEach(track => track.stop());
9346
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9349
9347
  }
9350
9348
 
9351
9349
  if (restoreLocalStream) {
@@ -9343,9 +9343,7 @@ class WebRTCPhone extends Emitter {
9343
9343
 
9344
9344
  try {
9345
9345
  if (this.currentScreenShare.stream) {
9346
- this.currentScreenShare.stream.getTracks()
9347
- .filter(track => track.kind === 'video')
9348
- .forEach(track => track.stop());
9346
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9349
9347
  }
9350
9348
 
9351
9349
  if (restoreLocalStream) {
@@ -9644,9 +9644,7 @@ class WebRTCPhone extends Emitter {
9644
9644
 
9645
9645
  try {
9646
9646
  if (this.currentScreenShare.stream) {
9647
- this.currentScreenShare.stream.getTracks()
9648
- .filter(track => track.kind === 'video')
9649
- .forEach(track => track.stop());
9647
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9650
9648
  }
9651
9649
 
9652
9650
  if (restoreLocalStream) {
@@ -9644,9 +9644,7 @@ class WebRTCPhone extends Emitter {
9644
9644
 
9645
9645
  try {
9646
9646
  if (this.currentScreenShare.stream) {
9647
- this.currentScreenShare.stream.getTracks()
9648
- .filter(track => track.kind === 'video')
9649
- .forEach(track => track.stop());
9647
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9650
9648
  }
9651
9649
 
9652
9650
  if (restoreLocalStream) {
@@ -9644,9 +9644,7 @@ class WebRTCPhone extends Emitter {
9644
9644
 
9645
9645
  try {
9646
9646
  if (this.currentScreenShare.stream) {
9647
- this.currentScreenShare.stream.getTracks()
9648
- .filter(track => track.kind === 'video')
9649
- .forEach(track => track.stop());
9647
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9650
9648
  }
9651
9649
 
9652
9650
  if (restoreLocalStream) {
@@ -9644,9 +9644,7 @@ class WebRTCPhone extends Emitter {
9644
9644
 
9645
9645
  try {
9646
9646
  if (this.currentScreenShare.stream) {
9647
- this.currentScreenShare.stream.getTracks()
9648
- .filter(track => track.kind === 'video')
9649
- .forEach(track => track.stop());
9647
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9650
9648
  }
9651
9649
 
9652
9650
  if (restoreLocalStream) {
@@ -9646,9 +9646,7 @@ class WebRTCPhone extends Emitter {
9646
9646
 
9647
9647
  try {
9648
9648
  if (this.currentScreenShare.stream) {
9649
- this.currentScreenShare.stream.getTracks()
9650
- .filter(track => track.kind === 'video')
9651
- .forEach(track => track.stop());
9649
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9652
9650
  }
9653
9651
 
9654
9652
  if (restoreLocalStream) {
@@ -9644,9 +9644,7 @@ class WebRTCPhone extends Emitter {
9644
9644
 
9645
9645
  try {
9646
9646
  if (this.currentScreenShare.stream) {
9647
- this.currentScreenShare.stream.getTracks()
9648
- .filter(track => track.kind === 'video')
9649
- .forEach(track => track.stop());
9647
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9650
9648
  }
9651
9649
 
9652
9650
  if (restoreLocalStream) {
@@ -9644,9 +9644,7 @@ class WebRTCPhone extends Emitter {
9644
9644
 
9645
9645
  try {
9646
9646
  if (this.currentScreenShare.stream) {
9647
- this.currentScreenShare.stream.getTracks()
9648
- .filter(track => track.kind === 'video')
9649
- .forEach(track => track.stop());
9647
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9650
9648
  }
9651
9649
 
9652
9650
  if (restoreLocalStream) {
@@ -9644,9 +9644,7 @@ class WebRTCPhone extends Emitter {
9644
9644
 
9645
9645
  try {
9646
9646
  if (this.currentScreenShare.stream) {
9647
- this.currentScreenShare.stream.getTracks()
9648
- .filter(track => track.kind === 'video')
9649
- .forEach(track => track.stop());
9647
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9650
9648
  }
9651
9649
 
9652
9650
  if (restoreLocalStream) {
@@ -9644,9 +9644,7 @@ class WebRTCPhone extends Emitter {
9644
9644
 
9645
9645
  try {
9646
9646
  if (this.currentScreenShare.stream) {
9647
- this.currentScreenShare.stream.getTracks()
9648
- .filter(track => track.kind === 'video')
9649
- .forEach(track => track.stop());
9647
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9650
9648
  }
9651
9649
 
9652
9650
  if (restoreLocalStream) {
@@ -9646,9 +9646,7 @@ class WebRTCPhone extends Emitter {
9646
9646
 
9647
9647
  try {
9648
9648
  if (this.currentScreenShare.stream) {
9649
- this.currentScreenShare.stream.getTracks()
9650
- .filter(track => track.kind === 'video')
9651
- .forEach(track => track.stop());
9649
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
9652
9650
  }
9653
9651
 
9654
9652
  if (restoreLocalStream) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wazo/sdk",
3
- "version": "0.38.8",
3
+ "version": "0.38.9",
4
4
  "description": "Wazo's JavaScript Software Development Kit.",
5
5
  "main": "dist/wazo-sdk.js",
6
6
  "author": "Wazo (http://wazo.io)",
@@ -531,9 +531,7 @@ export default class WebRTCPhone extends Emitter implements Phone {
531
531
 
532
532
  try {
533
533
  if (this.currentScreenShare.stream) {
534
- this.currentScreenShare.stream.getTracks()
535
- .filter(track => track.kind === 'video')
536
- .forEach(track => track.stop());
534
+ this.currentScreenShare.stream.getTracks().forEach(track => track.stop());
537
535
  }
538
536
 
539
537
  if (restoreLocalStream) {