/    Sign up×
Community /Pin to ProfileBookmark

object fails?

q) wmv,avi files work when I use embed tag but not object tag?

<object type=”video/x-ms-wmv” data=”data/lake.wmv” width=”320″ height=”255″>
<param name=”src” value=”data/lake.wmv”>
<param name=”autoStart” value=”0″>
alt : <a href=”data/lake.wmv”>test.wmv</a>
</object>

if i use embed it works so what have i done wrong?

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@jagguyauthorJan 02.2007 — ok it works now but i don't understand that well.

1)mpg and avi files are played through windows media

2)and mov and wmv files are quicktime



so the 1st lot of filetypes needs this MS add-on with object tag

<object id="MediaPlayer" width=320 height=286

classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"

standby="Loading Windows Media Player components..."

type="application/x-oleobject"

codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">

<param name="filename" value="data/fish.mpg">

<param name="Showcontrols" value="True">

<param name="autoStart" value="True">

<embed type="application/x-mplayer2" src="data/fish.mpg"

name="MediaPlayer" width=320 height=240></embed>

</object>

and 2nd lot of quicktime files needs this add-on

<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"

width="320" height="260">

<param name="src" value="data/chef.mov" >

<param name="controller" value="true" >

<param name="autoplay" value="false">

<!--[if gte IE 7]> <!-->

<object type="video/quicktime" data="data/chef.mov" width="320" height="260">

<param name="controller" value="true" >

<param name="autoplay" value="false">

alt : <a href="data/chef.mov">test.mov</a>

</object>

<!--<![endif]-->

<!--[if lt IE 7]>

alt : <a href="data/chef.mov">test.mov</a>

<![endif]-->

</object>

the embed tag works easily without all this but i guess it requires the plugin and isn't good practice.
×

Success!

Help @jagguy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...