|
Video
Audio
Graphics
Internet
Misc
Glossary Forums Downloads Equipment Store Links Search | |
| Home : Video : Formats : MPEG : 4 : Streaming : Example | |
Below are two examples of the MP4 embedding code. Note that the code is embedded directly in the HTML, which means that Internet Explorer shows the "Click here to activate" message (the solution for that problem is here).
The first example uses a file with the .mp4 extension:
Here is the code used above:
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" WIDTH="160" HEIGHT="136" >
<PARAM NAME="src" VALUE="videofilename.mp4" >
<PARAM NAME="autoplay" VALUE="true" >
<EMBED SRC="videofilename.mp4" TYPE="image/x-macpaint"
PLUGINSPAGE="http://www.apple.com/quicktime/download" WIDTH="160" HEIGHT="136" AUTOPLAY="true"></EMBED>
</OBJECT>
The second example uses the .mov extrension:
Here is the code used above:
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" WIDTH="160" HEIGHT="136" >
<PARAM NAME="src" VALUE="videofilename_mp4.mov" >
<PARAM NAME="autoplay" VALUE="true" >
<EMBED SRC="videofilename_mp4.mov" TYPE="image/x-macpaint"
PLUGINSPAGE="http://www.apple.com/quicktime/download" WIDTH="160" HEIGHT="136" AUTOPLAY="true"></EMBED>
</OBJECT>