spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column52


A Streaming Media JukeBox - Part II: Netscape

Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source

Embedding the Windows Media Player's Plugin

In Column 51, A Streaming Media JukeBox, we showed you two ways to play a streaming media file. The first one is through an external Media Player. If you haven't install it yet on your computer, this link will connect you immediately to the download area:

Get Windows Media Player

To invoke the external Media Player, just place a link to an ASF or ASX file in your Web page. To see a live demo of a streaming media, try this Media Player Introduction. The minimum modem baud rate should be 28.8K. The video stream will look more like still pictures with lower-rate communication link.

The second method to play a streaming media is to 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 third method to play 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 using the above download link, 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>

Let's examine the components of this tag:

AttributeDescription
TYPEThe Plugin's name as was downloaded from Microsoft. Should be assigned the string "application/x-mplayer2".
PLUGINSPAGEThe browser will check if you have the proper Plugin, and, if you don't, will change its location to the given URL for downloading it.
IDThe Plugin's object ID. You can assign any string to the Plugin's ID. Used by Internet Explorer for object referencing.
NAMEThe Plugin's object name. You can assign any string to the Plugin's name. Used by Netscape Navigator for object referencing.
DISPLAYSIZESpecifies the relative size of the Plugin on the page. 0 is normal size, 1 is smaller than normal, 2 is larger than normal, 3 is even larger, and so on.
AUTOSIZESpecifies whether to automatically size the Plugin window according to the streaming media display size. 0 is false, non-zero is true.
BGCOLORSpecifies the background color of the streaming media window.
SHOWCONTROLSSpecifies whether to show the streaming media controls below the media window. 0 is false, non-zero is true.
SHOWTRACKERSpecifies whether to display the tracking marker that shows the current status of the player: opening, buffering, displaying, etc.
SHOWDISPLAYSpecifies whether to display the show information portion, including the author name, the clip name, and the copyright information. 0 is false, non-zero is true.
SHOWSTATUSBARSpecifies whether to display the bar showing the pointer along the stream where the player is currently at. 0 is false, non-zero is true.
VIDEOBORDER3DSpecifies whether to display a 3-D border around the player. 0 is false, non-zero is true.
WIDTHSpecifies the width of the player window.
HEIGHTSpecifies the height of the player window.
SRCSpecifies streaming media file. Can be either ASX, ASF, or any other media format.
AUTOSTARTSpecifies whether to start the media automatically upon loading. 0 is false, non-zero is true.
DESIGNTIMESPA specical ID number. Can be ignored.

Being a plugin, the <EMBED> tag is not accompanied with any parameters to be used in JavaScript. All Plugin's characterstics are controlled via its methods, as we'll explain later in this column.

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Microsoft PDF: Top 10 Reasons to Move to Server Virtualization with Hyper-V
Microsoft PDF: Six Reasons Why Microsoft's Hyper-V Will Overtake Vmware
Microsoft Step-by-Step Guide: Hyper-V and Failover Clustering
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Microsoft PDF: Top 11 Reasons to Upgrade to Windows Server 2008
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
  PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
HP eBook: Guide to Storage Networking
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Crucial Triples Up With New Three-Channel DDR3 Kits · Meet the Finalists: Excellence in Technology Awards · Tealeaf Offers Insight to Mobile Customer Behavior


Created: November 9, 1999
Revised: November 23, 1999

URL: http://www.webreference.com/js/column52/install.html