Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
after updating to latest beta version, the WP Audio Player appear only as a single instance, the one with blue/red colours.The other one (white and gray) has disappeared.
It would be great to have control over the colors from within the module.
Anyway, I had the same problem and dug into the AudioField module and include files to revert back to the original grey player.
To change the Audio Player listed on the AudioField settings page (admin/settings/audiofield)...
Open the audiofield.module file
Copy and paste this <param /> from line #51 to replace the <param /> on line #43: <param value="playerID=1&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&rightbghover=0x999999&righticon=0x666666&righticonhover=0xFFFFFF&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x9FFFB8&soundFile=' . $base_path . 'sites/all/libraries/player/Sample_Track.mp3" name="FlashVars"/>
To change the Audio Player listed on each node...
Open the audiofield_formatter.inc file.
Copy and paste this <param /> in place of the code on line #19: <param value="playerID=2&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&rightbghover=0x999999&righticon=0x666666&righticonhover=0xFFFFFF&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x9FFFB8&soundFile=' . $base_path . $element['#item']['filepath'] . '" name="FlashVars"/>
There should be only one instance of the player. In 1.0 version we added theming functions for each player so its possible to override theming function of wp player and change the color there.
Comments
Comment #1
domarques commentedHere too... :(
Comment #2
delapohl commentedSame issue here.
Comment #3
Mascher commentedsome problem i want to select colour scheme of my players and if i load more than one audiofiles module can create playlist for audioplayer....
Comment #4
visualnotion commentedIt would be great to have control over the colors from within the module.
Anyway, I had the same problem and dug into the AudioField module and include files to revert back to the original grey player.
To change the Audio Player listed on the AudioField settings page (admin/settings/audiofield)...
<param />from line #51 to replace the<param />on line #43:<param value="playerID=1&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&rightbghover=0x999999&righticon=0x666666&righticonhover=0xFFFFFF&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x9FFFB8&soundFile=' . $base_path . 'sites/all/libraries/player/Sample_Track.mp3" name="FlashVars"/>To change the Audio Player listed on each node...
<param />in place of the code on line #19:<param value="playerID=2&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&rightbghover=0x999999&righticon=0x666666&righticonhover=0xFFFFFF&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x9FFFB8&soundFile=' . $base_path . $element['#item']['filepath'] . '" name="FlashVars"/>I hope that helps.
Comment #5
tamerzg commentedThere should be only one instance of the player. In 1.0 version we added theming functions for each player so its possible to override theming function of wp player and change the color there.