Re: [mediacapture-record] Ability to tell MediaRecorder to maximize frame rate (#177)

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