User Guide
37
Standard NetLinx API (SNAPI) R 1.8.0
Disc Device
Component
Name: Disc Device
Interface: IDiscDeviceComponent
IDiscDeviceComponent
Component Functions:
Name: Channel: Level: Command: Constant: Notes:
cycleDiscTray() 120 DISC_TRAY Momentary Function Channel: Open or Close the disc tray when the channel is acti-
vated
cycleRandom() 124 DISC_RANDOM Momentary Function Channel: Cycle random when channel is activated
cycleRepeat() 125 DISC_REPEAT Momentary Function Channel: Cycle repeat when channel is activated
getDiscCapacity() ?DISCCAPACITY Query for the disc capacity responds with DISCCAPACITY-<discs> when <discs> is
the number of disc slots supported by the device (see specific module documentation)
getDiscInfo() ?DISCINFO Query for disc info, responds with DISCINFO-<num>,<duration>,<# of
getTitleInfo() ?TITLEINFO Query for title info changed, responds with TITLEINFO-<num>,<duration>,<# of
nextDisc() 55 DISC_NEXT Momentary Function Channel: Set dics next when channel is activated
previousDisc() 56 DISC_PREV Momentary Function Channel: Set disc previous when channel is activated
queryDiscProperties() ?DISCPROPS Query for the disc properties, responds with multiple DISCPROP-<key>,<value> com-
mands, one for each key
queryDiscProperty(key) ?DISCPROP-<key> Query for a disc property, responds with DISCPROP-<key>,<value> command
queryTitleProperties() ?TITLEPROPS Query for the title properties, responds with multiple TITLEPROP-<key>,<value> com-
mands, one for each key
queryTitleProperty(key) ?TITLEPROP-<key> Query for a title property, responds with TITLEPROP-<key>,<value> command
setDisc(discNumber) SETDISC-<disc> Set disc number to <disc>, where <disc> is 1 to <x> where x is the disc capacity. (see
getDiscCapactiy() or module specific documentation)
setPlayPosition(titleNum-
ber,trackNumber)
PLAYPOSITION-<title>,<track> Set the play position where <title> is the Title number and <track> is the Track number
setPlayPosition(titleNum-
ber,trackNumber,rela-
tiveCounter)
PLAYPOSITION-
<title>,<track>,<counter>
Set the play position where <title> is the Title number, <track> is the Track number and
<counter> is a String in the format [-]hh:mm:ss.ff, mm should be 0 >= mm < 60, ss
should be 0 >= ss < 60, ff should be valid for the disc type
setPlayPosition(track-
Number)
PLAYPOSITION-<track> Set the play position where <track> is the Track number
setPlayPosition(track-
Number,relativeCounter)
PLAYPOSITION-<track>,<counter> Set the play position where <track> is the Track number and <counter> is a String in the
format [-]hh:mm:ss.ff, mm should be 0 >= mm < 60, ss should be 0 >= ss < 60, ff should
be valid for the disc type
setRandom-
State(RANDOM_ALL)
179 DISC_RANDOM_ALL_ON Momentary Function Channel: Random-all is on while channel is active
setRandom-
State(RANDOM_DISC)
178 DISC_RANDOM_DISC_O
N
Momentary Function Channel: Random-disc is on while channel is active
setRandom-
State(RANDOM_OFF)
180 DISC_RANDOM_OFF_O
N
Momentary Function Channel: Random-off is on while channel is active