diff --git a/browser/src/libs/camera/index.ts b/browser/src/libs/camera/index.ts index 5738a5f..2c152a5 100644 --- a/browser/src/libs/camera/index.ts +++ b/browser/src/libs/camera/index.ts @@ -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 }; diff --git a/desktop/src/renderer/src/libs/camera/index.ts b/desktop/src/renderer/src/libs/camera/index.ts index c393415..fd85f5f 100644 --- a/desktop/src/renderer/src/libs/camera/index.ts +++ b/desktop/src/renderer/src/libs/camera/index.ts @@ -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 }