March 19, 2000 - JukeBox Principles | WebReference

March 19, 2000 - JukeBox Principles

Yehuda Shiran March 26, 2000
JukeBox Principles
Tips: March 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

In Internet Explorer, we embed the Media Player in the Web page as an ActiveX control. Since ActiveX control is unique to the Windows operating system and Internet Explorer, we need a method to play a streaming media with other operating systems and other browsers. The way to do it is by embedding the Media Player's Plugin in your page. When downloading the player, Microsoft server will identify your operating system and will download both the Media Player ActiveX control as well as its Plugin, either or both, whatever is playable on your computer.

The HTML tag that embeds the Media Player's Plugin is the <EMBED> tag. Here is how we use this tag in our jukebox:

<EMBED TYPE="application/x-mplayer2"
   PLUGINSPAGE="http://microsoft.com/windows/mediaplayer/en/download/" 
   ID=mediaPlayer
   Name="mediaPlayer"
   DISPLAYSIZE="4" 
   AUTOSIZE="-1"
   BGCOLOR="darkblue"
   SHOWCONTROLS="-1"
   SHOWTRACKER="-1"
   SHOWDISPLAY="0"
   SHOWSTATUSBAR="-1"
   VIDEOBORDER3D="-1"
   WIDTH=320
   HEIGHT=313
   SRC="http://msdn.microsoft.com/downloads/samples/
        Internet/imedia/netshow/smedia/NS3/JavaScript/Buttons/control.asx"
   AUTOSTART="-1" '); 
   DESIGNTIMESP="5311">
</EMBED>

Learn more about our Netscape streaming media jukebox in Column 52, A Streaming Media JukeBox, Part II: Netscape Version.