samdutton / simpl

Simplest possible examples of HTML, CSS and Javascript:
https://simpl.info
Apache License 2.0
5.19k stars 1.64k forks source link

set recorded video resolution #134

Open BerlinaLI opened 5 years ago

BerlinaLI commented 5 years ago

When I run the demo code in local environment, the recorded video has lower resolution than the one on the website. Could you point out where to set the resolution? image1 : run in local env image2: run on website https://simpl.info/mediarecorder/

Screen Shot 2019-06-17 at 12 32 04 AM Screen Shot 2019-06-17 at 12 32 37 AM
samdutton commented 5 years ago

Hi @BerlinaLI !

Thanks for filing the issue, but I can't seem to reproduce this :(.

Are you running exactly the same code, from localhost (i.e. running a local server), from the same computer and camera?

There's a demo of using constraints to choose resolution here: https://simpl.info/getusermedia/constraints (it won't work for resolutions not supported by your camera).