Embedding Windows Media

July 26th, 2005

Embedding Windows Media Player in a web page can get a bit tricky as you have to use different code for different browsers and versions of the player. In order to cater for all of the different circumstances you will have to write some script to autodetect your browser and player versions. Dependent on the circumstances you can then embed the player using the following snippets of code:

Embedding Windows Media Player version 6 in Internet Explorer

<OBJECT ID=Player WIDTH=320 HEIGHT=240
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95">

<PARAM NAME="FileName"

VALUE="http://merlin.streamingwizard.com/demo/animationbroadband.wmv">
</OBJECT>

Embedding Windows Media Player versions 7-10 in Internet Explorer

<OBJECT ID=Player WIDTH=320 HEIGHT=240
CLASSID="CLSID:6bf52a52-394a-11d3-b153-00c04f79faa6">

<PARAM NAME=FileName

VALUE="http://merlin.streamingwizard.com/demo/animationbroadband.wmv">
</OBJECT>

Embedding Windows Media Player in NetScape, Firefox or other Mozilla based browsers

<EMBED TYPE="application/x-mplayer2"
SRC="http://merlin.streamingwizard.com/demo/animationbroadband.wmv"
NAME=MediaPlayer
WIDTH=320
HEIGHT=240>
</EMBED>

Entry Filed under: Windows Media

Leave a Comment

You must be logged in to post a comment.

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

July 2005
M T W T F S S
    Aug »
 123
45678910
11121314151617
18192021222324
25262728293031

Most Recent Posts