Contents
Navigation
Home User Reference Other Resources


Many QuickTime services, such as image compression and decompression, are provided by components. Components are a type of shared code resource that you can manipulate using the Component Manager.

For the most part, QuickTime components are opened, configured, and closed as needed by QuickTime, without you as an application programmer having to work with them explicitly.

You will probably need to use the Component Manager from time to time, however, in order to open a specific component, to determine whether a component has specific properties, to modify the default configuration of a component, or to configure a component programmatically instead of invoking a user dialog.

This class, and all of its derived classes, implements methods and properties that allow you to manage component using RealBasic.

Since version 6.7 of the plugin this class can be used in Console Applications






The QTPlgComponent class constructors are called when you create a new instance of the class, while the ˜QTPlgComponent 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. Moreover, you can obtain a list of QTPlgComponent objects using one of the search component methods defined into the plugin module.
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. A QTPlgComponent object is valid if it referes to a valid component identifier (that is the value of the property is not 0).

The class provides you with the following initializer methods:
(type as string, subtype as string)
use this constructor version to create an instance of the class that corresponds to the first QuickTime component that meets the search criteria specified using the parameters type and subtype (for more details about these parameters see the and class properties). If you do not specify a subtype to search, the new object will refer to the first component of given type found. If there is no matching components the new object is not .
illustrates how to use this constructor version to retrieve informations about the first video digitizer that provides support for Instrumentation and Industrial Control (IIDC) equipment.
illustrates how to use this constructor version to retrieve informations about the first video digitizer of any type available.
(other as QTPlgComponent)
This is the copy constructor. The properties of the object to be copied will be used to initialize the new class instance properties

specifies the component identifier. useful for toolbox programmers
specifies if the component is thread–safe. If this property is set to true, the component can be used in process executed in background threads



dim c as new QTPlgComponent("vdig","iidc")
if c=nil or not c.isValid then
msgBox "Component not found"
else
msgBox c.name
end if

dim c as new QTPlgComponent("vdig","")
if c=nil or not c.isValid then
msgBox "Component not found"
else
msgBox c.name
end if