@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/cjs/index.js
CHANGED
|
@@ -14829,7 +14829,7 @@ class SendSlot {
|
|
|
14829
14829
|
}
|
|
14830
14830
|
}
|
|
14831
14831
|
|
|
14832
|
-
const organizeTransceiverStats = (sendTransceivers, recvTransceivers) => __awaiter$1(void 0, void 0, void 0, function* () {
|
|
14832
|
+
const organizeTransceiverStats = (sendTransceivers, recvTransceivers, peerConnectionStats) => __awaiter$1(void 0, void 0, void 0, function* () {
|
|
14833
14833
|
const result = {
|
|
14834
14834
|
audio: {
|
|
14835
14835
|
senders: [],
|
|
@@ -14857,6 +14857,9 @@ const organizeTransceiverStats = (sendTransceivers, recvTransceivers) => __await
|
|
|
14857
14857
|
currentDirection: 'sendonly',
|
|
14858
14858
|
localTrackLabel: (_a = transceiver.publishedStream) === null || _a === void 0 ? void 0 : _a.label,
|
|
14859
14859
|
};
|
|
14860
|
+
if (peerConnectionStats && peerConnectionStats.id) {
|
|
14861
|
+
item.report.set(peerConnectionStats.id, peerConnectionStats);
|
|
14862
|
+
}
|
|
14860
14863
|
if (mediaType === exports.MediaType.AudioMain) {
|
|
14861
14864
|
result.audio.senders.push(item);
|
|
14862
14865
|
}
|
|
@@ -14879,6 +14882,9 @@ const organizeTransceiverStats = (sendTransceivers, recvTransceivers) => __await
|
|
|
14879
14882
|
currentDirection: 'recvonly',
|
|
14880
14883
|
localTrackLabel: (_b = t.receiveSlot.stream.getTracks()[0]) === null || _b === void 0 ? void 0 : _b.label,
|
|
14881
14884
|
};
|
|
14885
|
+
if (peerConnectionStats && peerConnectionStats.id) {
|
|
14886
|
+
item.report.set(peerConnectionStats.id, peerConnectionStats);
|
|
14887
|
+
}
|
|
14882
14888
|
if (mediaType === exports.MediaType.AudioMain) {
|
|
14883
14889
|
result.audio.receivers.push(item);
|
|
14884
14890
|
}
|
|
@@ -15790,7 +15796,9 @@ SCTP Max Message Size: ${maxMessageSize}`);
|
|
|
15790
15796
|
}
|
|
15791
15797
|
getTransceiverStats() {
|
|
15792
15798
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
15793
|
-
|
|
15799
|
+
const stats = yield this.getStats();
|
|
15800
|
+
const peerConnectionStats = [...stats.values()].find((stat) => stat.type === 'peer-connection');
|
|
15801
|
+
return organizeTransceiverStats(this.sendTransceivers, this.recvTransceivers, peerConnectionStats);
|
|
15794
15802
|
});
|
|
15795
15803
|
}
|
|
15796
15804
|
preProcessStats(stats) {
|