Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct width and height of the video #10

Open
Kephson opened this issue Jan 19, 2014 · 1 comment
Open

Correct width and height of the video #10

Kephson opened this issue Jan 19, 2014 · 1 comment

Comments

@Kephson
Copy link

Kephson commented Jan 19, 2014

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

@mrbeam
Copy link

mrbeam commented Nov 12, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant