start-rec
Use the interface to start recording.
Only available for users with administrative rights.
You can stop recording by using stop-live.
It is available for the following product family.
Prototype
Protocol |
HTTP/HTTPS GET |
URL |
ip[:port]/socket/usapi?method=start-rec&sc-client-id=xxx |
Data Format |
Response:Content-Type: application/json |
Request URL
Parameter |
Description |
method |
start-rec |
sc-client-id |
Specify the device SN which will start recording. |
Request Cookies
Parameter |
Description |
mwcloud-sid |
A string value that is used to uniquely identify user logged-in. |
mwcloud-uid |
Current logged-in username. |
Request Example
GET /socket/usapi?method=start-rec&sc-client-id=D301210104248 HTTP/1.1
Accept: application/json, text/plain, */*
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin
Response Parameters
Parameter |
Description |
Content-Type |
Value: 'application/json |
Response Body
Parameter |
Description |
result |
Result code. The options are as follows:- 0: success.
- 1: repeat operations.
- Other values. For details about the result codes, please refer to API Status.
|
Response Example
HTTP/1.1 200 OK
Content-Type: application/json
{
"result": 0
}