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

How to set the aspect ratio of a video stream? #10

Closed
swatty007 opened this issue Jun 21, 2019 · 1 comment
Closed

How to set the aspect ratio of a video stream? #10

swatty007 opened this issue Jun 21, 2019 · 1 comment

Comments

@swatty007
Copy link

Im having some issues to properly set the dimensions of the video stream for a live detection.
I can correctly set the width & height of the video element. Tough its aspect ratio always stays at 3:4.

I saw that there is a commit for this to support the safari browser, but Im not using safari and would actually prefer a 16:9 resolution. Is that an expected behaviour, or do I miss something?

@victordibia
Copy link
Owner

The right way to go about this is to set the width and height (using your . 16:9 ration) of your video when you pass it to the startVideo method. The method is written to only set width and height to default values if you do not set these explicitly.

Let me know if that doesnt work.

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

2 participants