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

auto start video


I do live streaming and we stream from different locations. When we start at another location the play button comes but I want it to start the video just like when the page is opened up. How can that be done...here is my code...thanks
<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>

2 Community Answers

Todd

JW Player Support Agent  
0 rated :

I know I mentioned that JW 5 is no longer supported, but we still try answer basic questions. Just don’t be surprised if we tell you that your best bet might be to upgrade to a newer version of the player…

I see you have autostart set to true in your code. Are you saying the autostart is not working correctly?

erik

User  
0 rated :

If you are dynamically loading the player with another stream, you will need to either pass in the autostart config value or call jwplayer('container').play(); after you load the new stream.

This question has received the maximum number of answers.