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

api fuction


http://support.jwplayer.com/customer/portal/articles/1442607-example-a-custom-error-message
[code]jwplayer().onBuffer(function(){
theTimeout = setTimeout(function(){
jwplayer().load({file:"http://mysite.com/errorfile.mp4",image:"http://mysite.com/errorfile.jpg"});
jwplayer().play();
},5000);
});[/code]

how i can put start again in same time the video drop connection or buffer?
and no errorfile

14 Community Answers

virusranger

User  
0 rated :

how i can put video start in same time when drop connection buffer
because default player reset connection and video start from begin

Ethan Feldman

JW Player Support Agent  
0 rated :

You could do a load() and then a seek()

http://www.longtailvideo.com/support/jw-player/28851/javascript-api-reference

virusranger

User  
0 rated :

you dont have any example i not understand javascript

Ethan Feldman

JW Player Support Agent  
0 rated :

Can I see where you tried to run this code example on your site?

virusranger

User  
0 rated :

http://goo.gl/6P6vbK

Ethan Feldman

JW Player Support Agent  
0 rated :

Which player am I supposed to be checking here?

virusranger

User  
0 rated :

player 3 or 4
but i dont if is correct
i need only fuction for reconnect

Ethan Feldman

JW Player Support Agent  
0 rated :

There isn’t really a reconnect function. Please just put up an example with one player only.

virusranger

User  
0 rated :

but i dont have any example
because iam asking for you if have
for help me

Ethan Feldman

JW Player Support Agent  
0 rated :

Just make a page with one player. I don’t have any example of exactly what you want.

virusranger

User  
0 rated :

http://goo.gl/0YDTbF

done and now ?

Ethan Feldman

JW Player Support Agent  
0 rated :

Try something like this:

<!DOCTYPE html>
<script src="http://p.jwpcdn.com/6/8/jwplayer.js"></script>
<center><div id='my-video'></div></center>
<script type='text/javascript'> jwplayer('my-video').setup({ file: "http://s2.ratotv.com/magic/4518/1.mp4", primary:'flash', startparam: 'start' }); jwplayer().onTime(function(){ var position = jwplayer().getPosition(); }); jwplayer().onBuffer(function(){ theTimeout = setTimeout(function(){ jwplayer().load({file: "http://s2.ratotv.com/magic/4518/1.mp4"}); jwplayer().seek(position); },5000); }); </script>

virusranger

User  
0 rated :

not work
when connection is dropped bar of load buffer show me full in black
show me icon in center with arrow for start begin
not restart connection same point when dropped

Ethan Feldman

JW Player Support Agent  
0 rated :

How can I test that is drops?

This question has received the maximum number of answers.