Contents
Navigation
Home User Reference Other Resources


This class allows you to retrieve informations about the QuickTime environment. By using the built–in class properties and methods you can manipulate some of the parameters that appear into the QuickTime Settings control panel (the QuickTime preference pane of the System Preferences in MacOS X), such a streaming parameters, transport setup parameters and media keys.







It is not possible to instantiate directly objects of this class; instead, you can obtain a valid instance of this class by accessing the property of the module.

allows you to modify the parameters related to the Transport Setup configuration available through the Advanced pane of the QuickTime preference panel
allows you to have access to the streaming configuration parameters available through the Streaming (Connection in earliest QuickTime versions) pane of the QuickTime preference panel

(key as string) as
obtain a list of all of the of type specified by the key parameter. shows a sample method that will retrieve the list of all of registered access keys of given type.
returns a list of objects. If no key of specified type exists, then the returned list is empty. You can check the class property for errors.
(mediaKey as ) as boolean
use this function to register a new access key. If the access key has already been registered, no error is returned, and the request is simply ignored. shows how to create a new access key, set its properties and, finally, register it
returns true if the access key has been successfully added otherwise returns false. You can check the class property for errors.
(mediaKey as ) as boolean
use this function to remove the specified access key
returns true if the access key has been successfully removed otherwise returns false. You can check the class property for errors.


set the connection speed to the default value
equivalent to the "Intranet/LAN" popup item in the quicktime preference panel
equivalent to the "Modem 14.4 Kbps" popup item in the quicktime preference panel
equivalent to the "Modem 28.8/33.6 Kbps" popup item in the quicktime preference panel
equivalent to the "Modem 56 Kbps/ISDN" popup item in the quicktime preference panel
equivalent to the "ISDN/DSL Dual 112 Kbps" popup item in the quicktime preference panel
equivalent to the "DSL 256 Kbps/Cable" popup item in the quicktime preference panel
equivalent to the "DSL 384 Kbps/Cable" popup item in the quicktime preference panel
equivalent to the "DSL 512 Kbps/Cable" popup item in the quicktime preference panel
equivalent to the "DSL 768 Kbps/Cable" popup item in the quicktime preference panel
equivalent to the "Cable 1 Mbps/Cable" popup item in the quicktime preference panel
equivalent to the "LAN/Intranet 1.5 Mbps/T1" popup item in the quicktime preference panel


Sub KeysListUpdate(keyType as string)

/*
supposing the existence of a Listbox control named listBox1 that will be populated with the list of access keys
Errors handling is omitted for the sake of brevity
*/
dim list as QTPlgList
dim ak as QTPlgAccessKey
listBox1.deleteAllRows
list=QTPlgQTSystem.qtPreferences.listOfAccessKeys(keyType)
for i as integer=0 to list.count–1
ak=QTPlgAccessKey(list.value(i))
listBox1.addRow ak.key
listBox1.cell(listBox1.lastindex,1)=ak.value
next


End Sub
dim ak as new QTPlgAccessKey()
if ak<>nil then

ak.key="keytest"
ak.value="mykeyfortest"
/*
supposing the existence of a CheckBox control holding the value of the property
*/
ak.systemScope=CheckBox1.value
if not QTPlgQTSystem.qtPreferences.addAccessKey(ak) then msgbox str(ak.qtPlgErr)

end if