DISK_TOTAL_PAGES

 

Description

Because firmware uses file pages to manage the file listing, the total pages is an useful information to user to manage the recordings. It might take longer time to get the total page number when firmware searches huge number of recordings with the given search conditions. To have fast response in the WEB UI, this URL is could reply the temporary total page number in the mid-way file search. WEB UI could poll the total page number to get the exactly total page number when the file search was done.
The URL could block the reply until the file search was done.

Input Argument

POLL or WAIT
POLL : the firmware response the current total page number when received this URL. The status code in the reply message could tell you if the file search is done or not.
WAIT: the firmware does not reply the URL until the file search is complete.

Attribute

Return of Message

The format of return message is
OK: DISK_TOTAL_PAGES='Status,TotalPageNum'
Where
Status: The status of file search. It could be INPROGRESS, DONE, ERROR
   INPROGRESS: the file search is in progress. The TotalPageNum is not the actual total page number.
   DONE: the file search was done. The TotalPageNum is the actual total page number.
   ERROR: something wrong in the file search. The TotalPageNum is undefined.
TotalPageNum: Current total page number

Example

OK: DISK_TOTAL_PAGES='INPROGRESS,10'
or
OK: DISK_TOTAL_PAGES='DONE,15'
or
OK: DISK_TOTAL_PAGES='ERROR,9'

Applicability

Platform Devices Supported Firmware Version
PlatformT Camera, Video server with local storage A1D-310-V4.12 and later
PlatformK Camera A1D-311-V5.08.06 and later
PlatformA1 Camera A1D-500-V6.02 and later

Statue

Valid

See also

DISK_REMOVE_FILE, DISK_REMOVE_OLD_FILES, DISK_GET_FILE, DISK_FILE_SEARCH_TIME, DISK_FILE_SEARCH_EVENT

Example

http://ip:port/cgi-bin/system?USER=admin&PWD=123456&DISK_TOTAL_PAGES=POLL
or
http://ip:port/cgi-bin/cmd/system?DISK_TOTAL_PAGES=POLL

Back To

HOME, SYSTEM CGI