In another thread, I fixed some issues with songs repeating and so forth and then got down with some additional things, most pertinent to this posting being to modify the behavior of the jplayer playlists to either loop or just stop after playing the last song...

Well, I am attaching a zip file containing the 4 files from the beta2 module that I hacked at to get playlists to loop or not loop based upon a display type. One day I'll learn about patch :) Also, I *think* these are all I changed, but I don't have another testbed to shove it all in to make sure, so, use at your own peril. The worst thing that can happen is a white screen :)

But anyway, I had to hack up jplayer.module as well as includes/jplayer.theme.inc, theme/jplayer.js and theme/jplayer.tpl.php.

Basically, I just told jplayer.module how to add classes around the playlist elements via jplayer.tpl.php that then told jplayer.js what to do after playing the last song in the playlist. Whether I did this in the best way, well, I doubt it, as I've just started dipping my fingers back into the coding world again.

One other thing...I didn't test this with views....but I think it uses the no loop behavior :)

CommentFileSizeAuthor
jimajammahacksjplayer.zip5.07 KBjimajamma
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

VM’s picture

Status: Active » Needs review
deviantintegral’s picture

Version: 6.x-1.0-beta2 » 6.x-1.x-dev
Status: Needs review » Needs work

This needs to be rerolled against 6.x-1.x, and provided as a patch.

I'm not sure about having this as a separate formatter. Instead, could it simply be a button in the player itself? That way a user could turn repeat on or off themselves.

markie’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)

@deviantintegral++

Can you please verify that this issue is still happening in the latest dev branch. Also please submit a patch instead of a zip.