add-rec-channel

Use this interface to add a record channel. 3 channels are supported, one for each storage medium. By default, record channels of USB flash drive, SD card and NAS are reserved.

HTTP Request

GET http://ip/usapi?method=add-rec-channel&type=xxx&stream-index=1...
Parameter Description
method add-rec-channel
type Storage medium type.
0: USB flash drive
1: SD card
2: NAS
stream-index 0: the main stream
1: sub stream
mode Record mode.
1: normal
2: loop
dir-name Recorded files directory. REC_Folder by default. 2-level directory is supported. Use slash(/) to separate different directories, such as a/b.
The string ranges from 1 to 32 characters which contains A-Z, a-z, 0-9, spaces and special characters like ._-+'[](). It can not start or end with spaces.
file-prefix The file prefix.
0: custom
1: the creation date and time of the specified file
prefix-name The file name starts with VID by default.
The string ranges from 1 to 32 characters which contains A-Z, a-z, 0-9, spaces and special characters like ._-+'[](). It can not start or end with spaces.
file-suffix File suffix.
0: mp4
1: mov
time-unit Recoding intervals in minutes. Note that a vfat files should be no greater than 4G, that is, time-unit * recording code rate <= 4G
audio Audio streams.
0: Stream 1
1: Stream 2
2: Stream 3
3: Stream 4

Response Body

{
  "result": 0
}
Item Description
result Returned status.
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 ""