Overview
The HTML code for the embedded Quicktime player has the following general structure:
<OBJECT ID="QTPlayer"
CLASSID="CLSID:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
HEIGHT="390" WIDTH="360"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<param
name="SRC"
value="http://www.surfnet.nl/cgi-bin/play.php/force_qt.qtl?url=f/ftptest/hinted.mov&start=0&end=0.1&embed=true">
<param
name="AUTOHREF" value="FALSE">
<param name="AUTOPLAY" value="FALSE">
<param name="CONTROLLER" value="TRUE">
<param
name="HREF" value="">
<param name="LOOP" value="FALSE">
<param
name="SCALE" value="ASPECT">
<embed
NAME="QTPlayer"
SRC="http://www.surfnet.nl/cgi-bin/play.php/force_qt.qtl?url=f/ftptest/hinted.mov&start=0&end=0.1&embed=true"
PLUGINSPAGE="http://www.apple.com/quicktime/download/"
TARGET="myself"
HEIGHT ="390"
WIDTH ="360"
AUTOHREF ="FALSE"
AUTOPLAY ="FALSE"
CONTROLLER ="TRUE"
HREF =""
LOOP ="FALSE"
SCALE ="ASPECT">
</embed>
</OBJECT>
This code consists of an <OBJECT> tag and an <EMBED> tag. The <OBJECT> tag is interpreted by Internet Explorer, but is ignored by Netscape. The OBJECT tag handles the embedding of an ActiveX component. Netscape uses the EMBED tag for embedding a Netscape plugin. The combination of both tags ensures a correct replay of the clip in both browsers.
Setting options
The easiest way to set common options is by using the Virtual Cutter. However, you can add manually options that are not included in the generated HTML code. An overview of all options is presented below. Note that you must specify the options for both the OBJECT and the EMBED tag.
OBJECT tag parameters
Add the line below. Replace [parameter name] by the name of the
parameter and [value] by the value of the parameter.
<param name= '[parameter name]' value ='[value]'>
An example:
In order to set the value of the parameter 'AUTOSTART' to 'true', add the following
line underneath the other lines (but before the ">"):
<param name='AUTOSTART' value='true'>
EMBED tag parameters
Add the line below. Replace [parameter name] by the name of the
parameter and [value] by the value of the parameter.
<param name='[parameter name]' value='[value]'>
An example:
In order to set the value of the parameter 'LOOP' to true 'true', add
the following line underneath the other lines (but before the EMBED tag):
'LOOP' ='true'
Overview of the options
Below you will find the options with which you can modify the behaviour of the embedded RealPlayer to your wishes. Include the options in the generated HTML code as described above. The following guidelines apply:
OBJECT tag
- The reserved words PARAM, NAME and VALUE are not case sensitive.
- Parameter names are not case sensitive.
- The same holds for parameter values. Note that file names must often be specified in
lowercase.
- Parameter values must always be enclosed in double quotation marks.
EMBED tag
- Parameter names are not case sensitive.
- The same holds for parameter values. Note that file names must often be specified in
lowercase.
- There is no need to put quotation marks around the parameter values,
unless the value is an URL (file location).
Only examples for the EMBED tag are provided.
AUTOHREFWhen set to TRUE, the AUTOHREF attribute causes any URL specified in the HREF parameter to load immediately, without waiting for a mouse click.
An example: <embed src="sample.mov" width="200" height="240" href="http://dns/foo.mov" autohref="true"> AUTOPLAYWhen AUTOPLAY is set to TRUE, the movie starts playing as soon as the QuickTime Plug-In estimates that it will be able to play the entire movie without waiting for additional data.
An example: <embed src="sample.mov" width="200" height="240" autoplay="true"> BGCOLORThe BGCOLOR parameter specifies the background colour of the image window
Standard colour names are: an example: <embed src="sample.mov" width="200" height="240" bgcolor="000000"> CACHEIf CACHE is set to TRUE, then the file is saved in a cache. The next time the file is requested it not downloaded but started from the cache.
This functionality is supported only by Netscape version 3.0 and later. An example: <embed src="sample.mov" width="200" height="240" cache="true"> CONTROLLERIf CONTROLLER is set to FALSE, the movie controller will not be displayed.
An example: <embed src="sample.mov" width="200" height="240" controller="false"> CORRECTIONThis parameter is valid only for Quicktime VR panoramas.
An example: <embed src="sample.mov" width="320" height="240" correction="full"> DONTFLATTENWHENSAVINGIf this tag is added (no value) the data is saved into a movie file without being flattened. This is not applicable to streaming files.
An example: <embed src="sample.mov" width="320" height="240" dontflattenwhensaving> ENABLEJAVASCRIPTIf you want to control a QuickTime movie using JavaScript functions, you need to enable JavaScript for that movie by setting ENABLEJAVASCRIPT="TRUE".
An example: <embed src="sample.mov" width="320" height="240" enablejavascript=true"> ENDTIMEYou can specify the end of the movie using ENDTIME. This attribute is not required for the Virtual Cutter, because the duration of the fragment is managed by play.php. The use of ENDTIME can lead to unexpected results.
An example: <embed src="sample.mov" width="200" height="240" endtime="3:30:22.5"> See also: STARTTIME FOVFOV is used to set the field of view angle for quicktime VR videofiles.
An example: <embed src="sample.mov" width="200" height="240" fov="55"> GOTOnSee QTNEXT HEIGHTThe HEIGHT attribute specifies the height of the embedded file in pixels. The HEIGHT attribute is required unless the HIDDEN attribute is specified. The HEIGHT of the movie can be found by choosing 'Get Info...' in the 'Movie' menu within QuickTime Player. If the SCALE attribute is set to FALSE and you supply a height that is smaller than the actual height of the movie, the movie will be cropped to fit the height. If you supply a height that is greater than the height of the movie, the movie will be centered inside this height. The Virtual Cutter sets SCALE to TRUE. Remark 1: Never specify a height of less than 2, as this can cause problems with some browsers. Remark 2: If the movie controller is visible, an additional 16 pixels will need to be added.
An example: <embed src="sample.mov" width="200" height="240" controller="true"> See also WIDTH. HIDDENThe HIDDEN attribute makes the movie invisible. The HIDDEN attribute is appropriate for sound-only movies. This option is not appropriate for QuickTime VR Objects or Panoramas. If you do not supply HIDDEN, then the movie will be visible.
An example: <embed src="sample.mov" width="200" height="240" hidden> Remark: If you add the HIDDEN attribute, be sure to set AUTOPLAY="TRUE" as well. HOTSPOTnThis attribute enables clicking on a hotspot with the specified ID in a VR panorama to take the user to the specified URL. n is the hotspot ID as defined when the hot spot is created in the QuickTime VR authoring tools.
An example: <embed src="sample.mov" width="200" height="240" hotspot17="http://www.apple.com"> You can use TargetN to target a hotspot URL to a frame or window, or to the special targets "quicktimeplayer" or "myself". HREFWhen set, the HREF attribute provides a link to another page or movie when the movie is clicked on.
An example: <embed src="sample.mov" width="200" height="240" href="http://www.apple.com/quicktime"> Note: If you are using a relative path name for the HREF then it should be relative to the location of the movie specified in the SRC attribute. See also: TARGET KIOSKMODEWhen KIOSKMODE is set to TRUE, the plug-in does not include its pop-up menu in the movie controller and does not allow drag and drop to save the movie.
An example: <embed src="sample.mov" width="200" height="240" kioskmode="true"> LOOPWhen LOOP is set to TRUE, the movie is played continuously. Setting LOOP to PALINDROME causes the movie to play alternately forwards and backwards. This option is not appropriate for QuickTime VR Objects and Panoramas.
An example: <embed src="sample.mov" width="200" height="240" loop="true"> MOVIEIDThis option is comparable to MOVIENAME, but it uses a numerical value instead of a name.
An example: <embed src="sample.mov" width="200" height="240" movieid="5"> MOVIENAMETwo or more media files in the same webpage can communicate with one another if they have the same name. See also the Apple website ("Wired Movies").
An example: <embed src="sample.mov" width="200" height="240" moviename="targetmov"> NODEThe NODE attribute allows you to specify the initial node for a multi-node QuickTime VR movie with multiple nodes.
An example: <embed src="sample.mov" width="320" height="240" node="128"> PANPAN allows you to specify the initial pan angle for a Quicktime VR movie.
An example: <embed src="sample.mov" width="320" height="240" pan="180"> See also: FOV, NODE and TILT. PLAYEVERYFRAMEPLAYEVERYFRAME attribute causes the movie to play every frame of the movie even if it is necessary to play at a slower rate to do so. This attribute is particularly useful to play simple animations.
an example: <embed src="sample.mov" width="200" height="240" playeveryframe="true"> Note: Setting PLAYEVERYFRAME=TRUE will turn off all audio tracks. PLUGINSPAGEThe PLUGINSPAGE attribute allows you to specify an URL from which the user can fetch the necessary plug-in if it is not installed. This attribute is handled by your browser to open the location of the plug-in. You are advised not to change the standard value "http://www.apple.com/quicktime/download/" .
an example: <embed src="sample.mov" width="200" height="240" pluginspage="http://www.apple.com/quicktime/download/"> QTNEXTn
QTNEXT can be used to play several (up to 256) consecutive movies
one after the other. The value of the parameter specifies the URL that
is to be played after the present movie. QNEXTO is the original movie specified
by the SRC parameter. A QTNEXT tag's value can also be GOTOn where "n" is the index
of the QTNEXT url to load.
This behaves exactly the same as if the movie has a HREF
track with an auto-url ("A
An example: <EMBED SRC="nameof.mov"
WIDTH="200"
HEIGHT="240" see also: TARGET QTSRCUSE the QTSRC attribute to force a browser to use the QuickTime Plug-in for a file no matter what its MIME type is. The attribute treats it's value as a URL to load, and ignores any data loaded by the browser from the SRC parameter.
An example: <EMBED src="sample.mov" qtsrc="rtsp://www.apple.com/quicktime/sample2.mov"> QTSRCCHOKESPEEDUse the QTSRCCHOKESPEED attribute to specify the datarate of a movie being served regardless of the connection speed an end user has. This may be useful when a particular movie is requested from a server by large volumes of users to eliminate congestion in routers.
An example: <embed src="sample.mov" width="320" height="240" qtsrcchokespeed=33600> QTSRCDONTUSEBROWSERWhen QTSRCDONTUSEBROWSER is set to TRUE, the URL specified in the QTSRC parameter is loaded using QuickTime's internal methods, instead of using the browser to fetch the file. This prevents the browser from caching the file, which speeds access to local movies.
An example: <embed src="foo.mov" qtsrc="sample.mov" width="320" height="240" qtsrcdontusebrowser> SCALEUse SCALE to specify how the movie is presented in the image window. If SCALE is set to TOFIT, the movie is scaled to fit the embedded bwindow as specified by the HEIGHT and WIDTH attributes. If this is set to ASPECT, the movie will scale to fit the embedded window while maintaining the aspect ratio. If SCALE is set to a numerical value n, the movie will be scaled by that number. Using the latter option with a QTVR Panorama movie can degrade the performance of the movie.
An example: <embed src="sample.mov" width="200" height="240" scale="tofit"> SRCThe SRC attribute is a required parameter that defines the URL to the file to play. The SRC attribute is the most common way to embed the media, except for occasional instances where the TYPE attribute may be necessary.
An example: <embed src="sample.mov" width="200" height="240"> See also: TYPE STARTTIMEYou can specify the start of the movie using STARTTIME. This attribute is not required for the Virtual Cutter, because the duration of the fragment is managed by play.php. The use of STARTTIME can lead to unexpected results.
An example: <embed src="sample.mov" width="200" height="240" starttime="00:15:22.5"> See also: ENDTIME TARGETThe TARGET atribute is used to specify which application must be used to open the movie or URL. If TARGET is set to "QUICKTIMEPLAYER", then the movie will be played in the stand-alone QuickTime Player. If TARGET is set to "MYSELF", then the movie specified in the SRC parameter is replaced with the movie specified in the HREF attribute when a user clicks on the movie. In both cases the HREF parameter must point to a media type.
An example: <embed src="poster.mov" width="200" height="240" href="sample.mov" target="quicktimeplayer"> See also: HREF TARGETnTARGETn is used to specify the the target frame of a link specified by the HOTSPOT or HREF attribute. Leaving TARGET unspecified will open the new file in the same place as the current movie. It is important to use the same ID for both the HOTSPOT and TARGET for each URL reference.
An example: HOTSPOT32="http://www.apple.com/quicktime" would specify that when hotspot 32 is clicked, the QuickTime home page will load in a new window. TARGETCACHETARGETCACHE is used to indicate if the file must be cached
An example: <embed src="poster.mov" width="200" height="240" cache="true" href="sample2.mov" TARGET="myself" targetcache="true"> TILTThe TILT attribute allows you to specify the initial tilt angle for a QuickTime VR movie. The range of values for a typical movie would be -42.5 to 42.5 degrees. This attribute has no meaning for a standard QuickTime movie.
An example: <embed src="sample.mov" width="320" height="240" tilt="20.0"> TYPETYPE="MIMEtype" specifies the MIME type of the media file. This determines which plug-in to load. This parameter is not required for the Virtual Cutter because this is handled by the the play.php program. TYPE is only supported by Netscape 2.0 and later.
An example: <embed src="sample.mov" type="video/quicktime" width="200" height="240"> URLSUBSTITUTEThe URLSUBSTITUE = <Text>:<NewText> replaces every instance of the string Text by NewText in HREF, sprite action URLs, or VR hotspot URLs. Use this parameter to repurpose QuickTime movies with embedded URLs without editing the movies.
An example: <embed src="sample.mov" width="200" height="240" urlsubstitute="<samplestring>:<http://dns/foo.mov>"> VOLUMEThe VOLUME attribute sets the movie's initial audio volume. Only integer values between 0 through 100 are applied for this attribute. By default, VOLUME is set to 100. A setting of 0 effectively mutes the audio whereas a setting of 100 is the maximum volume.
An example: <embed src="sample.mov" width="200" height="240" volume="50"> WIDTHThe WIDTH attribute specifies the WIDTH of the embedded file in pixels. This parameter is required unless the HIDDEN parameter has been specified. (FOUT IN NL VERSIE) The WIDTH of the movie can be found by choosing 'Get Info...' in the 'Movie' menu within QuickTime Player.
An example: <embed src="sample.mov" width="200" height="240"> See also: HEIGHT |