@webex/web-client-media-engine 3.7.0 → 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 +5 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +5 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -14346,18 +14346,20 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
14346
14346
|
if (!this.pc.getLocalDescription()) {
|
|
14347
14347
|
this.midPredictor.allocateMidForDatachannel();
|
|
14348
14348
|
}
|
|
14349
|
-
return new Promise((createOfferResolve) => {
|
|
14349
|
+
return new Promise((createOfferResolve, createOfferReject) => {
|
|
14350
14350
|
this.offerAnswerQueue.push(() => __awaiter(this, void 0, void 0, function* () {
|
|
14351
14351
|
var _a;
|
|
14352
14352
|
if (this.setAnswerResolve !== undefined) {
|
|
14353
|
-
|
|
14353
|
+
createOfferReject(new Error(`Tried to start a new createOffer flow before the old one had finished`));
|
|
14354
|
+
return;
|
|
14354
14355
|
}
|
|
14355
14356
|
const setAnswerPromise = new Promise((resolve) => {
|
|
14356
14357
|
this.setAnswerResolve = resolve;
|
|
14357
14358
|
});
|
|
14358
14359
|
const offer = yield this.pc.createOffer();
|
|
14359
14360
|
if (!offer.sdp) {
|
|
14360
|
-
|
|
14361
|
+
createOfferReject(new Error('No SDP offer'));
|
|
14362
|
+
return;
|
|
14361
14363
|
}
|
|
14362
14364
|
offer.sdp = this.preProcessLocalOffer(offer.sdp);
|
|
14363
14365
|
yield this.pc.setLocalDescription(offer);
|