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

autoreconnect player for livestreaming


hello i'm 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.

<center>
<script type="text/javascript" src="http://www.primcast.com/jwplayer5/jwplayer.js"></script>
<div id="player_preview" style="float:left;"><video id='video_tag' width='480'height='380' controls autoplay>
<source src='http://caribcast2.flashmediacast.com:2085/live/irietimes/playlist.m3u8'type='video/mp4'></a></div>
<script type="text/javascript">
jwplayer('player_preview').setup({ 'id': 'playerID', 'width': 700, 'height': 400, 'provider': 'rtmp', 'rtmp.tunneling':'false', 'autostart':'true', 'streamer': 'rtmp://caribcast2.flashmediacast.com:2085/live', 'file': 'irietimes', 'skin': 'http://www.primcast.com/jwplayer5/classic.zip', 'duration': '0', 'modes': [ {type: 'flash', src: 'http://www.primcast.com/jwplayer5/player.swf'}, { type: 'html5', config: { 'file': 'http://caribcast2.flashmediacast.com:2085/live/irietimes/playlist.m3u8', 'provider': 'video' }}, { type: 'download', config: { 'file': 'http://caribcast2.flashmediacast.com:2085/live/irietimes/playlist.m3u8', 'provider': 'video' } } ] });</script>
</center>

1 Community Answers

Todd

JW Player Support Agent  
0 rated :

Perhaps the best thing to do would be use our Javascript API’s onError() event to try to force the player to start again:

onError: function() {
jwplayer().play();
}

By the way, JW 6 was released in 2012 and we stopped supporting JW 5 in 2013.

This question has received the maximum number of answers.