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

Jwplayer Seek function not working


I am writing a code to handle breakage of internet connection.

So what I am doing: I am showing a message to user that his internet is disconnected and giving a button to Resume video when net connected.

here is code what i did and seek is not working and video playing from starting. How I can achieve it?

var resumetime=0;

function resume()
{
resumetime=Math.round(_player.getPosition());
_player.play();
}

Player onplay event is this:



_player.onPlay(function () {
try {
this.seek(resumetime);


} catch (e) {

}

});


I did in this way also :

function Resume()
{
try {

_player.play(true);
_player.seek(Math.round(_player.getPosition()));

} catch (e) {

}

}

3 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

Could you please send me the test page that is having the issue? It will be easier for everyone to troubleshoot.

b...

User  
0 rated :

Hi Here is test link
https://qa1.social27.com/template15/login

login here with j1@learn27.com and pwd is dsingh

after login visit to link

http://qa2.social27.com/template15/Theater?sid=18538&bundling=false

now let video buffer for 1 mnt and then disconnect your net. now you will see when video reached upto buffferd time it will show a message that net is disconnected and Replay button.



Thanks

George

JW Player Support Agent  
0 rated :

And what would you like it to do?

This question has received the maximum number of answers.