mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-21 00:59:22 +00:00
Use RTT stats from the selected ICE pair in the stats
This commit is contained in:
parent
eaed44a03f
commit
844d84b6ac
1 changed files with 2 additions and 2 deletions
|
|
@ -647,8 +647,8 @@ stats.modules = [
|
||||||
);
|
);
|
||||||
SET_CODEC = 1;
|
SET_CODEC = 1;
|
||||||
}
|
}
|
||||||
const { nominated, currentRoundTripTime, type, kind } = report;
|
const { selected, currentRoundTripTime, type, kind } = report;
|
||||||
if (nominated && currentRoundTripTime !== undefined) {
|
if (selected && currentRoundTripTime !== undefined) {
|
||||||
WEBRTC_STATS_RTT(currentRoundTripTime * 1000);
|
WEBRTC_STATS_RTT(currentRoundTripTime * 1000);
|
||||||
}
|
}
|
||||||
if (type === "inbound-rtp" && kind === "video") {
|
if (type === "inbound-rtp" && kind === "video") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue