User Guide
Standard NetLinx API (SNAPI) R 1.8.0
70
Digital Media Encoder Functions (Cont.)
Name Component Channel Level Command Constant Notes
setDeviceDateTime(date) IModuleComponent CLOCK-<mm/dd/yyyy>
<hh:mm:ss>
Set the device date/time.
setPassbackOn(boolean) IModuleComponent PASSBACK-<state> Set the passback state where <state> is 1
or 0. When passback is on, all response
from the device will be passed back to the
NetLinx program as a string from the virtual
device
setProperty(key,value) IModuleComponent PROPERTY-
<key>,<value>
Set the value of property <key> to <value>
processDataInitializedEvent(boolean) IModuleComponentListener 252 DATA_INITIALIZED Feedback Channel: Module data is syn-
chronized with device while channel is on
processDebugEvent(int) IModuleComponentListener DEBUG-<state> Debug state changed where <state> is 1-4
for ERROR, WARNING, DEBUG, INFO
processDeviceOnLineEvent(boolean) IModuleComponentListener 251 DEVICE_COMMUNICATIN
G
Feedback Channel: Communication is
established with device while channel is on
processPassbackEvent(byte[]) IModuleComponentListener When passback is on, each string received
form the device is sent to the NetLinx pro-
gram as a string. Use a DATA_EVENT
event with a STRING handler to caputre
the data from the device.
addOutputStreamSink(cURISink) IOutputStreamComponent ENCODESINKADD-
<url>
Add an Output Stream Sink where <url> is
the URL of the sink to be added.
getOutputStreamSinks() IOutputStreamComponent ?ENCODESINK Query for Output Stream Sinks, responds
with multiple ENCODESINK-<url>, one for
each output stream sink, where <url> is the
URL of the sink/destination.
getOutputStreamSource() IOutputStreamComponent ?ENCODESOURCE-
<url>
Query for Output Stream Source, responds
with ENCODESOURCE-<url> where <ur>
is the URL for the source.
queryOutputStreamProperties() IOutputStreamComponent ?ENCODEPROPS Query for all Output Stream Media Proper-
ties, responds with multiple
ENCODEPROP-<key>,<value>, one for
each property, where <key> is the property
key and <value> is the property value.
queryOutputStreamProperty(sName) IOutputStreamComponent ?ENCODEPROP-
<key>
Query for one Output Stream Media Prop-
erties, responds with ENCODEPROP-
<key>,<value> where <key> is the property
key and <value> is the property value.
removeOutputStreamSink(cURISink) IOutputStreamComponent ENCODESINKRE-
MOVE-<url>
Remove an Output Stream Sink where
<url> is the URL of the sink to be removed.
setOutputStreamProperty(sName,sValue) IOutputStreamComponent ENCODEPROP-
<key>,<value>
Set an Output Stream Property where
<key> is the property key and <value> is
the property value.
setOutputStreamSource(cURISource) IOutputStreamComponent ENCODESOURCE-
<url>
Set Output Stream Source where <url> is
the URL for the source.