Get streaming status
1. API Description
This API is used to get the live streaming status of the device.
Request mode:
- V2.6.0 and above: POST [ip]/mwapi/V2.0/stream/get-streaming-status
- V2.5.0 and below: POST [ip]/mwapi/get-streaming-status
| Administrator Rights | Logged-in |
|---|---|
| No | Yes |
2. Input Parameters
None
3. Output Parameters
| Name | Type | Description |
|---|---|---|
| result | Int | Status code |
| message | String | Status description |
| info | InfoData | Streaming status |
InfoData
| Name | Type | Description |
|---|---|---|
| id | Int | Streaming server ID |
| type | Int | Streaming type 1: RTMP |
| name | String | Streaming server name |
| url | String | Streaming address |
| state | Int | The connection state of the streaming server 0: Unknown; 1: Connecting; 2: Connected; 3: Failed to connect |
| speed | Int | Streaming speed, in Byte |
| duration | Int | Streaming duration, in ms |
4. Example
Getting the streaming status of the device.
Input Example
None
Output Example
{
"info": [
{
"duration": 10347,
"id": 1001,
"name": "11111",
"speed": 0,
"state": 1,
"type": 1,
"url": "rtmp://10.10.10.12/live/Admin"
}
],
"message": "success",
"result": 0
}
5. Error Code
No error code related to the API business logic. For other error codes, see Common Error Codes.