From b3fe8fb58e792148ba29c8d89bab0de6327bd9b7 Mon Sep 17 00:00:00 2001 From: Vittorio Palmisano Date: Mon, 2 Dec 2024 10:42:48 +0100 Subject: [PATCH] use average rtt calculation for video layers --- scripts/peer-connection-stats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/peer-connection-stats.js b/scripts/peer-connection-stats.js index 79ba2ee..ee370d8 100644 --- a/scripts/peer-connection-stats.js +++ b/scripts/peer-connection-stats.js @@ -194,6 +194,8 @@ async function getPeerConnectionStats(id, pc, now, raw = false, verbose = false) 'qualityLimitationDurationsCpu', 'qualityLimitationDurationsBandwidth', 'qualityLimitationDurationsTotal', + 'totalRoundTripTime', + 'roundTripTimeMeasurements', ].forEach(prop => sumOptional(values.outboundRtp, outboundRtp, prop)) ;[ 'framesSent', @@ -202,8 +204,6 @@ async function getPeerConnectionStats(id, pc, now, raw = false, verbose = false) 'framesPerSecond', 'firCountReceived', 'pliCountReceived', - 'totalRoundTripTime', - 'roundTripTimeMeasurements', 'jitter', 'totalEncodeTime', 'totalPacketSendDelay',