@webex/web-client-media-engine 1.36.4 → 1.37.1

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
@@ -8774,7 +8774,7 @@ function setMaxBandwidth(parsedSdp, maxBandwidth) {
8774
8774
  });
8775
8775
  }
8776
8776
  function setupBundle(parsedSdp, bundlePolicy) {
8777
- if (bundlePolicy === 'compat') {
8777
+ if (bundlePolicy === 'max-compat') {
8778
8778
  const audioMids = parsedSdp.avMedia
8779
8779
  .filter((m) => m.type === 'audio')
8780
8780
  .map((m) => m.mid);
@@ -9563,7 +9563,7 @@ const defaultMultistreamConnectionOptions = {
9563
9563
  floorControlledPresentation: false,
9564
9564
  disableSimulcast: false,
9565
9565
  streamSignalingMode: 'SSRC',
9566
- bundlePolicy: 'compat',
9566
+ bundlePolicy: 'max-compat',
9567
9567
  iceServers: undefined,
9568
9568
  };
9569
9569
  class MultistreamConnection extends EventEmitter {
@@ -9596,7 +9596,10 @@ class MultistreamConnection extends EventEmitter {
9596
9596
  initializePeerConnection() {
9597
9597
  var _a;
9598
9598
  (_a = this.pc) === null || _a === void 0 ? void 0 : _a.close();
9599
- this.pc = new PeerConnection({ iceServers: this.options.iceServers });
9599
+ this.pc = new PeerConnection({
9600
+ iceServers: this.options.iceServers,
9601
+ bundlePolicy: this.options.bundlePolicy,
9602
+ });
9600
9603
  this.pc.on(PeerConnection.Events.ConnectionStateChange, (state) => this.emit(exports.MultistreamConnectionEventNames.ConnectionStateUpdate, state));
9601
9604
  this.attachMetricsObserver();
9602
9605
  this.createDataChannel();