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

Responsive? #1146

Closed
smlombardi opened this issue Apr 13, 2014 · 1 comment
Closed

Responsive? #1146

smlombardi opened this issue Apr 13, 2014 · 1 comment

Comments

@smlombardi
Copy link

It seems I need to specify a width and height with this, and this is preventing the video from being responsive.

With a regular video tag, I set it with CSS to be max-width=100% of the parent div, and it just works.

Can this be emulated with video.js?

@heff
Copy link
Member

heff commented Apr 14, 2014

For now you can use width="auto" height="auto" to allow CSS to override the width and height of the player.

In #982 there's a discussion around updating the player to support responsive in a better way.

@heff heff closed this as completed Apr 14, 2014
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants