From 7e3be76c9a2cacdc94a8a72bcdf03932cd47c5c9 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 23 Oct 2025 07:19:02 -0500 Subject: [PATCH] use avg_frame_rate --- web/src/components/settings/wizard/Step2StreamConfig.tsx | 6 +++--- web/src/components/settings/wizard/Step3Validation.tsx | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/src/components/settings/wizard/Step2StreamConfig.tsx b/web/src/components/settings/wizard/Step2StreamConfig.tsx index 0a3419940..f9676f2b0 100644 --- a/web/src/components/settings/wizard/Step2StreamConfig.tsx +++ b/web/src/components/settings/wizard/Step2StreamConfig.tsx @@ -151,9 +151,9 @@ export default function Step2StreamConfig({ ? `${videoStream.width}x${videoStream.height}` : undefined; - const fps = videoStream?.r_frame_rate - ? parseFloat(videoStream.r_frame_rate.split("/")[0]) / - parseFloat(videoStream.r_frame_rate.split("/")[1]) + const fps = videoStream?.avg_frame_rate + ? parseFloat(videoStream.avg_frame_rate.split("/")[0]) / + parseFloat(videoStream.avg_frame_rate.split("/")[1]) : undefined; const testResult: TestResult = { diff --git a/web/src/components/settings/wizard/Step3Validation.tsx b/web/src/components/settings/wizard/Step3Validation.tsx index 355038b92..9f4b25330 100644 --- a/web/src/components/settings/wizard/Step3Validation.tsx +++ b/web/src/components/settings/wizard/Step3Validation.tsx @@ -85,9 +85,9 @@ export default function Step3Validation({ ? `${videoStream.width}x${videoStream.height}` : undefined; - const fps = videoStream?.r_frame_rate - ? parseFloat(videoStream.r_frame_rate.split("/")[0]) / - parseFloat(videoStream.r_frame_rate.split("/")[1]) + const fps = videoStream?.avg_frame_rate + ? parseFloat(videoStream.avg_frame_rate.split("/")[0]) / + parseFloat(videoStream.avg_frame_rate.split("/")[1]) : undefined; return { @@ -323,7 +323,7 @@ export default function Step3Validation({ )}