react-media-recorder icon indicating copy to clipboard operation
react-media-recorder copied to clipboard

Video Resolution?

Open Muaddib787 opened this issue 3 years ago • 2 comments

Is there a way to specify the resolution the recorded video will be generated with (eg. 1080p)?

Muaddib787 avatar Apr 15 '22 17:04 Muaddib787

I am also looking for the same option. Can anyone help

rahpandey1 avatar Jan 13 '23 09:01 rahpandey1

<ReactMediaRecorder
  video={{
    width: { ideal: 1920 },
    height: { ideal: 1080 },
    aspectRatio: { ideal: 16 / 9 },
    facingMode: 'user',
    frameRate: { ideal: 60, max: 60 },
    // if using typescript press CTRL + SPACE with
    // cursor in this object to see available options
  }}
  // other props...
/>

spec

LavransBjerkestrand avatar Nov 16 '23 22:11 LavransBjerkestrand