The QTPlgNewVideoTrack class lets you add video tracks to a movie.
→
The QTPlgNewVideoTrack class constructors are called when you create a new instance of the class, while the ˜QTPlgNewVideoTrack class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.
Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used. See the validity conditions for more details.
The class provides you with the following initializer methods:
(m as ,
params as ,
[timeScale as integer])
use this constructor to create a new video track and add it to the movie specified by the m ; if the
movie specified has been created in memory (see the
of the
class),
the video samples added to the track reside in memory as well. You specify the characteristics of the video samples to be
added to the track by setting the
of the
params object as appropriate. Also, you can specify the preferred time scale by using the optional
timeScale parameter; if you omit this parameter a default time scale of 600
will be used
specifies the duration of a single sample expressed in media’s time scale (the time scale is always set to
600). You can change this value during an editing session as well
(sample as picture, [nTimes as integer=
1])
use this function to add an image (specified by the sample parameter)
to the track; you can specify how many copies of this pictures add to the track by setting the optional
nTimes parameter. The duration of each sample is determined by the
class property
(samples() as picture, progressProc as
)
use this function to add a series of images (specified by the samples array parameter)
to the track; if you want to receive feedback about the progress of the task set the progressProc parameter
to a valid instance of the class, otherwise you can set this
parameter to nil. The duration of each sample is determined by the
class property