jplayer is great and has everything except an option to play the next song automatically..
please add this feature..plz
so we don't have to click the next button to play the next song and we can easily enjoy the playlist..

Comments

emmajane’s picture

Component: Miscellaneous » Code
Category: feature » bug
Priority: Critical » Major
Status: Needs work » Active

The demo on the jplayer Web site does autoadvance to the next item in the play list. I consider this a bug that the Drupal version doesn't do the same.

brycesenz’s picture

subscribing

deviantintegral’s picture

There's a couple issues here that are compounding this. This is a bug unique to the 7.x-2.x branch, as the jPlayer library doesn't actually handle the playlist even though their site demos one.

First, make sure that in your display settings for the audio field you have "All" selected as the repeat setting. It's pretty confusing, so at the least that should be improved.

Second, you could be running an older copy of the jPlayer library. If so, when you select all, it will skip two tracks at a time.

From the jPlayer release notes:

[2.0.2] Bug Fix: The jPlayer ready event now only ever occurs once. Previously, using setMedia in the jPlayer ready event when the Flash solution was being used, would generate an extra ready event.

Finally, the way the repeat process is set up means that when you get to the end of a playlist, it loops back to the beginning. This might not be the desired behaviour, but I think it's safe to call that a separate feature request.

deviantintegral’s picture

Status: Active » Postponed (maintainer needs more info)

Now that I look at it, I'm not sure of the best way to restructure the Repeat option. I think something like this should work:

  • An option for controlling repeats for single players. It would be a simple checkbox, to either repeat or not.
  • A separate field for controlling repeats for playlists. It would be renamed to "Advance to next playlist track" and the options would be never, play each track once, and loop the playlist. If loop was selected, a textfield would allow controlling for the minimum number of tracks in the list to enable looping. That way if only one track was uploaded a site could prevent looping on those players.

Any other ideas?

logo007’s picture

amazing ideas.. Will wait for them to become a reality :)

blazetrack’s picture

It's possible set an option to play entire playlist on press play button, and stops player on last song of playlist? I'm interested in this feature but I don't know how to do it.

scito’s picture

Status: Postponed (maintainer needs more info) » Needs work

> An option for controlling repeats for single players. It would be a simple checkbox, to either repeat or not.

I would prefer this solution because it seems simpler.

Playing the next song and repeating are important features for player with playlists.

Jongo-1’s picture

Very interested in resolution. Is there a work around? Subscribing.

ericduran’s picture

Here's a patch to fix this.

List of what this patch does:
- Creates a new "Continuous Play" option.
- Only show the "Continuous Play" when the playlist mode is selected.
- The JS looks for this option, and if it finds it, it attaches itself to the ended event. It fires the next option when the ended event is fired.
- This also makes sure the playNext event does get fired if the file is the last item in the playlist. In this case you can use the repeat option instead.

ericduran’s picture

Status: Needs work » Needs review
deviantintegral’s picture

Status: Needs review » Needs work

With Firefox, I see the player visually move to the next track, but playback still stops. If I hit play manually it does start the second track.

deviantintegral’s picture

Status: Needs work » Fixed

I've pushed up a few commits as well as the patch from #10. This should be fixed in the dev branch as of 92ba71e.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

webadpro’s picture

This should get added in the views section also.