Click to See Complete Forum and Search --> : Embed mediapalyer in to a web page


shanuragu
08-12-2003, 03:12 AM
Hi

Is it possible to embed media palyer in to my web page using <object>??

if so how can I do it???

shara

rdoekes
08-12-2003, 05:15 AM
<OBJECT ID="myPlayer"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject" WIDTH="235" HEIGHT="204">
<PARAM NAME="fileName" VALUE="myStream.asx">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="false">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="false">
</OBJECT>

This is the embedded code for windows media player

shanuragu
08-12-2003, 07:44 AM
Only Mediaplayer image is displyed on the web page!!!
How can play/use it as a player???

shara

rdoekes
08-12-2003, 07:48 AM
if you set the showControls parameter to true, you will get the play/mute/stop etc. controls

The parameter file name is where you put your media file (.asx, .wmv)

If you do not want it to play after loading, you set the AutoStart parameter to false

Here is a four part tutorial on all the javascript you can use for control events and do smart things with the embedded object
http://www.webreference.com/js/column51/index.html

-Rogier