Hi guys, I’ve just finished creating a podcast blog as suggested by this excellent tutorial:
http://modxcms.com/forums/index.php/topic,11108.0.html
My issue is that the mp3 player isn’t loading and I’m getting the raw url which allows me to download the file and gives me the standard "flash not detected" error.
I’m using the latest (v5) player by
http://www.jeroenwijering.com/?item=Flash_Video_Player and the player’s name has changed to player.swf and I updated it in the snippet code as well.
Someone said something about adding the ufo.js script, which wasn’t supplied with the player. I have to the swfobject script. instead. How should I add it?
Here’s my snippet:
<?php
$output='';
$tvValue=$modx->getTemplateVarOutput('Audio',$modx->documentIdentifier);
if($tvValue['Audio']!='') $output.='<p id="player2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p><p><a href="'.$tvValue['Audio'].'">Download File NOW!</a></p><script type="text/javascript">
var FU = { movie:"/assets/flash/player-viral.swf",width:"250",height:"20",majorversion:"7",build:"0",wmode:"transparent",
flashvars:"file='.$tvValue['Audio'].'&repeat=False&showdigits=false&displayheight=0&lightcolor=0xb22450&backcolor=0x990000&frontcolor=0xFFFFFF&autoscroll=true" };
UFO.create( FU, "player2");
</script>';
return $output;
?>
Any help would be appreciated