40
4.
Socket commands / API
Using third party applications, users can easily connect to the DVS-200 using Telnet. To establish a
connection with the DVS-200 simply open a Telnet connection to the units IP address on port 23.
Please Note:
Socket commands are disabled by default, to enable socket commands first ensure you
have purchased the optional remote control license and then check the appropriate option in the
‘Settings Tab’.
The DVS-200 has three responses to commands:
FAILED:
shows that the command could not be executed successfully.
OK:
shows that the command is executed without any problem.
Invalid Command:
shows that the command was not recognized.
The control commands are as follows:
Add and remove push and pull URLs
add [channel] [push/pull] [URL]
– For example ‘add mychannel push rtmp://test.com/test/stream
or add pull mychannel rtsp://192.168.1.23/stream’
remove [channel] [push/pull] [URL] -
For example ‘remove mychannel push
rtmp://test.com/test/stream or remove pull mychannel rtsp://192.168.1.23/stream’
Please note: Pull URLs will be set to enabled when added.
Enable pre-existing pull URLs
Enable [channel] pull [index number]
– For example ‘enable mychannel pull
rtsp://192.168.1.123/stream’
Start and stop recording
Start [channel]
– For example start mychannel
Stop [channel]
– For example stop mychannel
start all
– Starts all channels recording
stop all
– Stops all channels recording
Enable and Disable Datavideo or Decklink hardware sources
Enable [channel] [datavideo/decklink] [index number]
– For example ‘enable mychannel datavideo
#1’ or ‘enable mychannel decklink #1’
The index number tells the DVS-200 which datavideo or decklink source to enable, if you only have
one the index will be #1.
To disable a decklink or datavideo source use the add or enable pull command to switch to another
source, this can be a dummy source.
System control
restart
– restarts all services