fix: specify framerate in constraints (#703)

This commit is contained in:
kittykel 2024-07-04 09:04:57 -07:00 committed by GitHub
parent 05014f747a
commit ec3d83f7ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -721,7 +721,7 @@ function ModalComponent({
const constraints = { const constraints = {
...track.getConstraints(), ...track.getConstraints(),
frameRate, frameRate: { min: frameRate, ideal: frameRate },
width: { min: 640, ideal: width, max: width }, width: { min: 640, ideal: width, max: width },
height: { min: 480, ideal: height, max: height }, height: { min: 480, ideal: height, max: height },
advanced: [{ width: width, height: height }], advanced: [{ width: width, height: height }],

View file

@ -36,7 +36,7 @@ if (isLinux) {
const constraints = { const constraints = {
...track.getConstraints(), ...track.getConstraints(),
frameRate, frameRate: { min: frameRate, ideal: frameRate },
width: { min: 640, ideal: width, max: width }, width: { min: 640, ideal: width, max: width },
height: { min: 480, ideal: height, max: height }, height: { min: 480, ideal: height, max: height },
advanced: [{ width: width, height: height }], advanced: [{ width: width, height: height }],