Results 1 to 6 of 6

Thread: How to embed mpeg file in html

  1. #1
    Join Date
    May 2009
    Posts
    210

    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 ?

  2. #2
    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.

  3. #3
    Join Date
    May 2009
    Posts
    210

    Re: How to embed mpeg file in html

    I forget to attache my code but anyways, here it is :
    <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>

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    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:-

    <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>

  5. #5
    Join Date
    Feb 2009
    Posts
    217

    Re: How to embed mpeg file in html

    You can simply use this code:

    &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.

  6. #6
    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?

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,663,658.92933 seconds with 17 queries