Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Remaining time js


How can i get the remaining time off the video ?

I use this to get the position off the video :

jwplayer('video_player').onTime(

function(event) {

$('#timer').html(secondsAsTime(event.position));

}
);

<div id="timer"></div>

3 Community Answers

Todd

JW Player Support Agent  
3 rated :

How about something like this:

var remainingTime = jwplayer().getDuration() – jwplayer().getPosition();

silviufuicu2

User  
0 rated :

hmm thx alot, sry dint post faster but i look on questions and i dint saw any response on my question ...

you should make so people know when someone answer to is questions

thx again !

silviufuicu2

User  
0 rated :

i did this and work perfect

jwplayer('video_player').onTime(

function(event) {

$('#timer').html(secondsAsTime(jwplayer().getDuration() - jwplayer().getPosition()));
}
);

thx again

This question has received the maximum number of answers.