@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/esm/index.js CHANGED
@@ -14936,6 +14936,7 @@ class MultistreamConnection extends EventEmitter$2 {
14936
14936
  this.offerAnswerQueue = new AsyncQueue();
14937
14937
  this.currentCreateOfferId = 0;
14938
14938
  this.iceCandidates = [];
14939
+ this.metadata = { isMediaBypassEdge: false };
14939
14940
  this.options = Object.assign(Object.assign({}, defaultMultistreamConnectionOptions), userOptions);
14940
14941
  logger.info(`Creating multistream connection with options ${JSON.stringify(this.options)}`);
14941
14942
  this.metricsCallback = this.options.metricsCallback;
@@ -15619,7 +15620,7 @@ SCTP Max Message Size: ${maxMessageSize}`);
15619
15620
  return parsedOffer.toString();
15620
15621
  }
15621
15622
  preProcessRemoteAnswer(answer) {
15622
- var _a;
15623
+ var _a, _b;
15623
15624
  const parsedAnswer = parse(answer);
15624
15625
  const parsedOffer = parse((_a = this.pc.getLocalDescription()) === null || _a === void 0 ? void 0 : _a.sdp);
15625
15626
  matchMediaDescriptionsInAnswer(parsedOffer, parsedAnswer);
@@ -15645,6 +15646,9 @@ SCTP Max Message Size: ${maxMessageSize}`);
15645
15646
  if (BrowserInfo.isFirefox()) {
15646
15647
  setupBundle(parsedAnswer, this.options.bundlePolicy, this.midPredictor.getMidMap());
15647
15648
  }
15649
+ if ((_b = parsedAnswer.session.information) === null || _b === void 0 ? void 0 : _b.info) {
15650
+ this.metadata.isMediaBypassEdge = !parsedAnswer.session.information.info.includes('linus');
15651
+ }
15648
15652
  return parsedAnswer.toString();
15649
15653
  }
15650
15654
  getSendTransceiverOrThrow(mediaType) {
@@ -15769,6 +15773,11 @@ SCTP Max Message Size: ${maxMessageSize}`);
15769
15773
  }
15770
15774
  preProcessStats(stats) {
15771
15775
  return __awaiter$1(this, void 0, void 0, function* () {
15776
+ stats.forEach((stat) => {
15777
+ if (stat.type === 'peer-connection') {
15778
+ stat.isMediaBypassEdge = this.metadata.isMediaBypassEdge;
15779
+ }
15780
+ });
15772
15781
  yield Promise.all([...this.sendTransceivers.values()].map((transceiver) => __awaiter$1(this, void 0, void 0, function* () {
15773
15782
  (yield transceiver.getStats()).forEach((senderStats) => {
15774
15783
  if (senderStats.type === 'outbound-rtp' || senderStats.type === 'media-source') {