stop-live
Use the interface to stop streaming.
Only available for users with administrative rights.
It is available for the following product family.
Prototype
| Protocol |
HTTP/HTTPS GET |
| URL |
ip[:port]/socket/usapi?method=stop-live&sc-client-id=xxx |
| Data Format |
Response: Content-Type: application/json |
Request URL
| Parameter |
Description |
| method |
stop-live |
| sc-client-id |
Specify the device SN which will stop streaming. |
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=stop-live&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
}