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

width and height auto #1014

Closed
isdito opened this issue Feb 14, 2014 · 2 comments
Closed

width and height auto #1014

isdito opened this issue Feb 14, 2014 · 2 comments
Labels

Comments

@isdito
Copy link

isdito commented Feb 14, 2014

Hello and thank you for the plugin. I put inside a div the video container. But not scale to fit. It is posible?

 <div style="width: 100%; height: auto; max-width: 720px;"><video id="full-video_7" class="video-js vjs-default-skin" poster="/images/articulos/videos/'.$Anio.$Mes.$Dia.'/Prediccion_nieve.jpg" ><source src="images/articulos/videos/'.$Anio.$Mes.$Dia.'/CSNOW.webm" type="video/webm" /><source src="images/articulos/videos/'.$Anio.$Mes.$Dia.'/Prediccion_nieve.mp4" type="video/mp4;" /></video></div>';

Sorry my bad english

@isdito
Copy link
Author

isdito commented Feb 14, 2014

I fix this, with the function of your oficial webpage

window.onresize = resizeVideoJS(); // Call the function on resize

Thank you

@heff
Copy link
Member

heff commented Feb 14, 2014

Great! We're also discussing the issue in #982.

@heff heff closed this as completed Feb 14, 2014
@heff heff added the question label Feb 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.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants