How to embed mpeg file in html
The title is exactly what i needed here. I want that when a viewer to a game node of Windows Media Player embeded in a Web page linked video (. Mpeg) click on the file online will run. But this will not instead of playing the file happen to download the file early. I tried to do it with my code but it didn't worked. Could you guys help me out for the same please ?
Re: How to embed mpeg file in html
To embed a MPEG-4 video file into your web page, you need to use a special HTML code. As you said you have a code. To make us help better you should post your code as well with your query. Well, i'd like to see your code first.
Re: How to embed mpeg file in html
I forget to attache my code but anyways, here it is :
Quote:
<tr>
<td width="100%" align="center">
<object id="MediaPlayer1"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
<BR>standby="Loading Microsoft Windows® Media Player components..."
type="application/x-oleobject" width="250" height="246"><param name="fileName" value="PromoNew.mpg"><param name="animationatStart" value="true"><param name="transparentatStart" value="true"><param name="autoStart" value="false"><param name="showControls" value="true"><param name="Volume" value="-450"><embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="PromoNew.mpg"> name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1
volume=-450></object>
</td>
</tr>
Re: How to embed mpeg file in html
Try this code to enter mpeg file in html.As far as this code works fine and shows video fine in firefox but not in Internet explorer 6 does:-
Quote:
<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0" width="200" height="200">
<param name="src" value="Jogi.mpg">
<embed src="Jogi.mpg" pluginspage="http://www.macromedia.com/shockwave/download/" width="200" height="200" autostart="true"></embed>
</object>
Re: How to embed mpeg file in html
You can simply use this code:
Quote:
<EMBED SRC="movie.mpg" AUTOPLAY=true WIDTH=160 HEIGHT=120>
</EMBED>
I have tested it and am happy with the same.
Re: How to embed mpeg file in html
Ok, my embed mpg works, but it gets in front of the other elements of page. So, my css menu don´t work, for example... any body help me?