Skip to content

Commit

Permalink
Show how to set resolution and frame rate (#2698)
Browse files Browse the repository at this point in the history
* Show how to set resolution and frame rate

I was searching myself crazy on how to set the resolution and frame rate, and even thought that it's impossible to control,
until I found that they are set in getUserMedia().
Make a note where this is set, to save others the headache.

* Make it a second note box

* Add notecard class
  • Loading branch information
benbucksch committed Mar 13, 2021
1 parent 57128ab commit cd13133
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/en-us/web/api/mediarecorder/mediarecorder/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ <h3 id="Parameters">Parameters</h3>
adopted for video is 2.5Mbps, while the audio default is adaptive, depending upon
the sample rate and the number of channels.</p>
</div>
<div class="notecard note">
<p>Video resolution, frame rate and similar settings are specified as constraints
when calling {{domxref("MediaDevices.getUserMedia", "getUserMedia()")}},
not here in the MediaRecorder API.</p>
</div>
</dd>
</dl>

Expand Down

0 comments on commit cd13133

Please sign in to comment.