Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

putting a mp4 video into a web page

mp4 video code

9:22 pm on May 7, 2008 (gmt 0)

New User

5+ Year Member

joined:Aug 28, 2007
posts: 31
votes: 0

Hi all,

I've been supplied a .mp4 video to display on one of our web pages. i've googled the heck out of this, found two approaches that both are not working for me. Am I doing something wrong in my code or is there a different/better approach I should be taking?

First Method:
<embed src="videos/InfoPlus.mp4" width="480" height="375" pluginspage="http://www.apple.com/quicktime/download/"></embed>

Second Method:
<OBJECT classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="480" height="375" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="Movie" value="videos/InfoPlus.mp4">
<param name="autoplay" value="true">
<param name="controller" value="true">
<param name="loop" value="true">
<EMBED src="videos/InfoPlus.mp4" width="480" height="375" autoplay="true"
controller="true" loop="true" pluginspage="http://www.apple.com/quicktime/download/">

9:00 am on May 8, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Aug 29, 2006
votes: 0

Assuming Apache, you need to set the MIME-type in an .htaccess file:

AddType video/mp4v-es .mp4