====Simple MP3 Player====
I'm interested in providing some "audio" links on my pages both for some variety (in recognition of different learning styles), but also so that a few basic introductions can be done in audio so that visually impaired people can listen to descriptions of some features. [**Note:** I recognize that it would be useful if the flash had a floating tooltips sort of feature, like images, but I don't know how to do that. Feel free to add it to the code below if you know how to add "alt" equivalency to flash.].
~&Maybe use this player instead, which uses html for the gui : http://www.kyberfabrikken.dk/opensource/playa/
add the following code to your ##actions## directory as ##audio.php##.
%%(php)
GetConfigValue("base_url");
$site_base = substr($site_base,0,-16);
$site_base = $site_base."flashtools/";
$player = $site_base."hbs_mp3_player.swf";
if (!($url)) {echo "You must provide the url, including http://, as an audio file source. "; return;
}else{
echo $title." ";
}
if ($player)
echo '';
// add the following line after the FlashVars line if you want to restrict urls to the server the flash file is found on
//
// in that case, relative urls are usable.
?>
%%
You also need the SWF file, called hbs_mp3_player.swf which is available [[http://hotpot.uvic.ca/howto/hbs_mp3_player.swf | here]]. This site also provides the fla file in this [[http://hotpot.uvic.ca/howto/audio.htm | tutorial]] to allow further modification (I'm quite primitive in flash, so no hope of me doing any). I've installed this file in a directory called ##flashtools## which is in my wiki root.
Using this code, if you typed in...
""{{audio url="http://hotpot.uvic.ca/howto/narrative1.mp3" title="Test Sound"}}""
you'd see.....
http://gmbowen.educ.unb.ca/wikitest/audioimg.jpg