set-rec-channel
Use this interface to modify a recording channel.
HTTP Request
GET http://ip/usapi?method=set-rec-channel&id=xxx&type=xxx&stream-index=xxx&...
| Parameter | Description | 
|---|---|
| method | set-rec-channel | 
| id | Recording channel ID which can be obtained via get-rec-channels. | 
| type | Storage mediums. 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_Folderby default. 2-level directory are 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 | File name prefix generator. 0: custom 1: the creation date and time of the specified file | 
| prefix-name | File name prefix is VIDby 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 name suffix. 0: mp4 1: mov | 
| time-unit | Recode time unit in minutes. The 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. |