photobooth-js
photobooth-js copied to clipboard
Correct width and height of the video
Hello, thanks for the nice script. Could you please add an option to the APi to set the correct width and height of the video. At the moment the width and height of the element is used, but this is not correct for all webcams, am I right? E.g. in this example it is correct: http://html5hub.com/wp-content/uploads/2013/10/demo.html
I did not try it yet, but I assume this comment tells you how to preserve the aspect ratio: https://github.com/WolframHempel/photobooth-js/blob/gh-pages/js/Photobooth.js#L127