Embedding 3GPP in HTML


Posted

in


Now that QT supports 3GPP files by default, I thought I would look in to embedding 3GPP content in HTML.  It’s quite simple.  Pretty much everything you need to know can be found at Apple’s <embed> page and Apple’s <object> page.  This is how I would embed my little tea movie in HTML so that both IE and Mozilla-based browsers should be able to deal with it (thanks to Russ for the type addition, it should work in more browsers now):

<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="128"HEIGHT="112" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM name="SRC" VALUE="tea.3gp">
<PARAM name="AUTOPLAY" VALUE="true">
<PARAM name="CONTROLLER" VALUE="true">
<param NAME="type" VALUE="video/quicktime">
 
<EMBED SRC="http://postneo.com/vid/tea.3gp" WIDTH="128" HEIGHT="112" AUTOPLAY="true" CONTROLLER="true" type="video/quicktime" PLUGINSPAGE="http://www.apple.com/quicktime/download/">
</EMBED>
</OBJECT>

The size of a 3GPP file from my Nokia 3650 is 128×96 pixels.  Apple suggests adding 16 pixels to the height of your file in order to fit in the controls.  I’m just following their instructions on that one.

To avoid pissing off the people that read my blog via RSS, I won’t show an example of this in action, but you can check it out at my 3GPP tea test page.