auto shuffle and repeat

445 views
Skip to first unread message

Peter van Akkeren

unread,
Jun 3, 2011, 4:02:05 AM6/3/11
to jpl...@googlegroups.com
Hi, I want to shuffle a large playlist and repeat it when done. No buttons required, just auto-shuffle and auto-repeat. What syntax can I add to my .js file?

robert

unread,
Sep 12, 2011, 2:30:36 PM9/12/11
to jpl...@googlegroups.com
Is there a repeat playlist option?

Mark Panaghiston

unread,
Sep 12, 2011, 4:17:07 PM9/12/11
to jpl...@googlegroups.com
I never implemented an auto-shuffle system. You'd have to setup the playlist normally and then issue the shuffle command... But doing it at the right time is probably a problem... It should go in the ready event, after the playlist is created. Edit the jPlayerPlaylist code to add the command into the ready handler created in its code.

You could try adding a ready event handler to the jPlayer option part of the jPlayerPlaylist constructor... That handler would be created after the other ready handler... So it might, MIGHT, execute after the other one. I have never really investigated the event order in this way with jQuery... You'd have to test xcross-browser a lot to make sure they all execute the event handlers in teh same order.

Mark Panaghiston

unread,
Sep 12, 2011, 4:20:46 PM9/12/11
to jpl...@googlegroups.com
Hmmm.. I did not implement that as an option. The repeat playlist works through the buttons. You could always issue a click() to the repeat button after jPlayerPlaylist has been instanced...

The alternative would be to change the variable... this.loop = false to true in the jPlayerPlaylist source.

I plan to improve the playlist code in the future. I had to make a call on how long to spend on it, but it appears that I did leave out a few options that would be useful.
Reply all
Reply to author
Forward
0 new messages