set-rec-control

Added in: V1.3

Use the interface to modify recording configurations.

Obtain ranges of recording parameters by calling get-info.

"rec-control": {
    "usb-option": [],       // USB recording options
    "sd-option": [],        // SD card recording options
    "time-unit": [],        // Recording cycle list, in minutes
    "file-ext": []          // file prefix list
  }

HTTP Request

GET http://ip/usapi?method=set-rec-control&usb-option=0&sd-option=2&root-folder=xxx&file-prefix=xxx&time-unit=5
Parameter Description
method set-rec-control
usb-option Indicates USB recording options
0 indicates closed recording.
1 indicates normal recording.
sd-option Indicates SD recording options
0 indicates closed recording.
1 indicates normal recording.
2 indicates cycle recording.
mime-type Indicates video recording format.
root-folder Indicates folder name of recorded files. The default value is REC_Folder. Two-level directory is supported at most, which is separated by '/', such as a/b.
The folder name is case-sensitive and should contain A-Z, a-z, 0-9, spaces and special characters like ._-+'/. The name can not start or end with spaces or /.
file-prefix Indicates the prefix of record file name. The default prefix is VID. The prefix is case-sensitive and should contain A-Z, a-z, 0-9, spaces and special characters like ._-+'. The name can not start or end with spaces.
time-unit Indicates the recording cycles in minutes. The single file can not exceed 4G, that is
time-unit * record-bit-rate <= 4G.

Response Body

{
  "result": 0
}
Item Description
result 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values.

results matching ""

    No results matching ""

    results matching ""

      No results matching ""