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
[Enhancement] Video cover entire player area (ie. No black bars) #1880
Comments
Can you share some screenshot of the results? If it works fine you should definitely open a PR. |
Some videos still have issues (eg. LTT uses a strange aspect ratio), but that's also just removing more padding and height CSS definitions and then they have no black bars. A lot of the issues seem to originate from the I don't really have the time to delve into this more to do a full pull request if it's based on an upstream CSS dependency. |
Can you open a PR as is? I might be able to do some more testing |
Wouldn't it be better to initially set the player size (as what youtube does) according to the video's dimensions? Because just cropping out some parts of the video with CSS seems to me a bit brutal, and may remove important infos (especially on e-learning videos). |
I personally like the black bars if anything else. |
No one is talking about cropping out any part of the video. These are blank spaces because the video's aspect ratio is incorrect. |
Also, this does seem to be a upstream bug that they instead have users "fix" through configuration instead of having the library properly utilize the video data. |
Still an issue |
Is your enhancement request related to a problem? Please describe.
Videos have black bars instead of scaling to cover whatever space they need to fit into the browser window.
Describe the solution you'd like
Changing the
/assests/css/default.css
file to make videos cover the space and have no black bars.Specifically the changes needed to achieve this are:
Describe alternatives you've considered
Something like a user setting that allows the addition of custom user CSS that gets evaluated last.
Additional context
I just commented out the CSS blocks necessary and haven't done thorough testing to see if it breaks any other features. I did however use Google Chrome's device toolbar to emulate all the devices and checked for any weirdness. From what I can tell it worked perfectly fine.
Also didn't submit this as a PR since I wasn't sure if this was done for some reason.
The text was updated successfully, but these errors were encountered: