Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I installed the library under sites/all/libraries/player/button/Main.as(etc.)
The button shows as an available option in the audiofield settings, but enabling it the field fails to display.
Comment | File | Size | Author |
---|---|---|---|
#2 | audiofield-xspf-player-not-working-1946332-2.patch | 712 bytes | kaidjohnson |
Comments
Comment #1
gthing CreditAttribution: gthing commentedA temporary workaround is to rename the button player as if it were the regular XSPF player and put it in the appropriate directory.
Comment #2
kaidjohnson CreditAttribution: kaidjohnson commentedThe xspf button player doesn't work because the callback function is pointing to a non-registered theme. In hook_theme() there is a call to _audiofield_theme() which pulls in the player themes. In that function is a registered 'audiofield_players_xspf_button' theme, but the xspf_button callback calls 'audiofield_xspf_button', so nothing renders. Updating the theme call in the callback fixes the issue and now the button works perfectly. Patch provided.
Also, be sure that your player is pointing to the right path, that is: sites/all/libraries/player/button/musicplayer.swf as stated in the README.
Comment #3
Proteo CreditAttribution: Proteo commentedThanks for the patch @kaidjohnson, it worked fine. I can't believe this bug hasn't been fixed yet.
Comment #4
ws.agency CreditAttribution: ws.agency at Websolutions Agency commentedPatch reviewed and tested. Works fine
Comment #5
ws.agency CreditAttribution: ws.agency at Websolutions Agency commentedPatch pushed to git