Hi,

The path being supplied for the jPlayer JS file starts with a '/' which means that drupal_add_js doesn't work when you have script aggregation turned on.

In audiofield_jplayer() I've removed drupal_add_js($player_path); and addded drupal_add_js($audio_players['jplayer']['path']); instead, which fixed the problem for me.

Comments

micheas’s picture

I haven't really looked into this but your patch did not solve the problem for me.

tamerzg’s picture

Issue summary: View changes
Status: Active » Fixed

Now version 7.x-1.0 supports Jplayer through https://www.drupal.org/project/jplayer module so the latest version is working fine.

Status: Fixed » Closed (fixed)

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