PageStat Blog » Domaining, Software

Embedding AVI Video in HTML

avi video

avi video

Embedding avi video in html, php, asp or other web page is simple if you have the code.
We’ve needed help with this subject many times in the past so we figured we would just post up the solution for ourselves and friends.

The problem? Needing to embed a video into a webpage. The solution? Usually simple html embedded script.

For the practical applications of this “tutorial” ,if you even want to call it that, we are going to show you the html code.

You are most likely going to want to use the embed tag. It’s the simplest.
<embed src=”somevideo.avi” />

Here it is written out

<object width=”160″ height=”144″
classid=”clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B”
codebase=”http://www.apple.com/qtactivex/qtplugin.cab”>
<param name=”src” value=”somevideo.avi”>
<param name=”autoplay” value=”true”>
<param name=”controller” value=”false”>
<embed src=”somevideo.avi” width=”160″ height=”144″
autoplay=”true” controller=”false”
pluginspage=”http://www.apple.com/quicktime/download/”>
</embed>
</object>

That will start to play the movie and prompt the users to download Apple Quicktime (it’s needed to play the avis)

Try it out 😉