I find that it's more simple to have jplayer in single mode into a node when there's only one audio file, even if playlist mode is selected for the formatter.

I made a patch to add this feature to my site.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

patrickroma’s picture

great!

patrickroma’s picture

VM’s picture

Status: Active » Needs review
nikosnikos’s picture

Here is a version of the patch working with beta 3

blakehall’s picture

Status: Needs review » Reviewed & tested by the community

Looks like this is working to me. Marking RTBC.

deviantintegral’s picture

Version: 6.x-1.0-beta2 » 7.x-2.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

I've committed this patch as well as a comment style cleanup. This doesn't easily apply to the 7.x version of the module, so it will need to be ported by hand.

nikosnikos’s picture

Here's a patch for drupal 7.
I only tested on audios not with videos.

The main change is in jplayer_field_formatter_view function.
I also replaced $type by $mode in jplayer_sort_files I found that $type was used more for video/audio than single/playlist.
And I did some modifications in tpl, css and js to allow jplayer to be themed as I (arbitrary) wanted in single mode.

VM’s picture

Status: Patch (to be ported) » Needs review
vchen’s picture

@nikosnikos, Thanks for the patch for drupal 7.

Can you create a patch that doesn't have your customized css or other code that is specific to your site only?