@webex/web-client-media-engine 3.30.4 → 3.31.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 +12 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +12 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +5 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -9936,7 +9936,7 @@ class EgressSdpMunger {
|
|
|
9936
9936
|
}
|
|
9937
9937
|
}
|
|
9938
9938
|
}
|
|
9939
|
-
mungeRemoteDescription(mediaDescription) {
|
|
9939
|
+
mungeRemoteDescription(mediaDescription, mungeOptions = { dtxDisabled: true }) {
|
|
9940
9940
|
if (retainCandidatesByTransportType(mediaDescription, ['udp', 'tcp'])) {
|
|
9941
9941
|
logger.log(`Some unsupported remote candidates have been removed from mid ${mediaDescription.mid}`);
|
|
9942
9942
|
}
|
|
@@ -9944,6 +9944,11 @@ class EgressSdpMunger {
|
|
|
9944
9944
|
[...mediaDescription.codecs.values()].forEach((ci) => {
|
|
9945
9945
|
ci.fmtParams.set('x-google-start-bitrate', '60000');
|
|
9946
9946
|
});
|
|
9947
|
+
if (mediaDescription.type === 'audio') {
|
|
9948
|
+
[...mediaDescription.codecs.values()].forEach((ci) => {
|
|
9949
|
+
ci.fmtParams.set('usedtx', mungeOptions.dtxDisabled ? '0' : '1');
|
|
9950
|
+
});
|
|
9951
|
+
}
|
|
9947
9952
|
}
|
|
9948
9953
|
getSenderIds() {
|
|
9949
9954
|
return this.streamIds;
|
|
@@ -14506,6 +14511,7 @@ class SendOnlyTransceiver extends Transceiver {
|
|
|
14506
14511
|
constructor(config) {
|
|
14507
14512
|
super(config);
|
|
14508
14513
|
this.rtxEnabled = false;
|
|
14514
|
+
this.dtxDisabled = true;
|
|
14509
14515
|
this.streamMuteStateChange = new TypedEvent();
|
|
14510
14516
|
this.streamPublishStateChange = new TypedEvent();
|
|
14511
14517
|
this.negotiationNeeded = new TypedEvent();
|
|
@@ -14726,7 +14732,9 @@ class SendOnlyTransceiver extends Transceiver {
|
|
|
14726
14732
|
this.munger.mungeLocalDescriptionForRemoteServer(mediaDescription, getMediaContent(this.mediaType), this.csi, mungeOptions);
|
|
14727
14733
|
}
|
|
14728
14734
|
mungeRemoteDescription(mediaDescription) {
|
|
14729
|
-
this.munger.mungeRemoteDescription(mediaDescription
|
|
14735
|
+
this.munger.mungeRemoteDescription(mediaDescription, {
|
|
14736
|
+
dtxDisabled: this.dtxDisabled,
|
|
14737
|
+
});
|
|
14730
14738
|
}
|
|
14731
14739
|
get senderIds() {
|
|
14732
14740
|
return this.munger.getSenderIds();
|
|
@@ -14926,6 +14934,7 @@ const defaultMultistreamConnectionOptions = {
|
|
|
14926
14934
|
disableAudioTwcc: true,
|
|
14927
14935
|
doFullIce: BrowserInfo.isFirefox(),
|
|
14928
14936
|
stopIceGatheringAfterFirstRelayCandidate: false,
|
|
14937
|
+
disableAudioMainDtx: true,
|
|
14929
14938
|
metricsCallback: () => { },
|
|
14930
14939
|
};
|
|
14931
14940
|
class MultistreamConnection extends EventEmitter$2 {
|
|
@@ -15059,6 +15068,7 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
15059
15068
|
}
|
|
15060
15069
|
transceiver.twccDisabled =
|
|
15061
15070
|
getMediaFamily(mediaType) === exports.MediaFamily.Audio ? this.options.disableAudioTwcc : false;
|
|
15071
|
+
transceiver.dtxDisabled = mediaType !== exports.MediaType.AudioMain || this.options.disableAudioMainDtx;
|
|
15062
15072
|
transceiver.active = false;
|
|
15063
15073
|
transceiver.streamMuteStateChange.on(() => {
|
|
15064
15074
|
this.sendSourceAdvertisement(mediaType);
|