User Guide
75
Standard NetLinx API (SNAPI) R 1.8.0
Media Device
Component
Name: Media Device
Interface: IMediaDeviceComponent
IMediaDeviceComponent
Component Functions:
Name: Channel: Level: Command: Constant: Notes:
cycleMediaDeviceRan-
dom()
124 MEDIA_RANDOM Momentary Function Channel: Cycle random when channel is activated
cycleMediaDeviceRe-
peat()
125 MEDIA_REPEAT Momentary Function Channel: Cycle repeat when channel is activated
getMediaDeviceSource() ?DECODESOURCE Query for Media Device Source, responds with DECODESOURCE-<url> where <url> is
the URL of the source.
queryMediaDeviceProp-
erties()
?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.
queryMediaDeviceProp-
erty(sKeyName)
?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.
setMediaDeviceCounter-
NotificationOn(state)
MEDIACOUNTERNOTIFY-<state> Turn media counter notification on or off, where <state> is 1 or 0
setMediaDeviceRan-
dom-
State(RANDOM_ALL)
179 MEDIA_RANDOM_ALL_O
N
Momentary Function Channel: Random-all is on while channel is active
setMediaDeviceRan-
dom-
State(RANDOM_DISC)
178 MEDIA_RANDOM_DISC_
ON
Momentary Function Channel: Random-disc is on while channel is active
setMediaDeviceRan-
dom-
State(RANDOM_OFF)
180 MEDIA_RANDOM_OFF_
ON
Momentary Function Channel: Random-off is on while channel is active
setMediaDeviceRepeat-
State(REPEAT_ALL)
183 MEDIA_REPEAT_ALL_O
N
Momentary Function Channel: Repeat-all is on while channel is active
setMediaDeviceRepeat-
State(REPEAT_DISC)
181 MEDIA_REPEAT_DISC_
ON
Momentary Function Channel: Repeat-disc is on while channel is active
setMediaDeviceRepeat-
State(REPEAT_OFF)
184 MEDIA_REPEAT_OFF_O
N
Momentary Function Channel: Repeat-off is on while channel is active
setMediaDeviceRepeat-
State(REPEAT_TRACK)
182 MEDIA_REPEAT_TRACK
_ON
Momentary Function Channel: Repeat-track is on while channel is active
setMediaDevice-
Source(cURISource)
DECODESOURCE-<url> Set Media Device Source where <url> is the URL of the source.