@webex/web-client-media-engine 3.7.3 → 3.8.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
@@ -14777,13 +14777,18 @@ class MultistreamConnection extends EventEmitter$2 {
14777
14777
  const statsToModify = stats.get(senderStats.id);
14778
14778
  statsToModify.mid = transceiver.mid;
14779
14779
  statsToModify.csi = transceiver.csi;
14780
- statsToModify.mediaType = mediaType;
14780
+ statsToModify.calliopeMediaType = mediaType;
14781
14781
  const trackSettings = (_a = transceiver.publishedStream) === null || _a === void 0 ? void 0 : _a.getSettings();
14782
14782
  if (trackSettings === null || trackSettings === void 0 ? void 0 : trackSettings.frameRate) {
14783
14783
  statsToModify.targetFrameRate = trackSettings === null || trackSettings === void 0 ? void 0 : trackSettings.frameRate;
14784
14784
  }
14785
14785
  stats.set(senderStats.id, statsToModify);
14786
14786
  }
14787
+ else if (senderStats.type === 'media-source') {
14788
+ const statsToModify = stats.get(senderStats.id);
14789
+ statsToModify.calliopeMediaType = mediaType;
14790
+ stats.set(senderStats.id, statsToModify);
14791
+ }
14787
14792
  });
14788
14793
  })));
14789
14794
  yield Promise.all([...this.recvTransceivers.entries()].map(([mediaType, transceivers]) => __awaiter(this, void 0, void 0, function* () {
@@ -14794,7 +14799,7 @@ class MultistreamConnection extends EventEmitter$2 {
14794
14799
  const statsToModify = stats.get(receiverStats.id);
14795
14800
  statsToModify.mid = (_a = transceiver.receiveSlot.id) === null || _a === void 0 ? void 0 : _a.mid;
14796
14801
  statsToModify.csi = transceiver.receiveSlot.currentRxCsi;
14797
- statsToModify.mediaType = mediaType;
14802
+ statsToModify.calliopeMediaType = mediaType;
14798
14803
  Object.assign(statsToModify, transceiver.receiverId);
14799
14804
  stats.set(receiverStats.id, statsToModify);
14800
14805
  }