How to embed .mp4 in an HTML page

August 17, 2008

So you got an mp4 video file or you've converted a video to mp4 and you want it to stream from a web server. You need to use this script code putting in the location and file name of your video. Also change the video resolution to match your video size. The width and height shown here are for iPhone videos.

<object width="320" height="480" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
        codebase="http://www.apple.com/qtactivex/qtplugin.cab">
    <param name="src" value="video/filename.mp4">
    <param name="controller" value="true">
    <param name="autoplay" value="true">
    <embed src="video/filename.mp4"
        width="320" height="480"
        controller="true" autoplay="true"
        scale="tofit" cache="true"
        TYPE="video/mp4"
        pluginspage="http://www.apple.com/quicktime/download/"
    >
</object>

Digg It!StumbleUponTechnoratiDel.icio.usReddit

Rit | Pak

Technology Guru, Entreprenuer, HD Gaming, HD Movies, Electronica Music, Nature Lover, Fishing, Amateur Photographer, E-commerce, Web Developer, Systems Admin