The problem is that the audiofield module has one ID for every flowplayer it renders. This is the offending code:

function audiofield_flowplayer($player_path, $audio_file) {
  return theme('flowplayer', array('config' => $audio_file, 'id' => 'audiofield-'.$player_enum, 'attributes' => array('class' => 'audiofield', 'style' => 'height: 24px')));
}

Change it to

function audiofield_flowplayer($player_path, $audio_file) {
  static $player_enum = 1;
  $output = theme('flowplayer', array('config' => $audio_file, 'id' => 'audiofield-'.$player_enum, 'attributes' => array('class' => 'audiofield', 'style' => 'height: 24px')));
  $player_enum++;
  return $output;
}

Don't want to bother creating a patch, and not sure this is the way to handle this problem although it works.

Comments

gokuast’s picture

for some reason this still isn't working.

bas.hr’s picture

Version: 7.x-1.0-beta3 » 7.x-1.x-dev
Status: Needs review » Fixed

Fixed in dev

Status: Fixed » Closed (fixed)

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