Contents
Navigation
Home User Reference Other Resources


The QTPlugin provides you with support for creating new movie and populate them with the appropriate data samples by using an unique interface represented by the hierarchy of classes whose, at the very top, stands the QTPlgNewTrack class on. Using this set of classes you can create:

The QTPlgNewTrack class is an abstract class that defines a basic set of properties and methods useful when creating tracks from different type of sources. The specialized classes derived from it will take an interest in to implement the mechanisms to populate the track with such a data.







The class has not constructor at all (you can always use the Realbasic common constructor syntax, of course, but you will obtain an usless object). Its destructor, will be implicitly invoked every time one of its derived classes will be destroyed.
Anyway, once a new instance of a class derived from QTPlgNewTrack is returned, it is good practice to check the class property to be sure that the new object can be used. A QTPlgNewTrack object if a valid track structure has been allocated at initialization time (that is the class property returns a valid class instance).
When a class instance is not valid, you can get some clue about what is happened by checking the class property.

specifies if an editing session is in progress. You can add data samples to the new track only when this property is true
returns the track being edited
returns the parameters used to build the new track. The type of object instance returned depends on the type of track being edited; usually it is a subclass of (the same type of the object passed into the constructor of the classes derived from QTPlgNewTrack). You can use the isA Realbasic operator to find about the type of the object returned.

()
use this method to start a track–editing session. If this method fails, you can not add samples to the track
returns nothing. Check the class property for errors
()
use this method to end a track–editing session previously started. If you did not open an editing session, this method has no effect. The class destructor calls automatically this method, if detects that an editing session is still open
returns nothing. Check the class property for errors