mirror of
https://github.com/sipeed/NanoKVM-USB.git
synced 2026-09-11 05:59:57 -05:00
fix: video frame rate not set when used for the first time
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user