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

Won't Work With Latest Videojs #1

Closed
TensorTom opened this issue Aug 22, 2017 · 1 comment
Closed

Won't Work With Latest Videojs #1

TensorTom opened this issue Aug 22, 2017 · 1 comment

Comments

@TensorTom
Copy link

@TensorTom TensorTom commented Aug 22, 2017

I can't get this to work. I'm using the latest VideoJS. I get error:

VIDEOJS: ERROR: Improper value "auto" supplied for for width
video.js:489 VIDEOJS: ERROR: Improper value "auto" supplied for for height

The video no longer stretches to fill the div area.

@rudkovskyi

This comment has been minimized.

Copy link
Owner

@rudkovskyi rudkovskyi commented Aug 22, 2017

You no more needed attributes width and height for the video tag. Although to fill the div you may need to adjust the style of the video like this:

<video id="example_video_1" class="video-js vjs-default-skin" controls preload="auto"
  style="height:auto; width:100%"
  data-setup="{}">
  <source src="http://vjs.zencdn.net/v/oceans.mp4" type='video/mp4' />
    <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
</video>

Works in the latest Chrome & Safari

@rudkovskyi rudkovskyi closed this Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.