Click to See Complete Forum and Search --> : Playing mpeg files in Internet Explorer
danasegarane
08-20-2006, 11:33 PM
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.
Albatross
08-21-2006, 12:20 AM
<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.
Albatross
08-21-2006, 01:17 AM
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).
<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>
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)
<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>
Albatross
08-21-2006, 02:37 AM
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.
danasegarane
08-21-2006, 02:47 AM
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.