queryLiveStatus: Get live broadcast status
queryLiveStatus: Get live broadcast status
Function details
Get live broadcast status.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/queryLiveStatus
Incoming parameter description
| Parameter name | Parameter type | Required or not | Default value | Legal value | Parameter description |
|---|---|---|---|---|---|
| token | String | Yes | Administrator accessToken | ||
| liveToken | String | is | live token |
Sample input
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"5bca82e99dc694ff58361f1838be85a6",
"time":1603367864,
"nonce":"80eb1cca-6fbe-4dc9-a113-9d9c9457fd63"
},
"id":"f7745dbd-8920-4078-ba93-f7f5540f7064",
"params":{
"liveToken":"57877dd6774f4cbeb657568be0b7a621",
"token":"At_00000ad9e6e87f0142eb92e207aec46a"
}
}
Return data field description
| Field name | Field type | Field description | |
|---|---|---|---|
| streams | streamId | int | Stream type (0: HD main stream; 1: SD secondary stream) |
| status | String | Status, 0: Live broadcast, 1: Live broadcast, but the video cover is abnormal, 2: Video source is abnormal, 3: Stream conversion abnormal, 4: Cloud storage access abnormal, 10: Live broadcast is paused | |
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0",
"data":{
"streams":[
{
"streamId":1,
"status":"0"
}
]
}
},
"id":"f7745dbd-8920-4078-ba93-f7f5540f7064"
}
