@lokutor/sdk 1.1.33 → 1.1.35
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/index.js +5 -0
- package/dist/index.mjs +5 -0
- package/package.json +1 -1
- package/src/browser-audio.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -474,6 +474,11 @@ var BrowserAudioManager = class {
|
|
|
474
474
|
*/
|
|
475
475
|
setMuted(muted) {
|
|
476
476
|
this.isMuted = muted;
|
|
477
|
+
if (this.mediaStream) {
|
|
478
|
+
this.mediaStream.getAudioTracks().forEach((track) => {
|
|
479
|
+
track.enabled = !muted;
|
|
480
|
+
});
|
|
481
|
+
}
|
|
477
482
|
}
|
|
478
483
|
/**
|
|
479
484
|
* Get current mute state
|
package/dist/index.mjs
CHANGED
|
@@ -427,6 +427,11 @@ var BrowserAudioManager = class {
|
|
|
427
427
|
*/
|
|
428
428
|
setMuted(muted) {
|
|
429
429
|
this.isMuted = muted;
|
|
430
|
+
if (this.mediaStream) {
|
|
431
|
+
this.mediaStream.getAudioTracks().forEach((track) => {
|
|
432
|
+
track.enabled = !muted;
|
|
433
|
+
});
|
|
434
|
+
}
|
|
430
435
|
}
|
|
431
436
|
/**
|
|
432
437
|
* Get current mute state
|
package/package.json
CHANGED
package/src/browser-audio.ts
CHANGED
|
@@ -314,6 +314,11 @@ export class BrowserAudioManager {
|
|
|
314
314
|
*/
|
|
315
315
|
setMuted(muted: boolean): void {
|
|
316
316
|
this.isMuted = muted;
|
|
317
|
+
if (this.mediaStream) {
|
|
318
|
+
this.mediaStream.getAudioTracks().forEach(track => {
|
|
319
|
+
track.enabled = !muted;
|
|
320
|
+
});
|
|
321
|
+
}
|
|
317
322
|
}
|
|
318
323
|
|
|
319
324
|
/**
|