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&bg=0xCDDFF3&leftbg=0x357DCE&lefticon=0xF2F2F2&rightbg=0xF06A51&rightbghover=0xAF2910&righticon=0xF2F2F2&righticonhover=0xFFFFFF&text=0x357DCE&slider=0x357DCE&track=0xFFFFFF&border=0xFFFFFF&loader=0xAF2910&soundFile=' . $audio_file . '" name="FlashVars"/>
<param value="high" name="quality"/>
<param value="false" name="menu"/>
<param value="transparent" name="wmode"/>
</object>';
}
Comments
Comment #2
ws.agency commentedWordpress player works fine with multiple uploads.