The wordpress player supports multiple audio files if the audio field is configured to accept multiple uploads. But it fails to read them because the audiofield module concatenate the file list with "|" and wpaudioplayer expects a comma separated list.

So I modified my template.php with $audio_file = strtr($variables['audio_file'], '|', ',');

function mytheme_audiofield_players_wpaudioplayer($variables) {
  $player_path = $variables['player_path'];
  $audio_file = strtr($variables['audio_file'], '|', ',');
  return '<object id="audioplayer2" height="24" width="290" data="' . $player_path . '" type="application/x-shockwave-flash">
                          <param value="' . $player_path . '" name="movie"/>
                          <param value="playerID=2&amp;bg=0xCDDFF3&amp;leftbg=0x357DCE&amp;lefticon=0xF2F2F2&amp;rightbg=0xF06A51&amp;rightbghover=0xAF2910&amp;righticon=0xF2F2F2&amp;righticonhover=0xFFFFFF&amp;text=0x357DCE&amp;slider=0x357DCE&amp;track=0xFFFFFF&amp;border=0xFFFFFF&amp;loader=0xAF2910&amp;soundFile=' . $audio_file . '" name="FlashVars"/>
                          <param value="high" name="quality"/>
                          <param value="false" name="menu"/>
                          <param value="transparent" name="wmode"/>
                          </object>';
}

Comments

ws.agency’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

Wordpress player works fine with multiple uploads.