qtVersion

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the qtVersion
qtVersion()
Summary

Returns the version of QuickTime installed on the system.

Introduced1.0
Changes

The use of QuickTime was deprecated in version 8.1 of LiveCode with new defaults for dontUseQT and dontUseQTEffects as true on all systems apart from pre OS X 10.8. The Windows build of LiveCode no longer supports any QuickTime features and setting the dontUseQT and dontUseQTEffects will have no effect. Additionally QuickTime does not include 64 bit support and therefore can not be supported on OS X 64 bit builds of LiveCode.

OSmac
Platformsdesktop
Example
the qtVersion
if the qtVersion < 3 then answer "You need QuickTime 3.0 or later."
Values
NameTypeDescription
return

The qtVersion function returns a positive number.

RelatedProperty: videoClipPlayer, qtIdleRate, dontUseQT, dontUseQTEffects
Command: play
Function: qtVersion, buildNumber, recordFormats, systemVersion, qtEffects
Glossary: QuickTime, return, loaded into memory
Description

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.

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.

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

Tagsmultimedia