Quicktime Molecule
From oWiki
Preference Dialog
Attributes
type
string ( r )
Type of this molecule, 'quicktime'.
pref.enableWhen
string ( r, w )
Specifies the event that activates this molecule. Default is 'load'.
pref.disableWhen
string ( r, w )
Specifies the event that deactivates this molecule. Default is 'none'.
pref.url
string ( r, w )
Specifies the URL of this QuickTime movie. This can be an absolute or relative path, under 'http(s)' or 'ccrx' protocol.
pref.imgWidth
string ( r, w )
Specifies the movie width.
| Value | Description |
|---|---|
| auto | Default. The molecule calculates the actual width |
| % | Defines the width in % of the droplet's width |
| length | Defines the width in px, cm, etc. |
pref.imgHeight
string ( r, w )
Specifies the movie height.
| Value | Description |
|---|---|
| auto | Default. The molecule calculates the actual height |
| % | Defines the width in % of the droplet's height |
| length | Defines the height in px, cm, etc. |
pref.border
string ( r, w )
Specifies the movie border style.
Possible formats:
(1) none
(2) <border-width> <border-style> <border-color>
(3) <top-border-width> <right-border-width> <bottom-border-width> <left-border-width>
(4) <top-bottom-border-width> <left-right-border-width>
(5) <border-width>
| border-width | thin medium thick length (pixel value) |
| border-color | rgb(255, 0, 0) #ff0000 |
| border-style | none hidden dotted dashed solid double groove ridge inset outset |
pref.margin
string ( r, w )
Specifies the margin around the movie.
Possible formats (in pixels)
(1) none
(2) <margin-top> <margin-right> <margin-bottom> <margin-left>
(3) <margins>
pref.padding
string ( r, w )
Specifies the size of padding around the movie.
Possible formats (in pixels)
(1) none
(2) <padding-top> <padding-right> <padding-bottom> <padding-left>
(3) <paddings>
pref.float
string ( r, w )
Specifies where the movie will appear in the droplet.
| Value | Description |
|---|---|
| left | The image moves to the left in the droplet |
| right | The image moves to the right in the droplet |
| none | Default. The image will be displayed just where it occurs in the text |
pref.clear
string ( r, w )
Specifies the sides of the movie where other floating elements are not allowed.
| Value | Description |
|---|---|
| left | No floating elements allowed on the left side |
| right | No floating elements allowed on the right side |
| both | No floating elements allowed on either the left or the right side |
| none | Default. Allows floating elements on both sides |
pref.autohref
bool ( r, w )
When set to TRUE, the AUTOHREF attribute causes any URL specified in the HREF parameter to load immediately, without waiting for a mouse click. The default vaule is FALSE.
pref.autoplay
bool ( r, w )
When set to TRUE, the AUTOPLAY attribute causes the movie to start playing as soon as the QuickTime Plug-In estimates that it will be able to play the entire movie without waiting for additional data.
pref.bgcolor
string ( r, w )
This attribute specifies the background color for any space that is not taken by the movie. (e.g. 'ff0000' or 'red')
pref.cache
bool ( r, w )
When set to TRUE, movies are cached.
pref.controller
Type: bool
This attribute sets the visibility of the movie controller.
pref.endtime
string ( r, w )
The ENDTIME attribute defines the last frame of the movie. ENDTIME can be any time up to the duration of the movie. By default, ENDTIME is the duration of the movie. This attribute takes a time value in the form -- Hours:Minutes:Seconds:Frames (30ths). The frames component can be specified as a fixed point number so that more specific times can be specified for instance 3:30:22.5 means 3 minutes, 30 seconds and 22.5 frames.
pref.starttime
string ( r, w )
The STARTTIME attribute defines the first frame of the movie. STARTTIME can be any time within the length of the movie. By default, STARTTIME is the first frame of the movie (or 00:00:00). This attribute takes a time value in the form Hours:Minutes:Seconds:Frames (30ths). The frames component can be specified as a fixed point number so that more specific times can be specified for instance 3:30:22.5 means 3 minutes, 30 seconds and 22.5 frames.
pref.fov
int ( r, w )
Only integer values between 8 and 64 degrees are supplied for this attribute. If no value is specified for FOV, the value stored in the movie is used. The FOV attribute allows you to specify the initial field of view angle for a QuickTime VR movie.
pref.hidden
any ( r, w )
The HIDDEN attribute controls the visibility of the movie. If you do not supply HIDDEN, then the movie will be visible. Default is null.
pref.hotspotn
string as ID<space>URL<newline> list
This 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. (<embed src="sample.mov" width="200" height="240" hotspot17="http://www.apple.com">).
pref.href
string ( r, w )
When set, the HREF attribute provides a link to another page or movie when the movie is clicked on.
pref.kioskmode
bool ( r, w )
By default, KIOSKMODE is FALSE. When 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.
pref.loop
string ( r, w )
LOOP is either TRUE, FALSE or PALINDROME. By default, LOOP is set to FALSE. When set, the LOOP attribute makes the movie play continuously. Setting LOOP to PALINDROME causes the movie to play alternately forwards and backwards.
pref.moviename
string ( r, w )
Allows two QuickTime movies to communicate using movie names.
pref.movieid
int ( r, w )
Just like MovieName, but uses a numeric ID instead of a name string.
pref.node
int ( r, w )
The NODE attribute allows you to specify the initial node for a multi-node QuickTime VR movie. Only integer values are supplied for this attribute. If no value is specified for this attribute, the default NODE and view (specified at creation time of the pano movie) is used.
pref.pan
int ( r, w )
The PAN attribute allows you to specify the initial pan angle for a QuickTime VR movie. Only integer values are supplied for this attribute. The range of values for a typical movie would be 0 to 360 degrees. If no value for PAN is specified, the value stored in the movie is used. This attribute has no meaning for a standard QuickTime movie.
pref.playeveryframe
bool ( r, w )
By default, PLAYEVERYFRAME is set to FALSE. When set, the PLAYEVERYFRAME 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.
pref.qtnext
string as ID<space>URL<newline> list
QTNEXT can be used to specify the url of a movie to load and play at the end of the current movie. This allows up to 256 consecutive movies to play one after the other. This behaves exactly the same as if the movie has a HREF track with an auto-url ("A") at the end of the movie. Where n is an integer greater than 0 and less than 256 that defines the index of the url in the playlist. A QTNEXT tag's value can be a url (and optional target) or GOTOn where "n" is the index of the QTNEXT url to load. This allows you to make an endlessly repeating playlist. Note: that the original movie (the SRC attribute) is implicitly QTNEXT0.
pref.qtsrc
string ( r, w )
This attribute allows content developers to force a browser to use the QuickTime Plug-in for a file no matter what its MIME type is.
pref.qtsrcchokespeed
int ( r, w )
Using the QTSRCCHOKESPEED attribute gives content developers the ability 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. (qusrcchokespeed=33600).
pref.scale
string ( r, w )
SCALE is either TOFIT, ASPECT or a number. By default the value of SCALE is 1. If set to TOFIT, the movie is scaled to fit the embedded box as specified by the HEIGHT and WIDTH attributes. If this is set to ASPECT, the movie will scale to fit the embedded box while maintaining the aspect ratio. If this is set with a number, the movie will be scaled by that number (e.g. 1.5). Note: Using the number scale attribute with a QTVR Panorama movie can degrade the performance of the movie even on high-end systems.
pref.target
string ( r, w )
When set, the QuickTime Plug-in will launch QuickTime Player as a helper application (if it is not already running) and opens the url of the movie file. In order for TARGET="QUICKTIMEPLAYER" to work, there needs to be an href attribute in the embed tag which points to the movie file.
pref.targetn
string as ID<space>TARGET<newline> list
TARGETn is an optional attribute, used in conjunction with the HOTSPOT or HREF attributes. When set, the TARGET attribute is the name of a valid frame (including _self, _top, _parent, _blank or an explicit frame name) that will be the target 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.
pref.tilt
int ( r, w )
The TILT attribute allows you to specify the initial tilt angle for a QuickTime VR movie. Only integer values are supplied for this attribute. The range of values for a typical movie would be -42.5 to 42.5 degrees. If no value for TILT is specified, the value stored in the movie is used. This attribute has no meaning for a standard QuickTime movie.
pref.type
string ( r, w )
TYPE="MIMEtype" specifies the MIME type of the EMBED file, which in turn determines which plug-in to load.
pref.volume
int ( r, w )
The 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.
movie
object ( r )
Direct access to the QuickTime movie object, which provide many methods to directly control
movie playback.
See Apple's JavaScript Scripting Guide for QuickTime.
Methods
show()
| show the effects of this molecule. |
hide()
| hide the effects of this molecule. |
refresh()
| Force molecule to redraw with the current set of attributes. |
clone()
Return: a molecule
| Create a clone of this molecule. |
attach(droplet)
droplet: a droplet object (e.g. app.box.droplet)
| Attach this molecule to a droplet. |
detach()
| Remove this molecule from its droplet. |
deleteMod()
| Delete this molecule. |
serialize()
Return: string
| Serialize this molecule into its JSON representation. |
hasQuickTime()
Return: bool
| Check if QuickTime plug-in is installed. |
setSrc( src )
src: string
| Set the source URL of the movie. |
setEmbedAttribute( name, value )
name: string
value: string
| Add an embed tag attribute. |
play()
| Play this movie. |
stop()
| Stop this movie. |
rewind()
| Rewind this movie. |
percentLoaded()
Return: int
| Returns the percentage of movie that has been loaded. |

