@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/cjs/index.js CHANGED
@@ -14857,7 +14857,9 @@ const organizeTransceiverStats = (sendTransceivers, recvTransceivers, peerConnec
14857
14857
  currentDirection: 'sendonly',
14858
14858
  localTrackLabel: (_a = transceiver.publishedStream) === null || _a === void 0 ? void 0 : _a.label,
14859
14859
  };
14860
- item.report.set(peerConnectionStats.get('id'), peerConnectionStats);
14860
+ if (peerConnectionStats && peerConnectionStats.id) {
14861
+ item.report.set(peerConnectionStats.id, peerConnectionStats);
14862
+ }
14861
14863
  if (mediaType === exports.MediaType.AudioMain) {
14862
14864
  result.audio.senders.push(item);
14863
14865
  }
@@ -14880,7 +14882,9 @@ const organizeTransceiverStats = (sendTransceivers, recvTransceivers, peerConnec
14880
14882
  currentDirection: 'recvonly',
14881
14883
  localTrackLabel: (_b = t.receiveSlot.stream.getTracks()[0]) === null || _b === void 0 ? void 0 : _b.label,
14882
14884
  };
14883
- item.report.set(peerConnectionStats.get('id'), peerConnectionStats);
14885
+ if (peerConnectionStats && peerConnectionStats.id) {
14886
+ item.report.set(peerConnectionStats.id, peerConnectionStats);
14887
+ }
14884
14888
  if (mediaType === exports.MediaType.AudioMain) {
14885
14889
  result.audio.receivers.push(item);
14886
14890
  }