@webex/web-client-media-engine 3.28.3 → 3.29.1

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
@@ -9700,7 +9700,7 @@ function matchMediaDescriptionsInAnswer(parsedOffer, parsedAnswer) {
9700
9700
  parsedAnswer.session.groups = parsedOffer.session.groups;
9701
9701
  parsedAnswer.media = parsedOffer.media.map((offerMediaDescription) => {
9702
9702
  if (!offerMediaDescription.mid) {
9703
- logErrorAndThrow(exports.WcmeErrorType.OFFER_ANSWER_MISMATCH, `Named media groups can only be set for audio.`);
9703
+ logErrorAndThrow(exports.WcmeErrorType.OFFER_ANSWER_MISMATCH, `Offer media description is missing MID.`);
9704
9704
  }
9705
9705
  const answerMediaDescription = parsedAnswer.media.find((m) => m.mid === offerMediaDescription.mid);
9706
9706
  if (answerMediaDescription) {
@@ -14614,7 +14614,7 @@ class SendOnlyTransceiver extends Transceiver {
14614
14614
  const statsMap = new Map();
14615
14615
  const statsReport = yield this.sender.getStats();
14616
14616
  statsReport.forEach((stats, key) => {
14617
- var _a, _b, _c, _d;
14617
+ var _a, _b, _c, _d, _e;
14618
14618
  if (stats.type === 'outbound-rtp') {
14619
14619
  stats.mid = this.mid;
14620
14620
  stats.csi = this.csi;
@@ -14656,6 +14656,7 @@ class SendOnlyTransceiver extends Transceiver {
14656
14656
  }
14657
14657
  else if (stats.type === 'media-source') {
14658
14658
  stats.calliopeMediaType = this.mediaType;
14659
+ stats.trackLabel = (_e = this.publishedStream) === null || _e === void 0 ? void 0 : _e.label;
14659
14660
  }
14660
14661
  statsMap.set(key, stats);
14661
14662
  });