Contents
Navigation
Home User Reference Other Resources


QuickTime 4.1 introduced movie tracks managed by the movie media handler. By adding movie tracks to an existing QuickTime movie, we can effectively embed an entire QuickTime movie into that movie; this capability is sometimes called the movie–in–movie capability, the embedded movie is also called the child movie, while the main movie is also called the parent movie.

Usually, the looping characteristics and playback rate of a movie are associated with the movie’s time base. Prior to QuickTime 4.1, it was possible to create movies with overlaid video tracks, but all the tracks in the movie shared the same time base. The time base of the overlaid track is slaved to that of the other tracks. What movie tracks bring to the table is the ability to have non–slaved time bases in a single movie. That is to say, each child movie can have its own time base, resulting in looping and playback rate characteristics independent of those of the parent movie.

The QTPlgNewTrackMovieTrack class lets you create movie tracks.







The QTPlgNewTrackMovieTrack class constructors are called when you create a new instance of the class, while the ˜QTPlgNewTrackMovieTrack 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 , trackBox as )
use this constructor to create a new movie track and add it to the movie specified by the m; you specify the characteristics of the movie media sample to be added to the track by setting the of the params object as appropriate. You specify the movie track bounds by using the trackBox parameter; if you set this parameter to nil, the track bounds are set to the , if applicable; if any temptative to assign valid bounds to the track fail, the resulting class instance will be

(sample as , duration as integer)
use this method to add the reference (specified by the sample parameter) to the movie data (or any other data that QuickTime can treat as movie) to the newly created movie track. You can specify the duration of the track by using the duration parameter; this value must be expressed in the media time scale. The class assigns by default to the timcode track media the same time scale as the hosting movie. the
returns nothing. Check the class property for errors