Element: Video.

Icon:   

Text: A video clip.

Description: A Video is a drawing element that plays a video clip. This element requires QuickTime software to be installed in your system. At the time of this writing, the element works well in application mode, but fails to run, due to security reasons, when the simulation is run as an applet. A video clip consist in a certain number of frames that are displayed (usually in sequence) according to the value of the "Frame" property. The video clip can be rotated around its left-top corner.

Important notice: The version of QuickTime that you install in your computer must match that of the QTJava.zip file in the _library directory of Ejs. Currently, this version is QuickTime 7.01. If you install a different version you will need to replace the QTJava.zip in _library with the file of the same name provided by your installation of QuickTime. This file will be in one of the subdirectories of your QT installation directory.


A drawing panel with a background video and other drawables on top of it.

Table of properties

Name Description Values accepted
Configuration
Video The video clip displayed by the element. Any constant or variable of type String, corresponding to a video file in MOV format or to an animated GIF image. The string indicates the path to the corresponding video file. The path can be relative to the working directory or an Internet URL.
Frame The number of the current frame to display. Any constant or variable of type int.

Graphical Aspect

Visible The visibility of the element. A boolean variable or one of the constants true or false.

Position

Left The coordinate of the left side of the video clip. Any constant or variable of type double or int.
Top The coordinate of the top of the video clip. Any constant or variable of type double or int.
Size The width of the video clip. (The height is adjusted automatically.) Any constant or variable of type double or int.
Rotate The (counter-clockwise) rotation angle to apply to the element. A constant or variable of type double for an angle in radians, or a constant or variable of type int for an angle in degrees.