VIVOTEK
User's Manual - 379
© 2020 VIVOTEK INC. All Right Reserved
248
[do1=<state>]\r\n
[do2=<state>]\r\n
[do3=<state>]\r\n
where
<state>
can be 0 or 1.
Example:
Query the status of digital output 1.
Request:
http://myserver/cgi-bin/dido/getdo.cgi?do1
Response:
HTTP/1.0 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: 7\r\n
\r\n
do1=1\r\n
8.4
Capture Single Snapshot
Note:
This request requires Normal User privileges.
Method:
GET/POST
Syntax:
http://<
servername
>/cgi-bin/viewer/video.jpg?[channel=<value>][&resolution=<value>]
[&quality=<value>][&streamid=<value>]
If the request contains invalid parameters, a full FOV snapshot will return.
PARAMETER VALUE
DESCRIPTION
channel
0~(capability_nvideoin -1)
The channel number of the video
source.
Default: 0
resolution Available options are list in
"capability_videoin_c<0~(n-1)>_resolution".
Besides, available options is referred to
"capability_videoin_c<0~(n-1)>_maxresolution
" and
"capability_videoin_c<0~(n-1)>_minresolution"
The resolution of the image.
Default: Returns snapshot of current
resolution by [channel] and
[streamid].
© 2020 VIVOTEK INC. All Right Reserved
249
PARAMETER VALUE
DESCRIPTION
quality
1~5
The quality of the image.
streamid
0~( capability_nmediastream -1)
The stream number.
Default: Returns snapshot of
maxmum resolution for current
channel.
The server will return the most up-to-date snapshot of the selected channel and stream in JPEG
format. The size and quality of the image will be set according to the video settings on the server.
Return:
HTTP/1.0 200 OK\r\n
Content-Type: image/jpeg\r\n
[Content-Length: <image size>\r\n]
<binary JPEG image data>
8.5
Account Management
Note:
This request requires Administrator privileges.
Method:
POST
Syntax:
http://<
servername
>/cgi-bin/admin/editaccount.cgi
?
method=<value>&username=
<name>
[&userpass=
<value>
][&privilege=
<value>
][&return=
<return
page>
]
PARAMETER
VALUE
DESCRIPTION
method
add
Add an account to the server. When using this method,
the“username” field is necessary. It will use the default
value of other fields if not specified.
delete
Remove an account from the server. When using this
method, the “username” field is necessary, and others are
ignored.
edit
Modify the account password and privilege. When using
this method, the“username” field is necessary, and other
fields are optional. If not specified, it will keep the original
settings.