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

Server Side Render doesn't have video duration #775

Closed
not-cl-ryjadhav opened this issue Oct 9, 2013 · 2 comments
Closed

Server Side Render doesn't have video duration #775

not-cl-ryjadhav opened this issue Oct 9, 2013 · 2 comments

Comments

@not-cl-ryjadhav
Copy link

I'm loading videojs on the DOM via mustache(dust.js):

  <video id="{id}" class="video-js vjs-default-skin hide" controls preload="auto" width="auto" height="360px" poster="{poster}" data-setup='{}'>
     <source src="{playUrl}" type='video/mp4'/>
  </video>

And initializing the player via JS:

this.player = videojs(id);

For some reason the duration on the control bar when I click play shows up as 0:00:

duration

Oddly enough rendering just the html5 video element without videojs shows the duration of the video.

@heff
Copy link
Member

heff commented Oct 9, 2013

There seems to be a race condition going on. I can reproduce this most of the time with the following:
http://jsbin.com/odEqEHi/9/edit

heff added a commit to heff/video.js that referenced this issue Oct 10, 2013
…ng when the video element as already been initialized
@heff heff closed this as completed in 14193c4 Oct 15, 2013
@heff
Copy link
Member

heff commented Oct 15, 2013

4.2.2 is now available with this issue fixed. Please verify if possible.

@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
None yet
Projects
None yet
Development

No branches or pull requests

2 participants