Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

How to play through a playlist once (stop at the end)

3 replies [Last post]
Reply

Need a simple way to run through a playlist once and stop at the end, using the "repeat" parameter. Is there another option that will do this without looping through the list. I understand the following loops the playlist indefinately which is not what is needed.

<script type="text/javascript">
jwplayer('mediaplayer').setup({
'autostart': 'true',
'flashplayer': 'player.swf',
'id': 'playerID',
'width': '560',
'height': '315',
'playlist': [{
'file': '/video/video1.mp4',
'image': '/thumbs/video1.jpg',
'title': 'The first video'
},{
'file': '/video/video2.mp4',
'image': '/thumbs/video2.jpg',
'title': 'The second video'
},{
'file': '/video/video3.mp4',
'image': '/thumbs/video3.jpg',
'title': 'The third video'
}],
repeat: 'always'
});
</script>

Reply

what about using repeat: 'single'?

have you tried this?

Reply

Ok, I believe I have found it, the correct way would be

repeat: list

http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12536/configuration-options

Reply

Yes, repeat:list is the correct variable/implementation!

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options