This module allows you to retrieve informations about the QuickTime environment and the plugin characteristics. By using the built–in module methods you can find about QuickTime restrictions, obtain the list of the installed codecs, looking for a specific set of components or retrieve a list of all of the installed components.
Since version 6.7 of the plugin this module can be used in Console Applications
indicates the bytes ordering currently in use. Set to true if the byte ordering scheme is little endian,
otherwise (big endian byte ordering) set to false
set to true if the plugin is running on MacOSX
identifies the version of the Quicktime library in use
set to true if the QuickTime VR manager is available in the current operating environment
returns an instance of the class that
allows you to get/set parameters that control the overall QuickTime behaviour
(srcFile as folderitem) as
boolean
determines whether the file specified by the srcFile parameter could be opened
in place as a movie. In this case movie importers for file like PICT and TEXTwill be implicitly included
by QuickTime. If you need to know if a file is an image you should use the
method instead
(srcFile as folderitem) as
boolean
determines whether the file specified by the srcFile parameter is an image and could be opened
in place as a movie. In this case QuickTime will include only graphic importers
(srcFile as folderitem) as
boolean
determines whether the file specified by the srcFile parameter contains graphic data created by serializing
a subclass instance of . This being the case you can use the
method of the static class to obtain a valid
object
[Deprecated]: since version 6.7 of the plugin this method is deprecated
and will be removed from a future plugin version; use the shared method
instead
(byref err as integer) as
folderitem
identifies the QuickTime Applications directory. This directory contains the QuickTime applications files, such as QuickTime Player and others
requires QuickTime 7.0 or later
(byref err as integer) as
folderitem
identifies the QuickTime System directory. This directory contains all the necessary QuickTime system files such as extensions (that is, codecs, file importers, and so on),
dynamic link libraries, resources, and others
requires QuickTime 7.0 or later
(byref err as integer) as
folderitem
identifies the QuickTime Extensions directory. This directory contains the QuickTime extensions files, whose names ends with .qtx and .qtr.
A .qtx file contains the data fork of an extension (a Windows DLL), while a .qtr file contains the resource fork of an extension for
Macintosh–style resources
requires QuickTime 7.0 or later
(byref err as integer) as
folderitem
identifies the QuickTime Components directory, a directory containing any third–party or user–installed component files
requires QuickTime 7.0 or later
(byref err as integer) as
use this method to obtain a list of all of the available codecs.
shows how to populate a PopupMenu control with the codecs found
shows how to populate a PopupMenu control with the codecs found
(byref err as integer) as
this method allows you to retrieve the complete list of any component currently installed into the system environment
(criteria as ,
byref err as integer) as
use this overloaded version of the method to create a list of components that meet the search criteria
specified using the properties of the class.
shows how to build a list of the available video digitizers using this method.
shows how to build a list of the available video digitizers using this method.
(selector as integer, byref err as integer) as
using this overloaded version of the method you can obtain a list of components that match the criteria implicitly defined by the
selector value; this paramater can be set with one of the constant values defined into the
section below.
shows how to look for the installed graphic exporters component and then use one of them to initialize an instance of the class.
shows how to look for the installed graphic exporters component and then use one of them to initialize an instance of the class.
() as
specifies what restrictions are enforced by the currently running version of QuickTime
requires QuickTime 6.0 or later. Classic unsupported
specifies the version of the QTPlugin currently used (i.e the value of this constant for the version 6.0.0 of the plugin
is 600). You can use this value for pre–processor instructions as well
a dot separated text (major.minor.revision) specifying the version of the QTPlugin currently used
no error has occurred. The error code is 0
an invalid parameter has been specified. The error code is –50
a memory related error has occurred. Usually this error is generated when an allocation of memory fails or when a nil object is specified for some
method or property wich does not allow it.The error code is –108
the class, property or method is not supported by the selected platform, platform version or QuickTime version.The error code is –2053
a QuickTime atom has not been found.The error code is –2101
an invalid QTPlugin object (often a nil object) has been specified.The error code is 9
the type of the QTPlugin object specified is not allowed.The error code is 10
a memory related issue has occurred.The error code is 50
the source specified is invalid (nil or, in case of a QTPlugin object, with the
property set to false).The error code is 79
the destination specified is invalid (nil or, in case of a QTPlugin object, with the
property set to false).The error code is 80
an error has occurred while opening a document.The error code is 100
an error has occurred while creating a document.The error code is 101
the format of the document specified is not valid.The error code is 111
the version of the document specified is not valid.The error code is 112
the type of the document specified is not valid.The error code is 113
the requested action cannot be executed.The error code is 200
a related error.The error code is 320
a related error.The error code is 321
a related error.The error code is 322
the requested action cannot be executed cause, at time, there is already a running task.The error code is 888
specifies a list of graphic importer components
specifies a list of graphic exporter components
specifies a list of movie importer components
specifies a list of movie exporter components
specifies a list of video output components
specifies a list of video digitizer components
specifies a list of sound compressor components
specifies a list of sound decompressor components
specifies a list of effect decompressor components
dim err as integer
dim list as QTPlgList
dim criteria as new QTPlgComponentForSearch()
criteria.type="vdig"
list=QTplgQTSystem.componentsList(criteria,err)
if list=nil or not list.isValid or list.count=0 then return
/*
here do something with returned list of components....
*/
dim list as QTPlgList
dim criteria as new QTPlgComponentForSearch()
criteria.type="vdig"
list=QTplgQTSystem.componentsList(criteria,err)
if list=nil or not list.isValid or list.count=0 then return
here do something with returned list of components....
*/
dim err as integer
dim list as QTPlgList
list=QTplgQTSystem.componentsList(QTplgQTSystem.kSelector_GExporter,err)
if list=nil or not list.isValid or list.count=0 then return
dim gexp as new QTPlgExportImage(QTPlgComponent(list.value(0)))
if gexp=nil or not gexp.isValid then return
/*
here do something with the graphics export class instance....
*/
dim list as QTPlgList
list=QTplgQTSystem.componentsList(QTplgQTSystem.kSelector_GExporter,err)
if list=nil or not list.isValid or list.count=0 then return
dim gexp as new QTPlgExportImage(QTPlgComponent(list.value(0)))
if gexp=nil or not gexp.isValid then return
here do something with the graphics export class instance....
*/
dim list as QTPlgList
dim c as QTPlgCodec
dim i,err as integer
list=QTplgQTSystem.codecsList(err)
if list<>nil and list.isValid then
for i=0 to list.count–1
c=QTPlgCodec(list.value(i))
if c<>nil and c.isValid then
/*
supposing that you have a PopupMenu control named PopupMenu1 somewhere
*/
PopupMenu1.addrow c.name
PopupMenu1.rowTag(i)=c
end if next
end if
dim c as QTPlgCodec
dim i,err as integer
list=QTplgQTSystem.codecsList(err)
if list<>nil and list.isValid then
for i=0 to list.count–1
c=QTPlgCodec(list.value(i))
if c<>nil and c.isValid then
supposing that you have a PopupMenu control named PopupMenu1 somewhere
*/
PopupMenu1.rowTag(i)=c
end if next
end if