autostart: true, is not working
The example given under Setup Syntax on page http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/15995/jw-embedder-reference-guide is not working.
You have to remove the line autostart: true, to get it working.
You has also to add the 'modes' line to get it working on a PC.
What should I do to get autostart working under Windows?
I tried the following code:
bc.. <script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
</head>
<body>
<video id="container">Loading the player ...</video>
<script type="text/javascript">
jwplayer("container").setup({
autostart: true,
controlbar: "none",
file: "http://www.longtailvideo.com/jw/upload/bunny.mp3",
duration: 57,
flashplayer: "/jwplayer/player.swf",
volume: 80,
width: 720,
'modes': [ // not required for ipad, required for Vista
{type: 'html5'},
{type: 'flash', src: '/jwplayer/player.swf'},
{type: 'download'}
]
});
</script>
</body>