Results 1 to 6 of 6

Thread: Embed mp4 in html

  1. #1
    Join Date
    Aug 2006
    Posts
    209

    Embed mp4 in html

    I have an MP4 video and i want to embed that video in to my html page. I know the table tag is use to insert table in to html page and for inserting image you need to write image command but is there any command to inset video in to html page. Any help will be much appreciated.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Embed mp4 in html

    To embed mp4 in html tryt he following code :

    Code:
    <OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="160"HEIGHT="144" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
    <PARAM name="SRC" VALUE="mp4.mov">
    <PARAM name="AUTOPLAY" VALUE="true">
    <PARAM name="CONTROLLER" VALUE="false">
    <EMBED SRC="mp4.mov" WIDTH="170" HEIGHT="145" AUTOPLAY="true" CONTROLLER="false" PLUGINSPAGE="http://www.apple.com/quicktime/download/">
    </EMBED>
    </OBJECT>

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Embed mp4 in html

    You can convert MP4 video to flash FLV or SWF, which can be embed to HTML page directly with high quality but small size. Instead of using some video converter software like IM DVD Converter to convert your MP4 to Flash, you can use the Media Convert website to quickly convert your files. Media Convert does online file conversion for free.

  4. #4
    Join Date
    Nov 2005
    Posts
    1,323

    Re: Embed mp4 in html

    Video to Flash Converter is an easy to use program for converting your digital video to SWF Flash format. Another option is Flowplayer, it is an Open Source (GPL 3) video player for the Web. You will have Full control over the converted Flash Video: video quality, frame rate, size, duration and other parameters. Use it to embed video streams into your web pages. Video to Flash Converter provide SWF file ready for the web or ready to be streamed across Internet connections.

  5. #5
    Join Date
    May 2008
    Posts
    2,012

    Re: Embed mp4 in html

    Use this code to embed mp4 in html :

    Code:
    <script type="text/javascript" src="swfobject.js"></script>
    
    
    <p id="pl1">
    
       <a href="http://www.macromedia.com/go/getflashplayer">
    
       Get the Flash Player</a> to see this player.
    
    </p>
    
    
    <script type="text/javascript">
    
     var s1 = new SWFObject("me.swf","single","384","224","7");
    
     s1.addParam("allowfullscreen","true");
    
     s1.addVariable("file","file1.mp4");
    
     s1.addVariable("image","pr1.jpg");
    
     s1.addVariable("overstretch","none");
    
     s1.addVariable("smoothing","false");
    
     s1.write("player1");
    
    </script>

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

    Re: Embed mp4 in html

    Code:
    <OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" 
    CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" WIDTH="180" HEIGHT="137" >
    <PARAM NAME="src" VALUE="mp4.mov" >
    <PARAM NAME="autoplay" VALUE="true" >
    <EMBED SRC="mp4.mov" TYPE="image/x-macpaint" 
    PLUGINSPAGE="http://www.apple.com/quicktime/download" WIDTH="180" HEIGHT="137" AUTOPLAY="true"></EMBED>
    </OBJECT>

Similar Threads

  1. How to embed mpeg file in html
    By ADJATAY in forum Software Development
    Replies: 5
    Last Post: 29-11-2009, 01:40 AM
  2. How to embed xml in html
    By VinFanatic in forum Software Development
    Replies: 3
    Last Post: 03-08-2009, 01:14 PM
  3. How to Embed FLV/SWF Videos In HTML
    By CACTUS101 in forum Technology & Internet
    Replies: 3
    Last Post: 29-06-2009, 10:00 AM
  4. How to Embed Image in HTML
    By ricardoramey in forum Software Development
    Replies: 5
    Last Post: 28-06-2009, 08:11 PM
  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,713,581,101.62867 seconds with 17 queries