@webex/web-client-media-engine 3.23.4 → 3.24.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 CHANGED
@@ -14759,6 +14759,7 @@ const defaultMultistreamConnectionOptions = {
14759
14759
  disableContentSimulcast: true,
14760
14760
  disableAudioTwcc: true,
14761
14761
  doFullIce: BrowserInfo.isFirefox(),
14762
+ metricsCallback: () => { },
14762
14763
  };
14763
14764
  class MultistreamConnection extends EventEmitter$2 {
14764
14765
  constructor(userOptions = {}) {
@@ -14767,13 +14768,13 @@ class MultistreamConnection extends EventEmitter$2 {
14767
14768
  this.recvTransceivers = new Map();
14768
14769
  this.jmpSessions = new Map();
14769
14770
  this.pendingJmpTasks = [];
14770
- this.metricsCallback = () => { };
14771
14771
  this.overuseUpdateCallback = () => { };
14772
14772
  this.midPredictor = new MidPredictor();
14773
14773
  this.offerAnswerQueue = new AsyncQueue();
14774
14774
  this.currentCreateOfferId = 0;
14775
14775
  this.options = Object.assign(Object.assign({}, defaultMultistreamConnectionOptions), userOptions);
14776
14776
  logger.info(`Creating multistream connection with options ${JSON.stringify(this.options)}`);
14777
+ this.metricsCallback = this.options.metricsCallback;
14777
14778
  this.initializePeerConnection();
14778
14779
  this.overuseStateManager = new OveruseStateManager((overuseState) => this.overuseUpdateCallback(overuseState));
14779
14780
  this.overuseStateManager.start();
@@ -15594,9 +15595,6 @@ SCTP Max Message Size: ${maxMessageSize}`);
15594
15595
  var _a;
15595
15596
  return (_a = this.forceStatsReport) === null || _a === void 0 ? void 0 : _a.call(this);
15596
15597
  }
15597
- setMetricsCallback(callback) {
15598
- this.metricsCallback = callback;
15599
- }
15600
15598
  setOveruseUpdateCallback(callback) {
15601
15599
  this.overuseUpdateCallback = callback;
15602
15600
  }