
How can I make the JW Player AutoPlay?
Hi
Can I make the JW Player play automatically without clicking the 'play' button and how? Thanks!
Hi
Can I make the JW Player play automatically without clicking the 'play' button and how? Thanks!
Hi Kurt,
Just add autostart to your embedded script.
<script type="text/javascript">
var flashvars =
{
'streamer': 'rtmp://www.yourdomain.com/oflaDemo',
//...the camera will be recorded in the "streams" directory
'file': 'JWstreams',
'type': 'rtmp',
'controlbar': 'bottom',
'stretching': 'none',
'frontcolor': '86C29D', // text & icons (green)
'backcolor': '849BC1', // playlist background (blue)
'lightcolor': 'C286BA', // selected text/track highlight (pink)
'screencolor': 'FFFFFF', // screen background (black)
'id': 'playerId4',
'autostart': 'true'
};
I hope this will help.
Let me know if you need further help.
I have the same problem but it doesn't seem to work. This is what I have:
bc.. <script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','270','180','9');
s1.addParam('autostart','true');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=example2.flv');
s1.write('preview');
</script>
any ideas?
bc.. <script src="swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject('player.swf', 'player', '270', '180', '9.0.124');
s1.addParam('allowscriptaccess', 'always');
s1.addParam('allowfullscreen', 'true');
s1.addVariable('file', 'example2.flv');
s1.addVariable('autostart', 'true');
s1.write('preview');
</script>
THANKS!!
Oh, I have another question: is it possible to loop the video by adding something to the code above that Craterscore provided me??
Thanks
Yes,
Under bc.. s1.addVariable(‘autostart’, ‘true’);
Add:
Under bc.. s1.addVariable(‘repeat’, ‘always’);