get-streaming-status
Use the interface to get the streaming status of the device.
Request Mode
POST http://ip/mwapi/get-streaming-status
Response Body
JSON structure is as follows:
{
"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
}
Name | Description |
---|---|
status | 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |
Name | Description |
---|---|
id | The server ID |
type | The server type. 1: RTMP |
url | The URL of streaming destination |
state | The connection state. 0: unknown, 1: connecting, 2: connected, 3: failed to connect |
speed | The streaming speed, in Byte |
duration | The streaming duration, in ms |