dontUseQT

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the dontUseQT [of player <player>] to {true | false}
Associationsplayer
Summary

Disables the ability to use QuickTime.

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.

In LiveCode 6.7.0 the default for dontUseQT was changed from false to true on OS X 10.8 and up because of the implementation of the AVFoundation player on Windows.

OSmac
Platformsdesktop
Example
set the dontUseQT to true
set the dontUseQT of player "video" to false
Values
NameTypeDescription
Value

The dontUseQT is true or false. On all systems other than Mac OS X 32 bit on a system earlier than 10.8 the default value of the dontUseQT is true.

RelatedProperty: dontUseQTEffects, alwaysBuffer
Glossary: property, Windows, command, QuickTime, loaded into memory, Mac OS
Command: answer record, answer effect, show, hide
Object: stack
Function: recordCompressionTypes, qtEffects, qtVersion
Control Structure: function
Description

On OS X, when dontUseQT is true and the system version is greater than 10.8 players will use the AVFoundation API for multimedia playback. On earlier OS X systems the property has no effect.

Setting the dontUseQt property of a player object has no effect on the global property, however, the global property is used as the default for new players. In that way you can have both QuickTime and AVFoundation players playing at the same time. This can be particular useful for supporting some media formats or codecs that are not supported by the default AVFoundation or DirectShow player (for example .midi files, Sorenson Video 3, H.261 codecs etc)

The following actions cause QuickTime to be loaded into memory on Mac if dontUseQT is false:

  • Displaying a player object
  • Playing an audio clip or video clip
  • Recording sound using the record sound command
  • Using the recordFormats function or the answer record command
  • Using a visual effect with visual effect, show, hide, or unlock screen
  • Using the answer effect command or QTEffects function
  • Using the QTVersion function

Tip: It may 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 an action listed above by calling the QTVersion func during otherwise dead time--for example, during startup of your application--to preload QuickTime.

The setting of this property has no effect on Unix and Windows systems.

Tagsmultimedia