Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to embed mpeg file in html

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 29-06-2009
Member
 
Join Date: May 2009
Posts: 208
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 ?

Reply With Quote
  #2  
Old 29-06-2009
Member
 
Join Date: Feb 2009
Posts: 217
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.
Reply With Quote
  #3  
Old 29-06-2009
Member
 
Join Date: May 2009
Posts: 208
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>
Reply With Quote
  #4  
Old 29-06-2009
Member
 
Join Date: Feb 2008
Posts: 1,845
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>
Reply With Quote
  #5  
Old 29-06-2009
Member
 
Join Date: Feb 2009
Posts: 217
Re: How to embed mpeg file in html

You can simply use this code:

Quote:
&lt;EMBED SRC="movie.mpg" AUTOPLAY=true WIDTH=160 HEIGHT=120&gt;
&lt;/EMBED&gt;
I have tested it and am happy with the same.
Reply With Quote
  #6  
Old 29-11-2009
Member
 
Join Date: Nov 2009
Posts: 1
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?
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to embed mpeg file in html"
Thread Thread Starter Forum Replies Last Post
Embed mp4 in html super soaker Software Development 5 21-12-2009 12:00 PM
How to embed xml in html VinFanatic Software Development 3 03-08-2009 01:14 PM
Embed mpeg in web page envo diverter Software Development 3 09-07-2009 07:03 PM
How to Embed FLV/SWF Videos In HTML CACTUS101 Technology & Internet 3 29-06-2009 10:00 AM
How to embed a WMV into an html page Ameyaa Software Development 2 19-05-2009 10:37 AM


All times are GMT +5.5. The time now is 03:00 PM.