@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/esm/index.js CHANGED
@@ -14755,6 +14755,7 @@ const defaultMultistreamConnectionOptions = {
14755
14755
  disableContentSimulcast: true,
14756
14756
  disableAudioTwcc: true,
14757
14757
  doFullIce: BrowserInfo.isFirefox(),
14758
+ metricsCallback: () => { },
14758
14759
  };
14759
14760
  class MultistreamConnection extends EventEmitter$2 {
14760
14761
  constructor(userOptions = {}) {
@@ -14763,13 +14764,13 @@ class MultistreamConnection extends EventEmitter$2 {
14763
14764
  this.recvTransceivers = new Map();
14764
14765
  this.jmpSessions = new Map();
14765
14766
  this.pendingJmpTasks = [];
14766
- this.metricsCallback = () => { };
14767
14767
  this.overuseUpdateCallback = () => { };
14768
14768
  this.midPredictor = new MidPredictor();
14769
14769
  this.offerAnswerQueue = new AsyncQueue();
14770
14770
  this.currentCreateOfferId = 0;
14771
14771
  this.options = Object.assign(Object.assign({}, defaultMultistreamConnectionOptions), userOptions);
14772
14772
  logger.info(`Creating multistream connection with options ${JSON.stringify(this.options)}`);
14773
+ this.metricsCallback = this.options.metricsCallback;
14773
14774
  this.initializePeerConnection();
14774
14775
  this.overuseStateManager = new OveruseStateManager((overuseState) => this.overuseUpdateCallback(overuseState));
14775
14776
  this.overuseStateManager.start();
@@ -15590,9 +15591,6 @@ SCTP Max Message Size: ${maxMessageSize}`);
15590
15591
  var _a;
15591
15592
  return (_a = this.forceStatsReport) === null || _a === void 0 ? void 0 : _a.call(this);
15592
15593
  }
15593
- setMetricsCallback(callback) {
15594
- this.metricsCallback = callback;
15595
- }
15596
15594
  setOveruseUpdateCallback(callback) {
15597
15595
  this.overuseUpdateCallback = callback;
15598
15596
  }