Podcasting: Podcast module hack for 1PixelOut .mp3 player

Podcasting: Podcast module hack for 1PixelOut .mp3 player

by Will Taylor -
Number of replies: 0
Just a hack to the (lovely) Podcast module,
for folks wishing to replace the standard .mp3 player with the 1PixelOut player (see this thread in Filters):
http://moodle.org/mod/forum/discuss.php?d=108512#p486353

after the changes to filter/mediaplugin/mp3player.swf and the filter/mediaplugin/filter.php file described in the thread above,

in podcast.lib.php,
lines 310-316,
make the following changes (in red):

$html .= " <embed src=\"$CFG->wwwroot/filter/mediaplugin/mp3player.swf?soundfile=$url\", " . "\n";
$html .= " quality=\"high\" bgcolor=\"#FFFFF\" width=\"290\" height=\"24\" name=\"mp3player\" " . "\n";
$html .= ' type="application/x-shockwave-flash" ' . "\n";
$html .= ' flashvars="bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&rightbghover=0x999999&righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x9FFFB8&loop=no&autostart=no", quality: "high" ' . "\n";
$html .= ' pluginspage="http://www.macromedia.com/go/getflashplayer">' . "\n";
$html .= '</embed>' . "\n";
$html .= '</object>&nbsp;' . "\n";

the flashvars code can be modified acc. to the 1PixelOut site, to change player color & behavior.
Average of ratings: -