@webex/web-client-media-engine 3.6.1 → 3.7.1
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 +29 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +29 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -1229,6 +1229,14 @@ class _Stream {
|
|
|
1229
1229
|
track.removeEventListener('unmute', this.handleTrackUnmuted);
|
|
1230
1230
|
track.removeEventListener('ended', this.handleTrackEnded);
|
|
1231
1231
|
}
|
|
1232
|
+
/**
|
|
1233
|
+
* Get the ID of the output stream.
|
|
1234
|
+
*
|
|
1235
|
+
* @returns The ID of the output stream.
|
|
1236
|
+
*/
|
|
1237
|
+
get id() {
|
|
1238
|
+
return this.outputStream.id;
|
|
1239
|
+
}
|
|
1232
1240
|
/**
|
|
1233
1241
|
* Get the track of the output stream.
|
|
1234
1242
|
*
|
|
@@ -1305,6 +1313,14 @@ class _LocalStream extends Stream {
|
|
|
1305
1313
|
get label() {
|
|
1306
1314
|
return this.inputTrack.label;
|
|
1307
1315
|
}
|
|
1316
|
+
/**
|
|
1317
|
+
* Get the readyState of the input track on this stream.
|
|
1318
|
+
*
|
|
1319
|
+
* @returns The readyState of the track.
|
|
1320
|
+
*/
|
|
1321
|
+
get readyState() {
|
|
1322
|
+
return this.inputTrack.readyState;
|
|
1323
|
+
}
|
|
1308
1324
|
/**
|
|
1309
1325
|
* Change the track of the output stream to a different track.
|
|
1310
1326
|
*
|
|
@@ -1386,6 +1402,14 @@ class _LocalStream extends Stream {
|
|
|
1386
1402
|
var _c;
|
|
1387
1403
|
return (_c = this.effects.find((e) => e.name === name)) === null || _c === void 0 ? void 0 : _c.effect;
|
|
1388
1404
|
}
|
|
1405
|
+
/**
|
|
1406
|
+
* Get all the effects from the effects list.
|
|
1407
|
+
*
|
|
1408
|
+
* @returns A list of effect items, each containing the name and the effect itself.
|
|
1409
|
+
*/
|
|
1410
|
+
getAllEffects() {
|
|
1411
|
+
return this.effects;
|
|
1412
|
+
}
|
|
1389
1413
|
/**
|
|
1390
1414
|
* Cleanup the local effects.
|
|
1391
1415
|
*/
|
|
@@ -14326,18 +14350,20 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
14326
14350
|
if (!this.pc.getLocalDescription()) {
|
|
14327
14351
|
this.midPredictor.allocateMidForDatachannel();
|
|
14328
14352
|
}
|
|
14329
|
-
return new Promise((createOfferResolve) => {
|
|
14353
|
+
return new Promise((createOfferResolve, createOfferReject) => {
|
|
14330
14354
|
this.offerAnswerQueue.push(() => __awaiter(this, void 0, void 0, function* () {
|
|
14331
14355
|
var _a;
|
|
14332
14356
|
if (this.setAnswerResolve !== undefined) {
|
|
14333
|
-
|
|
14357
|
+
createOfferReject(new Error(`Tried to start a new createOffer flow before the old one had finished`));
|
|
14358
|
+
return;
|
|
14334
14359
|
}
|
|
14335
14360
|
const setAnswerPromise = new Promise((resolve) => {
|
|
14336
14361
|
this.setAnswerResolve = resolve;
|
|
14337
14362
|
});
|
|
14338
14363
|
const offer = yield this.pc.createOffer();
|
|
14339
14364
|
if (!offer.sdp) {
|
|
14340
|
-
|
|
14365
|
+
createOfferReject(new Error('No SDP offer'));
|
|
14366
|
+
return;
|
|
14341
14367
|
}
|
|
14342
14368
|
offer.sdp = this.preProcessLocalOffer(offer.sdp);
|
|
14343
14369
|
yield this.pc.setLocalDescription(offer);
|