Skip to content

Commit 8b09b29

Browse files
committed
fix: video frame rate not set when used for the first time
1 parent 287cbb5 commit 8b09b29

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

browser/src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ const App = () => {
7575
const stream = await navigator.mediaDevices.getUserMedia({
7676
video: {
7777
width: { ideal: resolution?.width || 1920 },
78-
height: { ideal: resolution?.height || 1080 }
78+
height: { ideal: resolution?.height || 1080 },
79+
frameRate: { ideal: 60 }
7980
},
8081
audio: true
8182
});

desktop/src/renderer/src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ const App = (): ReactElement => {
7272
const stream = await navigator.mediaDevices.getUserMedia({
7373
video: {
7474
width: { ideal: resolution?.width || 1920 },
75-
height: { ideal: resolution?.height || 1080 }
75+
height: { ideal: resolution?.height || 1080 },
76+
frameRate: { ideal: 60 }
7677
},
7778
audio: true
7879
})

0 commit comments

Comments
 (0)