User Guide

Standard NetLinx API (SNAPI) R 1.8.0
78
Digital Media Server Functions (Cont.)
Name Component Channel Level Command Constant Notes
updateRecord(rec) IMediaDBComponent MEDIADBUPDATE-
<id>,<name>,<record
type>[,<url>]
Update media record with record id of <id>,
where <name> is the new name and
<record type> is the new record type, i.e.
PICTURE, APPLICATION, TRACK, CHAP-
TER, PLAYLIST, BOOKMARK, DISC,
AUDIO, VIDEO, GENRE, ARTIST, STA-
TION and <url> is the existing media URL
to associate with the new/updated record
processCloseEvent(String) IMediaDBComponentListener MEDIADBCLOS-
ESEARCH-<key>
The search associated with search key
<key> have been closed. No more opera-
tions can be performed against this search.
processDeleteRecordEvent(String, boolean) IMediaDBComponentListener MEDIADBDELETE-
<id>,<success>
Media record with record id of <id> was
deleted if <success> is 1, otherwise delete
failed.
processEndOfSetEvent(String) IMediaDBComponentListener MEDIADBEND-<key> End of search set was reached for search
with search key <key>
processMediaDBPropertiesEvent(String,
Properties)
IMediaDBComponentListener MEDIADBPROP-
<id>,<key>,<value>
Media Database property value where <id>
is the record ID, <key> is the property key
and <value> is the property value. One
command is returned for each key.
processQueryDBEvent(MediaRecord) IMediaDBComponentListener MEDIADBRECORD-
<key>,<id>,<#>,<name
>,<record type>,<url>
Media record for search with search key
<key>. <id> is the record ID, <#> is the
record position from 1 to the total number
of records, <name> is the item name,
<record type> is the record type, which
could be PICTURE, APPLICATION,
TRACK, CHAPTER, PLAYLIST, BOOK-
MARK, DISC, AUDIO, VIDEO, GENRE,
ARTIST, STATION and <url> is the URL of
the media.
processSearchDBEvent(MediaSearchSet) IMediaDBComponentListener MEDIADB-
SEARCHRESULT-
<key>,<count>
Media search results are available for
search with search key <key>. <count> is
the total count of records. Use MEDIADB-
NEXT and MEDIADBPREV to get more
records.
processStartOfSetEvent(String) IMediaDBComponentListener MEDIADBSTART-
<key>
Beginning of search set was reached for
search with search key <key>
processUpdateRecordEvent(String, boolean) IMediaDBComponentListener MEDIADBUPDATE-
<id>,<success>
Media record with record id of <id> was
updated if <success> is 1, otherwise
update failed.
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.