@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/esm/index.js CHANGED
@@ -9696,7 +9696,7 @@ function matchMediaDescriptionsInAnswer(parsedOffer, parsedAnswer) {
9696
9696
  parsedAnswer.session.groups = parsedOffer.session.groups;
9697
9697
  parsedAnswer.media = parsedOffer.media.map((offerMediaDescription) => {
9698
9698
  if (!offerMediaDescription.mid) {
9699
- logErrorAndThrow(WcmeErrorType.OFFER_ANSWER_MISMATCH, `Named media groups can only be set for audio.`);
9699
+ logErrorAndThrow(WcmeErrorType.OFFER_ANSWER_MISMATCH, `Offer media description is missing MID.`);
9700
9700
  }
9701
9701
  const answerMediaDescription = parsedAnswer.media.find((m) => m.mid === offerMediaDescription.mid);
9702
9702
  if (answerMediaDescription) {
@@ -14610,7 +14610,7 @@ class SendOnlyTransceiver extends Transceiver {
14610
14610
  const statsMap = new Map();
14611
14611
  const statsReport = yield this.sender.getStats();
14612
14612
  statsReport.forEach((stats, key) => {
14613
- var _a, _b, _c, _d;
14613
+ var _a, _b, _c, _d, _e;
14614
14614
  if (stats.type === 'outbound-rtp') {
14615
14615
  stats.mid = this.mid;
14616
14616
  stats.csi = this.csi;
@@ -14652,6 +14652,7 @@ class SendOnlyTransceiver extends Transceiver {
14652
14652
  }
14653
14653
  else if (stats.type === 'media-source') {
14654
14654
  stats.calliopeMediaType = this.mediaType;
14655
+ stats.trackLabel = (_e = this.publishedStream) === null || _e === void 0 ? void 0 : _e.label;
14655
14656
  }
14656
14657
  statsMap.set(key, stats);
14657
14658
  });