The Problem


[Front Page] [The Problem] [Screenshots] [Script Access] [Alternate Access]

     After some intense trial and error with the Toonami Reactor site, I think I may know what was causing problems for all the browsers that run on Linux operating systems.  These problems are actually quite small and seem to be pretty easy to fix.  If you want, you can view the source of the offending HTML page here.


Problem #1:  An <Embed> Tag Attribute

     The first problem deals with the an <embed> tag for adding a RealPlayer ImageWindow into the page.  In the the following segment of text, the highlighted portion is the problem.

<object ID="animate" name="animate" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH="320" HEIGHT="240">

<param NAME="CONTROLS" VALUE="ImageWindow">

<param NAME="SRC" VALUE="http://www.adultswim.com/clips/birdman/ep01/video.ram">

<param NAME="AUTOSTART" Value="true">

<param NAME="NOJAVA" VALUE="false">

<param NAME="CONSOLE" VALUE="_master">

<embed name="animate" controls="ImageWindow" console="_master" type="audio/x-pn-realaudio-plugin" src="http://www.adultswim.com/clips/birdman/ep01/video.ram" width="320" height="240" autostart="true" nojava="false" pluginsurl="http://www.real.com/products/player/index.html" pluginspage="http://www.real.com/products/player/index.html">

     The "console='_master'" section of this text block is what causes problems.  As seen by this page (it may take a few moments to start, also, it now shows a Havey Birdman clip as of 2003/04/27), removing the "console='_master'" allows the video file to actually play.  Additionally, the "console='_master'" can be renamed to something else, as long as all other occurances of "console='_master'" are changed as well (including the <param> tags).

     Later, on a Windows 2000 machine, Mozilla 1.0 was set up with RealPlayer 8.0 to test if Toonami Reactor would work on Mozilla.  It turned out that Mozilla did work, so it is unlikely that the problem would be browser-specific.  The most likely source of this problem seems to be rpnp.so, the RealPlayer plug-in for non-Windows computers.  Rpnp.so is the only thing that seems to connect the variety of browsers I've tried (Mozilla 1.0, Netscape 4.78, Konqueror, Opera 6.0, Galeon).  The plug-in for Windows computers is nppl3260.dll and, with that, Mozilla works with Toonami Reactor.


Problem #2:  Javascript

     This isn't a huge problem, since an embedded RealPlayer video can be (roughly) controlled with "right-click" mouse controls, but it will be addressed anyway.

     If you tried going to the test page in a link in the paragraph above, you may have noticed that the javascript controls don't work (unless you use Netscape 4.78 or similar, not sure about 6.2).  Anyway, this problem, too, could be easily fixed, although it is not a major problem since a video clip could be played and stopped by using a computer's mouse to click on the viewing window.  By modifying an if statement, we can get the embedded controls to appear.   Right now, the if statement we want to modify says: "If this is a Macintosh running IE, use embedded controls, otherwise use images with javascript."  Well, since Linux systems aren't Macs, we automatically get lumped in with all the Windows computers.

     Basically, all that has to be done is add a way to detect a Linux operating system (easy with Javascript).

<script language="JavaScript" type="text/javascript">
<!--

var str = navigator.platform;

if ( ( finalBrowser == 'macIE' ) || ( str.indexOf('Linux') >= 0 ) ) {

   // Embedded controls for Macintosh and Linux.

} else {

   // Images for javascript controls for Windows.

}

//-->
</script>

     See the test page (as of 2003/04/27, contains a Harvey Birdman clip).  Also, all the "console='_master'" type attributes had to be changed in the page or else it just wouldn't work; I replaced every instance of the term "_master" with "mediaWindow" and everything seems to work well.  The test page has been tested in Netscape 4.78 & 6.2, Mozilla 1.0 RC2, and Galeon 1.2.1, all under Linux.  I have tested this page in Windows under IE as well, and it still seems to work (I haven't been able to test with a Mac).


Almost everything on here is © 2002 Alshoff.

Valid HTML 4.01!