/    Sign up×
Community /Pin to ProfileBookmark

Playing mpeg files in Internet Explorer

Hi all,
How to play a mpeg files by embed tag in html pages.Whenever i open the movie file has to be played automatically.How can I implement this.

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@AlbatrossAug 21.2006 — <embed> is a non-standard method of inserting multimedia into Web pages. You'll have to use <object> instead.

http://www.alistapart.com/articles/byebyeembed/ will give you the rundown on how to use <object> to insert multimedia into Web pages.

While it doesn't cover .mpeg files, I'm sure that if you experiment around with it a bit (using the proper classid and MIME type) you should be able to get it to work.

I think I actually HAVE a .mpeg file or two on my hard drive. Let me see what I can cook up for your particular situation, ok?

Edit. Turns out Quicktime CAN play .mpeg movies... I'll still work up a solution for you though... once my dialup connection downloads the Quicktime player so I can check this out for myself.
Copy linkTweet thisAlerts:
@AlbatrossAug 21.2006 — Ok, I'm still waiting for Quicktime to download, but in the meantime, I was able to get it to work in Internet Explorer (I used a Family Guy movie clip).
[code=html]
<object type="video/mpeg" data="familyguy.mpeg" width="640" height="480">
<param name="src" value="familyguy.mpeg" />
<param name="autostart" value="true" />
<param name="controller" value="true" />
</object>
[/code]


For standard HTML (the above was in an XHTML document), use this instead (note that all I did was remove the forward slash and the space in the param tags)
[code=html]
<object type="video/mpeg" data="familyguy.mpeg" width="640" height="480">
<param name="src" value="familyguy.mpeg">
<param name="autostart" value="true">
<param name="controller" value="true">
</object>
[/code]
Copy linkTweet thisAlerts:
@AlbatrossAug 21.2006 — Ok, it's downloaded and installed. Just confirmed it works in Internet Explorer, Gecko (Mozilla based browsers), and Opera. Don't know about Safari since I don't have a Mac, but I'll go ahead and presume it does until I get a Mac user to confirm it.
Copy linkTweet thisAlerts:
@danasegaraneauthorAug 21.2006 — Dear Albatross ,

Thanks for the post.I am using windows movie player.I will check and revert you back.Once again thanks for your reply.
×

Success!

Help @danasegarane 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.16,
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,
)...