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

Dynamically prioritize video height or width #252

Open
kirbliscious opened this issue Oct 7, 2017 · 2 comments
Open

Dynamically prioritize video height or width #252

kirbliscious opened this issue Oct 7, 2017 · 2 comments

Comments

@kirbliscious
Copy link

Hello,
This plugin is fantastic. I'm working on an app site with no scrolling and want to fit the video to fill as much of the screen space as possible. Some videos are vertical and are being cut off. Do you have any suggestions on how to approach calculating which is longer and scaling to the maximum without growing taller than the screen?

@davatron5000
Copy link
Owner

davatron5000 commented Oct 8, 2017 via email

@kirbliscious
Copy link
Author

kirbliscious commented Oct 8, 2017

It does a bit, thanks for the quick response. To clarify a bit, I would like the aspect ratio to be maintained, let me try and better explain what I'm trying to accomplish. I want to be able to put any video, vertical or horizontal, and the video would resize to fill the container in whatever direction without going off the page. So if I have a vertical video, it would resize the video to the fullest length it can be without going off the page in either direction, and then set the width proportionally based on that calculated maximum height. And vise versa if it is a horizontal video. Could I do this with css classes and switch em up depending on the orientation of the video?

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