Small Patch for Embed Audio in tac.c and status.c
Anthony Mendoza
anthony at onetruemedia.com
Fri Aug 11 17:54:57 CEST 2006
I use Firefox to watch the Tac Overview. This patch is very minor and I
did it because I didn't want to download Quicktime just to hear the
standard .wav files for notifications. I usually don't provide patches
so I'm not sure the proper way to submit so I'll just post here. I'm
basically replacing the EMBED tag in the tac.cgi and status.cgi with a
more standards compliant OBJECT tag. I only tested on Firefox 1.5.0.6
and IE 6.0.2900.2180.xpsp.050622-1524. YMMV. I did this based on the
source for 2.5.
[root at admin01 cgi]# diff tac.c tac.c.new
288,290c288,293
< if(sound!=NULL)
< printf("<EMBED SRC='%s%s' HIDDEN=TRUE
AUTOSTART=TRUE>",url_media_path,sound);
<
---
> if(sound!=NULL) {
> printf("<object type=\"application/x-mplayer2\"
height=\"0\" width=\"0\">");
> printf("<param name=\"fileName\"
value=\"%s%s\">",url_media_path,sound);
> printf("<param name=\"autostart\" value=\"1\">");
> printf("<param name=\"playcount\" value=\"1\"></object>");
> }
[root at admin01 cgi]# diff status.c status.new.c
434,436c434,438
< if(sound!=NULL)
< printf("<EMBED SRC='%s%s' HIDDEN=TRUE
AUTOSTART=TRUE>",url_media_path,sound);
<
---
> if(sound!=NULL) {
> printf("<OBJECT type=\"application/x-mplayer2\" height=\"0\"
width=\"0\">");
> printf("<param name=\"fileName\"
value=\"%s%s\">",url_media_path,sound); printf("<param
name=\"autostart\" value=\"1\">");
> printf("<param name=\"playcount\" value=\"1\"></OBJECT>");
> }
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
More information about the Developers
mailing list