VIVOTEK
User's Manual - 433
© 2020 VIVOTEK INC. All Right Reserved
284
Response of formatting fail:
HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: <Error Message Length>\r\n
\r\n
<Error Message>
Syntax:
(for query API)
http://<
servername
>/cgi-bin/admin/ format_sdcard.cgi?operation=get
PARAMETER VALUE
DESCRIPTION
Get
Get formatting progress(0~100) or
result(error message)
*It is unnecessary when using the
blocking mode.
Example:
Request of get formatting progress(0~100):
http://myserver/cgi-bin/admin/format_sdcard.cgi?operation=get
Response of success:
HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: <Success Message Length>\r\n
\r\n
<Success Message>
List of success message:
0~100 and 100 represents formatting completed
List of error message:
ERROR: You cannot format an SD card repeatedly
ERROR: Format SD failed, but removed all contents success
ERROR: Format SD failed, and failed to remove all contents
ERROR: Please insert SD card
ERROR: Please use ext file system
ERROR: File system type is not supported
© 2020 VIVOTEK INC. All Right Reserved
285
ERROR: The device does not exist or is busy
ERROR: Formatted successfully, but cannot create database
8.39
Methods
for Accessing Streaming
8.39.1 Get Stream URI
(
capability_media_streamprofiles_support = 1
)
Note:
This request requires Viewer access privileges.
Syntax:
For RTSP, the user needs to input the URL below into a RTSP compatible player.
rtsp://<
servername
>:<port>/media2/stream.sdp?profile=<streamprofile_i<0~(n-1)>_token>
“n” is the maximum stream profile number (capability_media_streamprofiles_num)
“streamprofile_i<x>_token” is the unique identifier for each profile, x is within
0~(capability_media_streamprofiles_num)-1.
port is the rtsp port.
Please refer to the streamprofile group for requesting the stream profile token value for each
profile.
Example:
Request the streaming of streamprofile_i0_token=profile200,
rtsp://192.168.1.1:554/media2/stream.sdp?profile=profile200
Note:
If the requested certain profile streamprofile_i<x>_occupied=0, which indicates stream profile <x>
has not been created, the above method for requesting RTSP streaming will fail.
8.39.2 Get
SDP for always multicast
(
capability_media_streamprofiles_support = 1
)
Note:
This request requires Viewer access privileges.
Method:
GET/POST
Syntax:
http://<
servername
>:<port>/media2/<streamprofile_i<0~(n-1)>_profilename>.sdp
“n” is the maximum stream profile number (capability_media_streamprofiles_num)
“streamprofile_i<x>_profilename” is a friendly name for certain profile, x is within
0~(capability_media_streamprofiles_num)-1.