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

autoreconnect player for livestreaming


hello iam using a embed flash player for livestreaming.
but user must click on play every time the streaming get disconnected.
how i enable autoreconnect on my flash embed player? so users can reconnect automatically without clicking play.

this the embed i use,
<embed src="http://jwplayer.mediaserve.com/player.swf" height="360" width="640" allowscriptaccess="always" allowfullscreen="true" autostart="true" flashvars="&bandwidth=640&controlbar=over&file=220&mute=true&plugins=viral-2d&streamer=rtmp://208.100.14.27/live"/>

i hope someone can answer this post

4 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

You can do a auto reconnect with our new player and our JS API, but your code is for our legacy player and not using jwplayer.js, so this will not be supported.

m...

User  
0 rated :

ok iam using the new jwplayer, what do i need to add in this embed, to auto reconnect ?

<div id='playerHgnkyTkmcjXd'></div>
<script type='text/javascript'>
jwplayer('playerHgnkyTkmcjXd').setup({
file: 'rtmp://208.100.14.27/live/220',
image: 'http://www.longtailvideo.com/content/images/jw-player/lWMJeVvV-876.jpg',
title: 'test',
width: '100%',
aspectratio: '16:9',
autostart: 'true'
});
</script>

Ethan Feldman

JW Player Support Agent  
0 rated :

Add this code under your player:

jwplayer().onError(function(){
jwplayer().load({file:“http://content.jwplatform.com/videos/7RtXk3vl-52qL9xLP.mp4”,image:“http://content.jwplatform.com/thumbs/7RtXk3vl-480.jpg”});
jwplayer().play();
});
jwplayer().onComplete(function(){
window.location = window.location.href;
});
jwplayer().onBuffer(function(){
theTimeout = setTimeout(function(){
jwplayer().load({file:“http://content.jwplatform.com/videos/7RtXk3vl-52qL9xLP.mp4”,image:“http://content.jwplatform.com/thumbs/7RtXk3vl-480.jpg”});
jwplayer().play();
},5000);
});
jwplayer().onPlay(function(){
clearTimeout(theTimeout);
});

dchoi

User  
0 rated :

Hi Ethan,

It works in Internet Explorer and Chrome but doesn/ t work in iOS and Android. Is there any solution?

Thanks!

Daniel

This question has received the maximum number of answers.