@webex/web-client-media-engine 3.11.5 → 3.11.6
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/cjs/index.js +30 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +30 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -1486,6 +1486,36 @@ class _LocalStream extends Stream {
|
|
|
1486
1486
|
getEffects() {
|
|
1487
1487
|
return this.effects;
|
|
1488
1488
|
}
|
|
1489
|
+
/**
|
|
1490
|
+
* Method to serialize data about input, output streams
|
|
1491
|
+
* and also effects from LocalStream.
|
|
1492
|
+
*
|
|
1493
|
+
* @returns - A JSON-compatible object representation with data from LocalStream.
|
|
1494
|
+
*/
|
|
1495
|
+
toJSON() {
|
|
1496
|
+
return {
|
|
1497
|
+
muted: this.muted,
|
|
1498
|
+
label: this.label,
|
|
1499
|
+
readyState: this.readyState,
|
|
1500
|
+
inputStream: {
|
|
1501
|
+
active: this.inputStream.active,
|
|
1502
|
+
id: this.inputStream.id,
|
|
1503
|
+
enabled: this.inputTrack.enabled,
|
|
1504
|
+
muted: this.inputTrack.muted,
|
|
1505
|
+
},
|
|
1506
|
+
outputStream: {
|
|
1507
|
+
active: this.outputStream.active,
|
|
1508
|
+
id: this.outputStream.id,
|
|
1509
|
+
},
|
|
1510
|
+
effects: this.effects.map((effect) => {
|
|
1511
|
+
return {
|
|
1512
|
+
id: effect.id,
|
|
1513
|
+
kind: effect.kind,
|
|
1514
|
+
isEnabled: effect.isEnabled,
|
|
1515
|
+
};
|
|
1516
|
+
}),
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1489
1519
|
/**
|
|
1490
1520
|
* Cleanup the local effects.
|
|
1491
1521
|
*/
|