From 844d84b6ac147966a134af4ca24e2938c3cb18bd Mon Sep 17 00:00:00 2001 From: sergystepanov Date: Sat, 6 Jun 2026 12:58:23 +0300 Subject: [PATCH] Use RTT stats from the selected ICE pair in the stats --- web/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/js/app.js b/web/js/app.js index fc3d6571..d7e2205b 100755 --- a/web/js/app.js +++ b/web/js/app.js @@ -647,8 +647,8 @@ stats.modules = [ ); SET_CODEC = 1; } - const { nominated, currentRoundTripTime, type, kind } = report; - if (nominated && currentRoundTripTime !== undefined) { + const { selected, currentRoundTripTime, type, kind } = report; + if (selected && currentRoundTripTime !== undefined) { WEBRTC_STATS_RTT(currentRoundTripTime * 1000); } if (type === "inbound-rtp" && kind === "video") {