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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gthing’s picture

A temporary workaround is to rename the button player as if it were the regular XSPF player and put it in the appropriate directory.

kaidjohnson’s picture

Assigned: Unassigned » kaidjohnson
Status: Active » Needs review
FileSize
712 bytes

The 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.

Proteo’s picture

Issue summary: View changes

Thanks for the patch @kaidjohnson, it worked fine. I can't believe this bug hasn't been fixed yet.

ws.agency’s picture

Status: Needs review » Patch (to be ported)

Patch reviewed and tested. Works fine

ws.agency’s picture

Status: Patch (to be ported) » Fixed

Patch pushed to git

Status: Fixed » Closed (fixed)

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