@webex/web-client-media-engine 3.15.4 → 3.15.6

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
@@ -5823,6 +5823,7 @@ exports.MediaStreamTrackKind = void 0;
5823
5823
  var PeerConnectionEvents;
5824
5824
  (function (PeerConnectionEvents) {
5825
5825
  PeerConnectionEvents["IceGatheringStateChange"] = "icegatheringstatechange";
5826
+ PeerConnectionEvents["IceCandidate"] = "icecandidate";
5826
5827
  PeerConnectionEvents["ConnectionStateChange"] = "connectionstatechange";
5827
5828
  PeerConnectionEvents["CreateOfferOnSuccess"] = "createofferonsuccess";
5828
5829
  PeerConnectionEvents["CreateAnswerOnSuccess"] = "createansweronsuccess";
@@ -5861,6 +5862,9 @@ class PeerConnection extends EventEmitter$4 {
5861
5862
  this.pc.onicegatheringstatechange = (ev) => {
5862
5863
  this.emit(PeerConnection.Events.IceGatheringStateChange, ev);
5863
5864
  };
5865
+ this.pc.onicecandidate = (ev) => {
5866
+ this.emit(PeerConnection.Events.IceCandidate, ev);
5867
+ };
5864
5868
  }
5865
5869
  /**
5866
5870
  * Get the underlying RTCPeerConnection.
@@ -9771,6 +9775,7 @@ class EgressSdpMunger {
9771
9775
  if (retainCandidates(mediaDescription, ['udp', 'tcp'])) {
9772
9776
  logger.log(`Some unsupported remote candidates have been removed from mid ${mediaDescription.mid}`);
9773
9777
  }
9778
+ mediaDescription.bandwidth = undefined;
9774
9779
  [...mediaDescription.codecs.values()].forEach((ci) => {
9775
9780
  ci.fmtParams.set('x-google-start-bitrate', '60000');
9776
9781
  });