Queries the audio and video data of an ingested stream within a specific period of time.
Operation description
Usage notes
- The maximum time range for a query is 24 hours.
- The minimum time range for a query is 1 hour.
- You can query data in the last 31 days.
QPS limit
You can call this operation up to 10 times per minute per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limits.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
live:DescribeLiveUpVideoAudioInfo | get | *Domain acs:cdn:*:{#accountId}:domain/{#DomainName} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Stream | string | Yes | The operation that you want to perform. Set the value to DescribeLiveUpVideoAudioInfo. | rtmp://example.com/AppName/StreamName |
StartTime | string | No | The name of the stream that you want to query. Specify this parameter in the following format: | 2015-12-10T15:00:00Z |
EndTime | string | No | The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. | 2015-12-10T15:10:00Z |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "BC858082-736F-4A25-867B-E5B67C85ACF7",
"UpItems": {
"PublishItem": [
{
"AacHeaders": {
"AacHeaders": [
{
"Time": 1538134750408,
"Value": 20
}
]
},
"AppName": "AppName",
"AudioBitRate": {
"AudioBitRate": [
{
"Time": 1538134750408,
"Value": 24552
}
]
},
"AudioFrames": {
"AudioFrames": [
{
"Time": 1538134750408,
"Value": 23
}
]
},
"AudioInterval": {
"AudioInterval": [
{
"Time": 1538134750408,
"Value": 254
}
]
},
"AudioStamps": {
"AudioStamps": [
{
"Time": 1538134750408,
"Value": 725053422
}
]
},
"AvcHeaders": {
"AvcHeaders": [
{
"Time": 1538134750408,
"Value": 11
}
]
},
"CodecInfo": "H264/AAC",
"DomainName": "example.com",
"ErrorFlags": {
"ErrorFlags": [
{
"Time": 1538134750408,
"Value": 0
}
]
},
"PublishInterval": "-",
"PublishIp": "cn397",
"PublishStatus": "1",
"PublishTime": "2015-12-10T15:00:00Z",
"StopTime": "2015-12-10T15:10:00Z",
"StreamName": "StreamName",
"UniqueId": "2.-395_37261_9848098_1538080899396",
"VideoAndAudioStamp": {
"V_AStamp": [
{
"Time": 1538134750408,
"Value": 359
}
]
},
"VideoBitRate": {
"VideoBitRate": [
{
"Time": 1538134750408,
"Value": 3970160
}
]
},
"VideoFrames": {
"VideoFrames": [
{
"Time": 1538134750408,
"Value": 29
}
]
},
"VideoInterval": {
"VideoInterval": [
{
"Time": 1538134750408,
"Value": 278
}
]
},
"VideoStamps": {
"VideoStamps": [
{
"Time": 1538134750408,
"Value": 725053781
}
]
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
200 | InvalidDuration.ExceedOneDay | StartTime and EndTime Duration Exceeds One Day |
200 | InvalidDuration.StratTimeBiggerEndTime | StartTime Bigger Than EndTime |
400 | InvalidParam | Parameter Stream invalid. |
400 | InvalidParam | Parameter StartTime/EndTime invalid. |
400 | InvalidStartTime.Malformed | Specified StartTime is malformed. |
400 | InvalidEndTime.Malformed | Specified EndTime is malformed. |
401 | IllegalOperation | %s |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|