@webex/web-client-media-engine 3.5.2 → 3.6.0
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 +19 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +19 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +5 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -10418,6 +10418,7 @@ class SendOnlyTransceiver extends Transceiver {
|
|
|
10418
10418
|
this.streamMuteStateChange = new TypedEvent();
|
|
10419
10419
|
this.streamPublishStateChange = new TypedEvent();
|
|
10420
10420
|
this.negotiationNeeded = new TypedEvent();
|
|
10421
|
+
this.namedMediaGroupsChange = new TypedEvent();
|
|
10421
10422
|
this.requested = false;
|
|
10422
10423
|
this.requestedIdEncodingParamsMap = new Map();
|
|
10423
10424
|
this.csi = csi;
|
|
@@ -10492,6 +10493,13 @@ class SendOnlyTransceiver extends Transceiver {
|
|
|
10492
10493
|
}
|
|
10493
10494
|
});
|
|
10494
10495
|
}
|
|
10496
|
+
setNamedMediaGroups(namedMediaGroups) {
|
|
10497
|
+
if (this.mediaType !== MediaType.AudioMain) {
|
|
10498
|
+
throw new Error(`This interface does not allow media types other than AudioMain: ${this.mediaType}`);
|
|
10499
|
+
}
|
|
10500
|
+
this.namedMediaGroups = namedMediaGroups;
|
|
10501
|
+
this.namedMediaGroupsChange.emit();
|
|
10502
|
+
}
|
|
10495
10503
|
publishStream(stream) {
|
|
10496
10504
|
return this.replacePublishedStream(stream);
|
|
10497
10505
|
}
|
|
@@ -10595,6 +10603,9 @@ class SendSlot {
|
|
|
10595
10603
|
return this.sendTransceiver.unpublishStream();
|
|
10596
10604
|
});
|
|
10597
10605
|
}
|
|
10606
|
+
setNamedMediaGroups(namedMediaGroups) {
|
|
10607
|
+
this.sendTransceiver.setNamedMediaGroups(namedMediaGroups);
|
|
10608
|
+
}
|
|
10598
10609
|
get active() {
|
|
10599
10610
|
return this.sendTransceiver.active;
|
|
10600
10611
|
}
|
|
@@ -14034,6 +14045,9 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
14034
14045
|
this.queueLocalOfferAnswer();
|
|
14035
14046
|
}
|
|
14036
14047
|
});
|
|
14048
|
+
transceiver.namedMediaGroupsChange.on(() => {
|
|
14049
|
+
this.sendSourceAdvertisement(mediaType);
|
|
14050
|
+
});
|
|
14037
14051
|
this.sendTransceivers.set(mediaType, transceiver);
|
|
14038
14052
|
this.createJmpSession(mediaType);
|
|
14039
14053
|
}
|
|
@@ -14223,7 +14237,11 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
14223
14237
|
};
|
|
14224
14238
|
}
|
|
14225
14239
|
else {
|
|
14226
|
-
task = () => {
|
|
14240
|
+
task = () => {
|
|
14241
|
+
var _a;
|
|
14242
|
+
return (_a = this.jmpSessions
|
|
14243
|
+
.get(mediaType)) === null || _a === void 0 ? void 0 : _a.sendSourceAdvertisement(1, numLiveSources, mediaType === MediaType.AudioMain ? transceiver.namedMediaGroups : []);
|
|
14244
|
+
};
|
|
14227
14245
|
}
|
|
14228
14246
|
if (((_b = this.dataChannel) === null || _b === void 0 ? void 0 : _b.readyState) === 'open') {
|
|
14229
14247
|
task();
|