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.
→
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:
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.
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