Captioning for Quicktime
Adding Quicktime Content to a Web Page
Article Contents
- Page 1: Introduction to Captioning for Quicktime
- Page 2: Creating the Caption File
- Page 3: Creating the Quicktime Text Track
- Page 4: Adding Captions to a Quicktime Movie
- Page 5: Using SMIL to Add Captions to Quicktime Movies
- Current page: Page 6: Adding Quicktime Content to a Web Page
Linking to a Quicktime Movie
<a href="wizard_of_oz.mov">Link to Quicktime</a>
Linking to a Quicktime movie is simple, just create a standard HTML link to the Quicktime movie. Because the user's computer may try to open SMIL files with RealPlayer, this strategy will not work if you are using SMIL. In that case, you must link directly to a .mov file. The movie will play within the web browser, not the Quicktime Player. You cannot specify movie settings such as types of controls to display, dimensions, etc. using this method. The movie will play at the dimensions in which it was created.
Embedding Quicktime
To embed a Quicktime movie into your web page, you need to use the object tag and the embed tag.
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="306" standby="Data is loading..." codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="wizard_of_ozComplete.mov">
<param name="autoplay" value="true">
<param name="controller" value="true">
<embed src="wizard_of_ozComplete.mov" width="320" height="306" scale="1" autoplay="true" controller="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/">
</embed>
</object>
- Notice how the
objecttag surrounds theembedtag. - Change the
src,height, andwidthoptions to match your movie. - The
classidandcodebasetell Internet Explorer what kind of media this is and where to go to install Quicktime, if it is not already installed. - For accessibility reasons, make the controller visible by setting the controller
paramandattributeto true. You will need to add 16 to the height of your movie to make room for the controller.
Opening a Quicktime Movie in the Quicktime Player
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="240" standby="Data is loading..." codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="poster.pct">
<param name="autohref" value="true">
<param name="controller" value="false">
<param name="href" value="wizard_of_oz.smil">
<param name="target" value="quicktimeplayer">
<embed src="poster.pct" type="image/x-quicktime" width="320" height="240" autohref="true" controller="false" href="wizard_of_oz.smil" target="quicktimeplayer">
</embed>
</object>
- This code allows the Quicktime movie or SMIL presentation to be opened in the Quicktime player.
- The
srcattribute is a movie that will display in the web page, this is usually a still frame of the movie, or even an image of something else. I suggest using a file that is typically opened by Quicktime, such as a .mov or .qti (Quicktime image), so another program doesn't try to open it instead. Typically you would use Quicktime Pro to export a still image of your video footage. - As soon as the Quicktime plugin loads the
srcmovie, theautohrefattribute tells it to automatically open the movie found in thehrefattribute in the Quicktime player. You must include thesrc,autohref,href, andtargetattributes for this to work. - The size of the
srcmovie doesn't matter. The player will expand to whatever size it needs to be to display thehrefmovie. - To make the
hrefmovie automatically play, you must set theautoplayoption to play within Quicktime Pro. If you are pointing to a SMIL file, you can addqt:autoplay="true"to the SMIL file. Otherwise, the end user must press the play button in the stand-alone player to view the movie. - If you don't want the Quicktime player to open until the user clicks on the embedded movie or image, remove the
autohrefattribute or set it to false. Using SMIL, you can create a menu of available movies from which the user can select one. When they click a particular region, the appropriate movie will open in the Quicktime player.
View a Quicktime Movie in the Quicktime Player
Another method of opening a Quicktime movie in the stand-alone Quicktime player is with .qtl (Quicktime link) files. A qtl file is an XML-based file that opens in Quicktime player and tells the Quicktime player to play a particular file. Create a text file and add the following, changing the src attribute of the embed tag to match your .mov file or .smil file.
<?xml version="1.0"?>
<?quicktime type="application/x-quicktime-media-link"?>
<embed src="http://www.yourwebserver.com/smilfile.smil" autoplay="true" />
Save the file with a .qtl file extension. Save the file on your web server and create a link to the file.
- You can link to both SMIL and .mov files. In fact, you can link to any file that Quicktime can play.
- This method only works if Quicktime player version 5 or newer is installed.
- Only absolute paths (starting with
http://) can be used in the .qtl file. - Don't forget the trailing slash in the embed tag. This is XML, not HTML.
- Most web servers are not yet set up to associate .qtl files with the Quicktime player. To fix this, add the following MIME type to your web server -
.qtl = application/quicktimeplayer
Embedding SMIL
Quicktime movies can also be embedded directly into a web page. By embedding a SMIL, you can control the way multimedia content is displayed on the web. It is usually recommended that developers allow the media to open in the stand-alone media player because the controls are much more accessible using a screen reader or keyboard than the controls for embedded media.
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="306" standby="Data is loading..." codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="wizard_of_oz.smil">
<param name="autoplay" value="true">
<param name="controller" value="true">
<embed src="wizard_of_oz.smil" width="320" height="316" scale="1" autoplay="true" controller="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/">
</embed>
</object>
- If you want to embed a SMIL presentation into your web page, use the previous code as a guide.
- For accessibility reasons, be sure to set the
controllerparameter to"true". - SMIL is only supported by Quicktime version 4.1 or newer.
- Make sure that your dimensions are the same as what is specified in your SMIL document. Add 16 to the height to make room for the controller.