@webex/web-client-media-engine 3.30.3 → 3.30.4

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
@@ -14940,6 +14940,7 @@ class MultistreamConnection extends EventEmitter$2 {
14940
14940
  this.offerAnswerQueue = new AsyncQueue();
14941
14941
  this.currentCreateOfferId = 0;
14942
14942
  this.iceCandidates = [];
14943
+ this.metadata = { isMediaBypassEdge: false };
14943
14944
  this.options = Object.assign(Object.assign({}, defaultMultistreamConnectionOptions), userOptions);
14944
14945
  logger.info(`Creating multistream connection with options ${JSON.stringify(this.options)}`);
14945
14946
  this.metricsCallback = this.options.metricsCallback;
@@ -15623,7 +15624,7 @@ SCTP Max Message Size: ${maxMessageSize}`);
15623
15624
  return parsedOffer.toString();
15624
15625
  }
15625
15626
  preProcessRemoteAnswer(answer) {
15626
- var _a;
15627
+ var _a, _b;
15627
15628
  const parsedAnswer = parse(answer);
15628
15629
  const parsedOffer = parse((_a = this.pc.getLocalDescription()) === null || _a === void 0 ? void 0 : _a.sdp);
15629
15630
  matchMediaDescriptionsInAnswer(parsedOffer, parsedAnswer);
@@ -15649,6 +15650,9 @@ SCTP Max Message Size: ${maxMessageSize}`);
15649
15650
  if (BrowserInfo.isFirefox()) {
15650
15651
  setupBundle(parsedAnswer, this.options.bundlePolicy, this.midPredictor.getMidMap());
15651
15652
  }
15653
+ if ((_b = parsedAnswer.session.information) === null || _b === void 0 ? void 0 : _b.info) {
15654
+ this.metadata.isMediaBypassEdge = !parsedAnswer.session.information.info.includes('linus');
15655
+ }
15652
15656
  return parsedAnswer.toString();
15653
15657
  }
15654
15658
  getSendTransceiverOrThrow(mediaType) {
@@ -15773,6 +15777,11 @@ SCTP Max Message Size: ${maxMessageSize}`);
15773
15777
  }
15774
15778
  preProcessStats(stats) {
15775
15779
  return __awaiter$1(this, void 0, void 0, function* () {
15780
+ stats.forEach((stat) => {
15781
+ if (stat.type === 'peer-connection') {
15782
+ stat.isMediaBypassEdge = this.metadata.isMediaBypassEdge;
15783
+ }
15784
+ });
15776
15785
  yield Promise.all([...this.sendTransceivers.values()].map((transceiver) => __awaiter$1(this, void 0, void 0, function* () {
15777
15786
  (yield transceiver.getStats()).forEach((senderStats) => {
15778
15787
  if (senderStats.type === 'outbound-rtp' || senderStats.type === 'media-source') {