
Obtaining duration before playback
I saw some older articles referring to this, but I couldn't find anything that works.
http://support.jwplayer.com/customer/portal/questions/6062969-get-video-duration
I am trying to obtain the duration of the video prior to playback, which I would then send to the database.
Is it because the new version? (I have a paid version 7.0.0)
I tried using this:
events:{
onReady: function() {
this.play();
this.pause();
duration = this.getDuration();
}
}
but it never pauses.
I also tried "autostart:true" and then calling "this.pause()" in onReady, but that also doesn't work.
Here's a link:
http://mystage32.com/index2.php?task=1