@webex/web-client-media-engine 3.11.7 → 3.11.9
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 +22 -16
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +22 -16
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +7 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -9488,11 +9488,10 @@ function injectJmpAttributes(mediaDescription, csi, streamSignalingMode) {
|
|
|
9488
9488
|
}
|
|
9489
9489
|
}
|
|
9490
9490
|
function injectDummyCandidates(mediaDescription) {
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
}
|
|
9491
|
+
mediaDescription.iceInfo.candidates = [];
|
|
9492
|
+
mediaDescription.addLine(new CandidateLine('dummy1', 1, 'udp', 3, '0.0.0.0', 9, 'host'));
|
|
9493
|
+
mediaDescription.addLine(new CandidateLine('dummy2', 1, 'tcp', 2, '0.0.0.0', 9, 'host'));
|
|
9494
|
+
mediaDescription.addLine(new CandidateLine('dummy3', 1, 'udp', 1, '0.0.0.0', 9, 'relay'));
|
|
9496
9495
|
}
|
|
9497
9496
|
function removeMidRidExtensions(mediaDescription) {
|
|
9498
9497
|
mediaDescription.extMaps.forEach((extMapLine, extId, extMap) => {
|
|
@@ -9534,7 +9533,7 @@ class EgressSdpMunger {
|
|
|
9534
9533
|
reset() {
|
|
9535
9534
|
this.streamIds = [];
|
|
9536
9535
|
}
|
|
9537
|
-
mungeLocalDescription(mediaDescription,
|
|
9536
|
+
mungeLocalDescription(mediaDescription, options) {
|
|
9538
9537
|
var _a;
|
|
9539
9538
|
retainCodecs(mediaDescription, ['h264', 'opus', 'rtx']);
|
|
9540
9539
|
if (mediaDescription.codecs.size === 0) {
|
|
@@ -9544,10 +9543,10 @@ class EgressSdpMunger {
|
|
|
9544
9543
|
mediaDescription.rids = [];
|
|
9545
9544
|
mediaDescription.simulcast = undefined;
|
|
9546
9545
|
removeMidRidExtensions(mediaDescription);
|
|
9547
|
-
if (simulcastEnabled) {
|
|
9546
|
+
if (options.simulcastEnabled) {
|
|
9548
9547
|
addVlaExtension(mediaDescription);
|
|
9549
9548
|
}
|
|
9550
|
-
const numStreams = simulcastEnabled ? 3 : 1;
|
|
9549
|
+
const numStreams = options.simulcastEnabled ? 3 : 1;
|
|
9551
9550
|
if (!this.streamIds.length) {
|
|
9552
9551
|
if (mediaDescription.ssrcs.length) {
|
|
9553
9552
|
const ssrcs = [
|
|
@@ -9588,7 +9587,7 @@ class EgressSdpMunger {
|
|
|
9588
9587
|
const newStreamId = {
|
|
9589
9588
|
ssrc: generateSsrc(),
|
|
9590
9589
|
};
|
|
9591
|
-
if (rtxEnabled) {
|
|
9590
|
+
if (options.rtxEnabled) {
|
|
9592
9591
|
newStreamId.rtxSsrc = generateSsrc();
|
|
9593
9592
|
}
|
|
9594
9593
|
this.streamIds.push(newStreamId);
|
|
@@ -9601,18 +9600,18 @@ class EgressSdpMunger {
|
|
|
9601
9600
|
const rtpSsrc = streamId.ssrc;
|
|
9602
9601
|
mediaDescription.addLine(new SsrcLine(rtpSsrc, 'cname', `${rtpSsrc}-cname`));
|
|
9603
9602
|
mediaDescription.addLine(new SsrcLine(rtpSsrc, 'msid', '-', '1'));
|
|
9604
|
-
if (rtxEnabled) {
|
|
9603
|
+
if (options.rtxEnabled) {
|
|
9605
9604
|
const rtxSsrc = streamId.rtxSsrc;
|
|
9606
9605
|
mediaDescription.addLine(new SsrcLine(rtxSsrc, 'cname', `${rtpSsrc}-cname`));
|
|
9607
9606
|
mediaDescription.addLine(new SsrcLine(rtxSsrc, 'msid', '-', '1'));
|
|
9608
9607
|
mediaDescription.addLine(new SsrcGroupLine('FID', [rtpSsrc, rtxSsrc]));
|
|
9609
9608
|
}
|
|
9610
9609
|
});
|
|
9611
|
-
if (simulcastEnabled) {
|
|
9610
|
+
if (options.simulcastEnabled) {
|
|
9612
9611
|
mediaDescription.addLine(new SsrcGroupLine('SIM', this.streamIds.map((streamId) => streamId.ssrc)));
|
|
9613
9612
|
}
|
|
9614
9613
|
applyFormatParameters(mediaDescription, this.customCodecParameters);
|
|
9615
|
-
if (twccDisabled) {
|
|
9614
|
+
if (options.twccDisabled) {
|
|
9616
9615
|
disableTwcc(mediaDescription);
|
|
9617
9616
|
}
|
|
9618
9617
|
}
|
|
@@ -10141,14 +10140,14 @@ class IngressSdpMunger {
|
|
|
10141
10140
|
getReceiverId() {
|
|
10142
10141
|
return Object.assign({ ssrc: this.ssrc }, (this.rtxSsrc ? { rtxSsrc: this.rtxSsrc } : {}));
|
|
10143
10142
|
}
|
|
10144
|
-
mungeLocalDescription(mediaDescription,
|
|
10143
|
+
mungeLocalDescription(mediaDescription, options) {
|
|
10145
10144
|
retainCodecs(mediaDescription, ['h264', 'opus', 'rtx']);
|
|
10146
10145
|
if (mediaDescription.codecs.size === 0) {
|
|
10147
10146
|
logErrorAndThrow(exports.WcmeErrorType.SDP_MUNGE_MISSING_CODECS, `No codecs present in m-line with MID ${mediaDescription.mid} after filtering.`);
|
|
10148
10147
|
}
|
|
10149
10148
|
mediaDescription.bandwidth = new BandwidthLine('TIAS', 20000000);
|
|
10150
10149
|
removeMidRidExtensions(mediaDescription);
|
|
10151
|
-
if (twccDisabled) {
|
|
10150
|
+
if (options.twccDisabled) {
|
|
10152
10151
|
disableTwcc(mediaDescription);
|
|
10153
10152
|
}
|
|
10154
10153
|
}
|
|
@@ -10344,7 +10343,7 @@ class ReceiveOnlyTransceiver extends Transceiver {
|
|
|
10344
10343
|
return this.receiver.getStats();
|
|
10345
10344
|
}
|
|
10346
10345
|
mungeLocalDescription(mediaDescription) {
|
|
10347
|
-
this.munger.mungeLocalDescription(mediaDescription, this.twccDisabled);
|
|
10346
|
+
this.munger.mungeLocalDescription(mediaDescription, { twccDisabled: this.twccDisabled });
|
|
10348
10347
|
}
|
|
10349
10348
|
mungeRemoteDescription(mediaDescription) {
|
|
10350
10349
|
this.munger.mungeRemoteDescription(mediaDescription);
|
|
@@ -14207,7 +14206,11 @@ class SendOnlyTransceiver extends Transceiver {
|
|
|
14207
14206
|
return params.encodings.length > 1;
|
|
14208
14207
|
}
|
|
14209
14208
|
mungeLocalDescription(mediaDescription) {
|
|
14210
|
-
this.munger.mungeLocalDescription(mediaDescription,
|
|
14209
|
+
this.munger.mungeLocalDescription(mediaDescription, {
|
|
14210
|
+
simulcastEnabled: this.isSimulcastEnabled(),
|
|
14211
|
+
rtxEnabled: this.rtxEnabled,
|
|
14212
|
+
twccDisabled: this.twccDisabled,
|
|
14213
|
+
});
|
|
14211
14214
|
}
|
|
14212
14215
|
mungeLocalDescriptionForRemoteServer(mediaDescription) {
|
|
14213
14216
|
this.munger.mungeLocalDescriptionForRemoteServer(mediaDescription, getMediaContent(this.mediaType), this.csi);
|
|
@@ -14264,6 +14267,9 @@ class SendSlot {
|
|
|
14264
14267
|
setNamedMediaGroups(namedMediaGroups) {
|
|
14265
14268
|
this.sendTransceiver.setNamedMediaGroups(namedMediaGroups);
|
|
14266
14269
|
}
|
|
14270
|
+
clearNamedMediaGroups() {
|
|
14271
|
+
this.setNamedMediaGroups([]);
|
|
14272
|
+
}
|
|
14267
14273
|
get active() {
|
|
14268
14274
|
return this.sendTransceiver.active;
|
|
14269
14275
|
}
|