Home / Docs Center / Device API Reference / Recording Switch (Latest Version)
Recording Switch (Latest Version)
Project: Device Interface Document (New Version) | page_id: 1019
Brief Description:
- Recording switch (supported from version greater than 1.27.0 shown in the upper right corner of the web page)
Request URL:
- /xsw/api/record/control
Request Method:
- POST
Parameters:
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| channel | Yes | int | Channel, i.e. the stream index, starting from 0 |
| enable | Yes | int | Whether to enable: 0 disabled, 1 enabled |
Return Example
{
"code": 0,
"msg": "",
}
Return Parameter Description
| Parameter Name | Type | Description |
|---|---|---|
| code | int | Status code. 0 means success, others mean failure |
| msg | string | Failure message |
Notes
- None
Didn't find what you need?Contact us,Talk to our engineers directly.