Hi, I’m new with ModX, thank you everybody for the CMS and the snippets, modules...
Here is the snippet code (modification of the video player snippet code) :
//SETTINGS
$playerPath="assets/[color=red]flash/mp3[/color]";
$videoPath="http://www.[color=red]yoursite/modx_folder/assets/flash/mp3[/color]";
//END SETTINGS
$output = '<object type="application/x-shockwave-flash"
data="'.$playerPath.'/dewplayer.swf?son='.$playerPath.'/'.$file.'" width="200" height="20" bgcolor="[color=red]#fffff[/color]">
<param name="movie" value="dewplayer.swf?son='.$mp3Path.'/'.$file.'" /> <param name="bgcolor" value="[color=red]#fffff[/color]"> </object>';
return $output;
In red is what you can/should modify.
Here is the link to dew’s blog :
http://www.estvideo.com/dew/index/2005/12/03/603-dewplayer-reloaded