- From: Ivan Borshchov via GitHub <sysbot+gh@w3.org>
- Date: Sun, 12 Dec 2021 21:11:59 +0000
- To: public-webrtc-logs@w3.org
On a new laptop I had frame rate near 15-20 FPS after MediaRecorder when used the next constrainsts:
```
await navigator.mediaDevices.getUserMedia({
video: {
frameRate: {
ideal: 24,
max: 25,
},
},
});
```
On old laptop they produced 24 FPS.
Fixed when I added min constraint:
```
await navigator.mediaDevices.getUserMedia({
video: {
frameRate: {
min: 24, // 😲 this constraint fixed an issue
ideal: 24,
max: 25,
},
},
});
```
Important Note from https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder
> Video resolution, frame rate and similar settings are specified as constraints when calling getUserMedia(), not here in the MediaRecorder API.
--
GitHub Notification of comment by ivictbor
Please view or discuss this issue at https://github.com/w3c/mediacapture-record/issues/177#issuecomment-991971238 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 12 December 2021 21:12:01 UTC