This module extends the properties and methods of the MoviePlayer control provided by the RealBasic IDE. Once created a new instance of the movieplayer control, you will be able to use the new properties and methods defined by the plugin (see in the section of this document for an example).
specifies if the movieplayer control instance is playing a movie or is stopped
determines if the movie player has been instructed to play every frame in the movie
determines if your application let the user to create a clipping movie from the
current frame displayed by the movieplayer control. If you set this property to true, then the user will be able to click onto the
movieplayer control and drag the movie clipping onto his desktop
returns temporal informations about the movieplayer in use. The
property is set to
the current movieplayer’s time, the
property specifies the amount
of time remaining to the movieplayer’s end and the
property indicates the
movieplayer’s time scale, of course
(actionFlag as integer) as
boolean
before performing any editing onto the movieplayer control in use, you can
use this method to control if the movie controller can perform it. You specify the type of editing you are setting about to do by
actionFlag parameter; you can set this parameter with one of the
defined by the QTPlugin
(framesToSkip as integer)
use this method to play a movie while skipping a specified number of frames.
The parameter framesToSkip specifies the number of frames and the direction of skipping. Positive values step the movie
forward the specified number of frames; negative values step the movie backward. A value of 0
steps the movie forward one frame
(bounds as )
this function allows you to detach the controller bar from its movieplayer control and to place it everywhere into the Realbasic window containing the control.
You establish the new position for the control by setting the rectangle indicated by the bounds parameter;
the coordinates of the bounding rectangle must be expressed in local coordinate system.
As Realbasic does not allow you to directly control the mousedown event interesting a movieplayer control, you could not use the detached control by yourself; to workaround this, simply put a "stub" movieplayer control in the same position where you want to display the movieplayer control bar you are working with
As Realbasic does not allow you to directly control the mousedown event interesting a movieplayer control, you could not use the detached control by yourself; to workaround this, simply put a "stub" movieplayer control in the same position where you want to display the movieplayer control bar you are working with
(w as integer, h as integer) as
picture
this function extractes a picture from the movie related to the movie controller in use at the current movie controller time.
This function uses only those movie tracks that are currently enabled. You control the dimensions of the
resulting picture by setting the requested width (the w parameter) and height (the h parameter)
(f as folderitem) as integer
you can use this function to create a new movie starting from the movie attached to the movie controller in use;
the new movie will be stored into the file indicated by the f parameter.
The segment of the source movie to copy into the destination movie file is implicitly determined by the current movie controller
selection. This function “flats” the movie data from the selection into the new movie (that is no resource fork
is added to the new movie file). Also this function will add only enabled movie tracks to the new movie file.
You can manage enabling or disabling of movie tracks by the
property of the
class.
Finally the following original movie settings will be copied into the new movie:
- original movie width and height
- preferred rate and volume
- source clipping region
- matrix information
- user data
(t as integer) as integer
using this function you can change the current movieplayer position by specifying a
new movie time with the t parameter; this time must be expressed in movie’s time scale