Thoughts from a 21st century educator.
This module let's you take a Podcast view you have created (or probably ANY audio podcast) and allow the JW Media Player 4 module (from the SWF tools module ) to play the audio feed as a playlist, automatically embedding the player as a block. Note that this is built for Drupal 6.
It does not have a lot of configuration options yet, you pretty much need to open up swf_playlist.tpl.php and modify it to suit the location of your feed.
swf_playlist.tpl.php
<?php
// get the location of the JW Media Player
// this doesn't work, I'm not sure why
// $player = url(drupal_get_path('module', 'swftools'). '/shared/flash_media_player/player.swf', array('absolute', TRUE));
// you have to set this manually for now. yech.
$player = "http://localhost/skywyatt/sites/all/modules/swftools/shared/flash_media_player/player.swf";
// get the default settings
$flashvars = _wijering4_flashvars($settings['name']);
// set the flashvars
$flashvars['file'] = url($settings['path'], array('absolute', TRUE));
$flashvars['autostart'] = $settings['autostart'] ? 'true' : 'false';
$flashvars['repeat'] = $settings['repeats'] ? 'true' : 'false';
$flashvars['playlist'] = 'over';
$flashvars['playlistsize'] = '40';
// add the fancy random image stuff while the audio file is playing
$flashvars['plugins'] = 'revolt-1';
// unset the name of the playlist
// we don't want to confuse the JW Media player
$name = $settings['name'];
unset($settings['name']);
unset($settings['path']);
// change some default options
$settings['base'] = base_path();
$options = array(
'params' => $settings,
'flashvars' => $flashvars,
);
// requires SWF tools module and JW Media Player 4 modules
print swf($player, $options);
?>
| Attachment | Size |
|---|---|
| swf_playlist.tar.gz | 3.59 KB |