Replacing EMBED with OBJECT

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Replacing EMBED with OBJECT

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

werbach.com/barebones/
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post 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
Post Reply