Closed (fixed)
Project:
AudioField
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2012 at 15:11 UTC
Updated:
20 Jan 2015 at 11:34 UTC
Jump to comment: Most recent
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
Comment #1
micheas commentedI haven't really looked into this but your patch did not solve the problem for me.
Comment #2
tamerzg commentedNow version 7.x-1.0 supports Jplayer through https://www.drupal.org/project/jplayer module so the latest version is working fine.