From 8b09b2950e26e60c4c551ea25d4f09cde654d469 Mon Sep 17 00:00:00 2001 From: wj-xiao Date: Mon, 19 Jan 2026 17:23:08 +0800 Subject: [PATCH] fix: video frame rate not set when used for the first time --- browser/src/App.tsx | 3 ++- desktop/src/renderer/src/App.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/browser/src/App.tsx b/browser/src/App.tsx index ca4ce05..cab0338 100644 --- a/browser/src/App.tsx +++ b/browser/src/App.tsx @@ -75,7 +75,8 @@ const App = () => { const stream = await navigator.mediaDevices.getUserMedia({ video: { width: { ideal: resolution?.width || 1920 }, - height: { ideal: resolution?.height || 1080 } + height: { ideal: resolution?.height || 1080 }, + frameRate: { ideal: 60 } }, audio: true }); diff --git a/desktop/src/renderer/src/App.tsx b/desktop/src/renderer/src/App.tsx index 072cca8..259f27a 100644 --- a/desktop/src/renderer/src/App.tsx +++ b/desktop/src/renderer/src/App.tsx @@ -72,7 +72,8 @@ const App = (): ReactElement => { const stream = await navigator.mediaDevices.getUserMedia({ video: { width: { ideal: resolution?.width || 1920 }, - height: { ideal: resolution?.height || 1080 } + height: { ideal: resolution?.height || 1080 }, + frameRate: { ideal: 60 } }, audio: true })