Author Me Date 2007/11/4
Debaser is a module to include audio and video in your website. This is some information on how to make it work for you with Flash player and MP3 (and FLV Videos).
Latest Version: 0.92b
Debaser allows you to link to and play audio or video from different locations, either on your website and/or another website you link to. Either will work. You can also add additional information (using DHTML text area) as well as size, frequency, track, album, etc. You can also upload files to the server using this module. It includes embedded players for Flash, Windows, Real Audio and Quicktime.
Since Flash is the defacto standard these days, I've updated the players for Flash, and because I didn't like the clunky audio player that came with debaser (a very old O'Reilly OnLamp version never updated), I've updated that one as outlined below.
There are some other modules out there that do some of this, but some are quite old. WebShow (also from the author's website) is the one that is most promising and I look forward to its completion.
Installation/Update
Installation and update are per usual.
Notes
Overall it works fine, but is certainly clunky in places. Sometimes I'd rather embed the player than pop it up like it does as well as the pop-ups for submitting files/links. It could also use embedded comments, notifications, and searchability.
Modifications
Flash Audio - MP3
I needed a better MP3 player and wanted to use Flash Audio, so this is what I did. If you need to do Flash Video, you could update this player similarly using my Video article.
I used the MP3 Flash Player from Jeroen Wijering (licensed under Creative Commons license, free for non-profit, requires paid license for commercial usage). Download that and copy swfobject.js and mp3player.swf files into the root of debaser module.
For the Flash Audio player use this code instead:
<script type="text/javascript" src="swfobject.js"></script>
<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get Flash Player</a> to use this player.</p>
<script type="text/javascript">
var s1 = new SWFObject("mp3player.swf", "playlist", "<@width@>", "<@height@>", "7");
s1.addVariable("file","<@mp3file@>");
s1.addVariable("repeat","false");
s1.addVariable("autostart","<@autostart@>");
s1.addVariable("showdigits","true");
s1.addVariable("showdigits","true");
s1.addVariable("displayheight","0");
s1.addVariable("width","<@width@>");
s1.addVariable("height","<@height@>");
s1.write("player1");
</script>
That should get you setup and going. Good luck!
Errors
Found, Fixed, and Reported
SQL Statement Error
0.92 had a SQL injection liability and needed a patch. Both the 0.92b version (with the patch) as well as the patch had a code error. Change line 55 from:
WHERE t.genreid=mysql_real_escape_string($gid)
to:
WHERE t.genreid=".mysql_real_escape_string($gid)."
Found, NOT Fixed nor Reported
- Title and Content: entries with apostrophe's get slash added but not removed when displayed. It compounds upon each save.
|