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

feat: Add helper classes for 9:16 and 1:1 #7219

Merged
merged 3 commits into from
Jun 8, 2021

Conversation

mister-ben
Copy link
Contributor

Description

Fluid mode's automatic detection is nice but there can be a layout jump once the video dimensions are known. We have the vjs-16-9 and vjs-9-16 classes already, but square and portrait are also common now.

Specific Changes proposed

Adds vjs-9-16 and vjs-1-1 classes for those aspect ratios.

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
    • Change has been verified in an actual browser (Chrome, Firefox, IE)
    • Unit Tests updated or fixed
    • Docs/guides updated
    • Example created (starter template on JSBin)
  • Reviewed by Two Core Contributors

@gkatsev gkatsev merged commit 35ad17a into videojs:main Jun 8, 2021
@mister-ben mister-ben deleted the feat-ar-classes branch July 14, 2021 17:38
edirub pushed a commit to edirub/video.js that referenced this pull request Jun 8, 2023
Fluid mode's automatic detection is nice, but there can be a layout jump once the video dimensions are known. We have the vjs-16-9 and vjs-9-16 classes already, but square and portrait are also common now.
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

Successfully merging this pull request may close these issues.

2 participants