@webex/web-client-media-engine 3.31.2 → 3.31.3

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
@@ -14853,7 +14853,9 @@ const organizeTransceiverStats = (sendTransceivers, recvTransceivers, peerConnec
14853
14853
  currentDirection: 'sendonly',
14854
14854
  localTrackLabel: (_a = transceiver.publishedStream) === null || _a === void 0 ? void 0 : _a.label,
14855
14855
  };
14856
- item.report.set(peerConnectionStats.get('id'), peerConnectionStats);
14856
+ if (peerConnectionStats && peerConnectionStats.id) {
14857
+ item.report.set(peerConnectionStats.id, peerConnectionStats);
14858
+ }
14857
14859
  if (mediaType === MediaType.AudioMain) {
14858
14860
  result.audio.senders.push(item);
14859
14861
  }
@@ -14876,7 +14878,9 @@ const organizeTransceiverStats = (sendTransceivers, recvTransceivers, peerConnec
14876
14878
  currentDirection: 'recvonly',
14877
14879
  localTrackLabel: (_b = t.receiveSlot.stream.getTracks()[0]) === null || _b === void 0 ? void 0 : _b.label,
14878
14880
  };
14879
- item.report.set(peerConnectionStats.get('id'), peerConnectionStats);
14881
+ if (peerConnectionStats && peerConnectionStats.id) {
14882
+ item.report.set(peerConnectionStats.id, peerConnectionStats);
14883
+ }
14880
14884
  if (mediaType === MediaType.AudioMain) {
14881
14885
  result.audio.receivers.push(item);
14882
14886
  }