Livecode Wiki
Advertisement

Returns the version of QuickTime installed on the system.

Syntax:

the qtVersion
qtVersion()

Examples:

the qtVersion
if the qtVersion < 3 then answer "You need QuickTime 3.0 or later."

Use the qtVersion function to make sure the version of QuickTime that's installed is recent enough to handle any version-dependent features in movies you want to play.

The qtVersion function returns a positive number.

On Unix systems, the qtVersion function always returns 2.0.

On Mac OS and Windows systems, if QuickTime is not installed, the qtVersion function returns 0.0. Otherwise, it returns the QuickTime version number. In this case, make sure the dontUseQT property is set to false, to allow LiveCode work with QuickTime.

It can take LiveCode a second or two to load the code needed to use QuickTime, depending on the machine speed. Since this code is only loaded into memory once per session, you can speed up the first occurrence of a QuickTime-related action by calling the qtVersion function during otherwise dead time (for example, during startup of your application) to preload the code.

See Also: systemVersion Function, qtEffects Function, recordFormats Function, buildNumber Function, play Command, dontUseQT Property, videoClipPlayer Property, dontUseQTEffects Property, qtIdleRate Property

Advertisement