@webex/web-client-media-engine 3.0.1 → 3.0.2

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 CHANGED
@@ -9125,6 +9125,12 @@ function filterCodecs(parsedSdp, allowedCodecs) {
9125
9125
  .filter((codecName) => !allowedLowerCase.includes(codecName.toLowerCase()))
9126
9126
  .forEach((c) => removeCodec(parsedSdp, c));
9127
9127
  }
9128
+ function filterCandidates(parsedSdp) {
9129
+ const supportedTransportTypes = ['udp', 'tcp'];
9130
+ parsedSdp.media.forEach((mline) => {
9131
+ mline.iceInfo.candidates = mline.iceInfo.candidates.filter((candidate) => supportedTransportTypes.includes(candidate.transport.toLowerCase()));
9132
+ });
9133
+ }
9128
9134
  function setMaxBandwidth(parsedSdp, maxBandwidth) {
9129
9135
  parsedSdp.avMedia.forEach((mline) => {
9130
9136
  mline.bandwidth = new BandwidthLine('TIAS', maxBandwidth);
@@ -14288,6 +14294,7 @@ class MultistreamConnection extends EventEmitter$2 {
14288
14294
  const parsedOffer = parse((_a = this.pc.getLocalDescription()) === null || _a === void 0 ? void 0 : _a.sdp);
14289
14295
  const recvTransceiversByMid = new Map([...this.recvTransceivers.values()].flat().map((t) => [t.mid, t]));
14290
14296
  matchMlinesInAnswer(parsedOffer, parsedAnswer, recvTransceiversByMid);
14297
+ filterCandidates(parsedAnswer);
14291
14298
  if (getBrowserDetails().name === 'Firefox') {
14292
14299
  setupBundle(parsedAnswer, this.options.bundlePolicy, this.midPredictor.getMidMap());
14293
14300
  if (this.options.bundlePolicy === 'max-bundle') {