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