mirror of
https://github.com/sipeed/NanoKVM-USB.git
synced 2026-09-12 06:29:59 -05:00
feat: add max frame rate
fix: https://github.com/sipeed/NanoKVM-USB/issues/99
This commit is contained in:
@@ -13,7 +13,12 @@ class Camera {
|
||||
this.close();
|
||||
|
||||
const constraints = {
|
||||
video: { deviceId: { exact: id }, width: { ideal: width }, height: { ideal: height } },
|
||||
video: {
|
||||
deviceId: { exact: id },
|
||||
width: { ideal: width },
|
||||
height: { ideal: height },
|
||||
frameRate: { ideal: 60 }
|
||||
},
|
||||
audio: audioId ? { deviceId: { exact: audioId } } : false
|
||||
};
|
||||
|
||||
|
||||
@@ -13,7 +13,12 @@ class Camera {
|
||||
this.close()
|
||||
|
||||
const constraints = {
|
||||
video: { deviceId: { exact: id }, width: { ideal: width }, height: { ideal: height } },
|
||||
video: {
|
||||
deviceId: { exact: id },
|
||||
width: { ideal: width },
|
||||
height: { ideal: height },
|
||||
frameRate: { ideal: 60 }
|
||||
},
|
||||
audio: audioId ? { deviceId: { exact: audioId } } : false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user