External or Embed Multimedia with Object Tag

Multimedia is the term used to place sound, video movies or animation in the web page. One method for embedding and accessing audio and video in the xHTML document is to use the Anchor tag <a   href > and the second is to embed the file in the document using the <embed /> tag. The Embed tag is being deprecated for Object.

HTML Link to a MPG File

<a href="images/knitting_class.mpg" title="Making a gift">A Crocheting Lesson</a>
This file will automatically open in a new window and start with controls.
A Crocheting Lesson, mpg

Embed MPG Files(Deprecated)

This method displays the QuickTime Player with the controller or pc media window with the controls to start the movie. Autoplay and controller should have the same value.
Click the image to start or stop if controllers are not displayed.

The script: <embed src="images/knitting_class.mpg" height="100" width="100" controllers="true" autoplay="false" title="Making a gift" name="crocheting" loop="false"></embed>
Download QuickTime from Apple if not installed. QuickTime operates on both platforms.

Object Element

 

<object data="images/knitting_class.mpg" type="video/quicktime" class id="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="210px" height="200px">
<object data="images/knitting_class.mpg" type="video/quicktime" width="210px" height="200px">
<param src="src" value="images/knitting_class.mpg" />
<param name="autoplay" value="false" />
<param name="controller" value="true" />
<param name="showcontrol" value="true" />
<param name="bgcolor" value="#f5fffa" />
</object>

Download Quicktime from Apple
Learn about the Class id and Codebase in class

Web Design with XHTML Part II
Doris Cuffey, Instructor