Hi,
I've added the Jeroen Wijering mp3player.swf to the players available and would love some help modifying this theme override to hand it a playlist in a format it would work with (currently errors as "playlist not found")
This is my code from foundation/template.php
//OVERRIDE TO DISPLAY AND PLAY PLAYLISTS IN PLAYER-
function foundation_audio_attach_list($nids, $teaser = FALSE) {
drupal_add_css(drupal_get_path('module', 'audio_attach') .'/audio_attach.css');
// generate an XSPF player for this playlist
$player = audio_get_players('name', variable_get('audio_feeds_default_player', 'mp3player'));
$playlist_url = url('node/' . arg(1) .'/xspf', NULL, NULL, TRUE);
$output = theme($player['theme_xspf'], $playlist_url);
foreach ($nids as $aid) {
$audio = node_load($aid);
$audio = node_prepare($audio, $teaser);
$title = $audio->status ? l($audio->title, 'node/' . $audio->nid, NULL, NULL, NULL, TRUE) : check_plain($audio->title);
$items[] = '
';
}
// removed individual players
$output .= theme('item_list', $items, null, 'ol', array('class' => 'audio-attach-list'));
return $output;
}
Thanks!
Comments
Comment #1
mike.hobo commentedI think to add this...
go here
http://drupal.org/node/102912
and scroll down to comment #24.
Download those file and upload them to /players"
then, change the code your using to
And I think that just might work.