User Guide
57
Standard NetLinx API (SNAPI) R 1.8.0
Digital Media Decoder Functions (Cont.)
Name Component Channel Level Command Constant Notes
processTrackCounterEvent(MediaTime) IDiscTransportComponentListener TRACKCOUNTER-
<counter>
Track counter changed, where <counter>
is a String in the format [-]hh:mm:ss.ff
processTrackInfoEvent(TrackInfo) IDiscTransportComponentListener TRACKINFO-
<num>,<dura-
tion>,<discNumber>
Track info changed, where <num> is track
number, <duration> is a track duration
String in the format [-]hh:mm:ss.ff and <dis-
cNumber> is the dusc number the track
belongs to.
processTrackPropertiesEvent(Properties) IDiscTransportComponentListener TRACKPROP-
<key>,<value>
Track properties query response, responds
with multiple TRACKPROP-<key>,<value>
commands, one for each key
cycleMediaDeviceRandom() IMediaDeviceComponent 124 MEDIA_RANDOM Momentary Function Channel: Cycle ran-
dom when channel is activated
cycleMediaDeviceRepeat() IMediaDeviceComponent 125 MEDIA_REPEAT Momentary Function Channel: Cycle
repeat when channel is activated
getMediaDeviceSource() IMediaDeviceComponent ?DECODESOURCE Query for Media Device Source, responds
with DECODESOURCE-<url> where <url>
is the URL of the source.
queryMediaDeviceProperties() IMediaDeviceComponent ?DECODEPROPS Query for all Media Device Properties,
responds with multiple DECODEPROP-
<key>,<value>, one for each property,
where <key> is the property key and
<value> is the property value.
queryMediaDeviceProperty(sKeyName) IMediaDeviceComponent ?DECODEPROP-
<key>
Query for one Media Device Properties,
responds with DECODEPROP-
<key>,<value> where <key> is the property
key and <value> is the property value.
setMediaDeviceCounterNotificationOn(state) IMediaDeviceComponent MEDIACOUNTERNO-
TIFY-<state>
Turn media counter notification on or off,
where <state> is 1 or 0
setMediaDeviceRandom-
State(RANDOM_DISC)
IMediaDeviceComponent 178 MEDIA_RANDOM_DISC_O
N
Momentary Function Channel: Random-
disc is on while channel is active
setMediaDeviceRandom-
State(RANDOM_ALL)
IMediaDeviceComponent 179 MEDIA_RANDOM_ALL_ON Momentary Function Channel: Random-all
is on while channel is active
setMediaDeviceRandom-
State(RANDOM_OFF)
IMediaDeviceComponent 180 MEDIA_RANDOM_OFF_ON Momentary Function Channel: Random-off
is on while channel is active
setMediaDeviceRepeat-
State(REPEAT_DISC)
IMediaDeviceComponent 181 MEDIA_REPEAT_DISC_ON Momentary Function Channel: Repeat-disc
is on while channel is active
setMediaDeviceRepeat-
State(REPEAT_TRACK)
IMediaDeviceComponent 182 MEDIA_REPEAT_TRACK_
ON
Momentary Function Channel: Repeat-
track is on while channel is active
setMediaDeviceRepeatState(REPEAT_ALL) IMediaDeviceComponent 183 MEDIA_REPEAT_ALL_ON Momentary Function Channel: Repeat-all is
on while channel is active
setMediaDeviceRepeatState(REPEAT_OFF) IMediaDeviceComponent 184 MEDIA_REPEAT_OFF_ON Momentary Function Channel: Repeat-off
is on while channel is active
setMediaDeviceSource(cURISource) IMediaDeviceComponent DECODESOURCE-
<url>
Set Media Device Source where <url> is
the URL of the source.