@webex/web-client-media-engine 3.31.1 → 3.31.2
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 +6 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +6 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -14825,7 +14825,7 @@ class SendSlot {
|
|
|
14825
14825
|
}
|
|
14826
14826
|
}
|
|
14827
14827
|
|
|
14828
|
-
const organizeTransceiverStats = (sendTransceivers, recvTransceivers) => __awaiter$1(void 0, void 0, void 0, function* () {
|
|
14828
|
+
const organizeTransceiverStats = (sendTransceivers, recvTransceivers, peerConnectionStats) => __awaiter$1(void 0, void 0, void 0, function* () {
|
|
14829
14829
|
const result = {
|
|
14830
14830
|
audio: {
|
|
14831
14831
|
senders: [],
|
|
@@ -14853,6 +14853,7 @@ const organizeTransceiverStats = (sendTransceivers, recvTransceivers) => __await
|
|
|
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
14857
|
if (mediaType === MediaType.AudioMain) {
|
|
14857
14858
|
result.audio.senders.push(item);
|
|
14858
14859
|
}
|
|
@@ -14875,6 +14876,7 @@ const organizeTransceiverStats = (sendTransceivers, recvTransceivers) => __await
|
|
|
14875
14876
|
currentDirection: 'recvonly',
|
|
14876
14877
|
localTrackLabel: (_b = t.receiveSlot.stream.getTracks()[0]) === null || _b === void 0 ? void 0 : _b.label,
|
|
14877
14878
|
};
|
|
14879
|
+
item.report.set(peerConnectionStats.get('id'), peerConnectionStats);
|
|
14878
14880
|
if (mediaType === MediaType.AudioMain) {
|
|
14879
14881
|
result.audio.receivers.push(item);
|
|
14880
14882
|
}
|
|
@@ -15786,7 +15788,9 @@ SCTP Max Message Size: ${maxMessageSize}`);
|
|
|
15786
15788
|
}
|
|
15787
15789
|
getTransceiverStats() {
|
|
15788
15790
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
15789
|
-
|
|
15791
|
+
const stats = yield this.getStats();
|
|
15792
|
+
const peerConnectionStats = [...stats.values()].find((stat) => stat.type === 'peer-connection');
|
|
15793
|
+
return organizeTransceiverStats(this.sendTransceivers, this.recvTransceivers, peerConnectionStats);
|
|
15790
15794
|
});
|
|
15791
15795
|
}
|
|
15792
15796
|
preProcessStats(stats) {
|