Bounty-$100.00: Enable Changing Audio_playlist Player under 5.2 w/ Latest Audio Module
Drupal 5.2
Audio 5.x-2.x-dev
pathauto-5.x-2.0-beta2
token-5.x-1.x-dev
... and if it matters:
Views 5.x-1.6
Swftools 5.x-1.1
xspf_playlist-5.x-0.5
Hi. We need to override the player for playlists generated by Audio_playlist.module (one of the sub-modules of the new Audio module) in the above described scenario. We have been wrestling with getting a playlist content type up and running w/ the new Audio module for some time now, finally succeeded in finding the right module versions, sorting out dependencies-though as a side issue, not sure if Swftools or even xspf_playlist are actually even needed-and adding necessary overrides in 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', 'xspf_extended'));
$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);