fix: specify framerate in constraints (#703)
This commit is contained in:
parent
05014f747a
commit
ec3d83f7ca
2 changed files with 2 additions and 2 deletions
|
@ -721,7 +721,7 @@ function ModalComponent({
|
|||
|
||||
const constraints = {
|
||||
...track.getConstraints(),
|
||||
frameRate,
|
||||
frameRate: { min: frameRate, ideal: frameRate },
|
||||
width: { min: 640, ideal: width, max: width },
|
||||
height: { min: 480, ideal: height, max: height },
|
||||
advanced: [{ width: width, height: height }],
|
||||
|
|
|
@ -36,7 +36,7 @@ if (isLinux) {
|
|||
|
||||
const constraints = {
|
||||
...track.getConstraints(),
|
||||
frameRate,
|
||||
frameRate: { min: frameRate, ideal: frameRate },
|
||||
width: { min: 640, ideal: width, max: width },
|
||||
height: { min: 480, ideal: height, max: height },
|
||||
advanced: [{ width: width, height: height }],
|
||||
|
|
Loading…
Reference in a new issue