Page 1 of 1

Replacing EMBED with OBJECT

Posted: Sun Aug 01, 2004 12:29 am
by anjanesh
Hi
I want to use the OBJECT tag to play movie files on the page. I don't want to use the EMBED tag since its deprecated in HTML 4.01 though I got it to work.
But I cannot get OBJECT to work properly. It seems the classid is unique for each type of object and for each object ?
If I have this :

Code: Select all

<OBJECT CODE="videos/avi1.avi" width="100" height="50"></OBJECT>
its loading java plugin and says applet not initialized. I need to know the paramters that onject requires and have.
Thanx

Posted: Sun Aug 01, 2004 12:37 am
by feyd

Posted: Sun Aug 01, 2004 12:58 am
by anjanesh
Thanks for the info. Where can I get html tags' syntax reference ? w3 has something thats really not so readable. Cannot make out their way.

By the way in the above link I found that theres documentation on Windows Media Player 10 SDK. Wheres the download. Searched but couldn't get it. Even at labs.msdn.

Thanks

Posted: Sun Aug 01, 2004 1:11 am
by feyd
werbach.com/barebones/

Posted: Mon Aug 02, 2004 12:12 pm
by anjanesh

Code: Select all

<OBJECT ID="MediaPlayer" WIDTH=100 HEIGHT=100 CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="videos/<? echo $row&#1111;'VideoURL']; ?>">
<EMBED TYPE="application/x-mplayer2" SRC="videos/<? echo $row&#1111;'VideoURL']; ?>" NAME="MediaPlayer" WIDTH=100 HEIGHT=100></EMBED>
</OBJECT>
I'm not able to get it play wmv files. What do I need to do ? Will OBJECT play mov files too ? I dont have quicktime plugin but if I have the codecs will it do ? Right now mov files are not showing up.

Thanks