Queries the detailed audio and video frame rates and bitrates of a live stream that uses the Real-Time Messaging Protocol (RTMP).
Operation description
You can call this operation to query the audio and video frame rates and bitrates of a live stream that uses RTMP within a specified time range.
This operation is used to query monitoring data. Because the data collection method is different from the one used for billing, do not use the returned data for billing purposes.
You can query data from the last 90 days.
The data returned by this operation has a latency of 3 to 5 minutes.
The maximum time range that you can specify in a single request is 1 hour.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveStreamDetailFrameRateAndBitRateData |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| DomainName |
string |
Yes |
Your ingest domain or streaming domain. |
example.com |
| AppName |
string |
Yes |
The name of the application to which the live stream belongs. You can view the AppName on the Stream Management page. |
AppName |
| StreamName |
string |
Yes |
The name of the live stream. You can view the StreamName on the Stream Management page. |
exampleStreamName |
| StartTime |
string |
No |
The start of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2017-12-21T08:00:00Z |
| EndTime |
string |
No |
The end of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Note
If you specify an invalid time range, or if you leave both StartTime and EndTime empty, data from the last hour is queried by default. |
2017-12-22T08:00:00Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| FrameRateAndBitRateInfos |
array<object> |
The detailed audio and video frame rate and bitrate data for each time interval. |
|
|
object |
|||
| AudioBitRate |
number |
The audio bitrate of the live stream. Unit: Bps. |
200 |
| AudioFrameRate |
number |
The audio frame rate of the live stream. Unit: FPS. |
60 |
| BitRate |
number |
The bitrate of the live stream. Unit: Bps. |
1420 |
| StreamUrl |
string |
The URL of the live stream. |
rtmp://example.com/AppName/exampleStreamName |
| Time |
string |
The timestamp of the data. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2016-09-13T16:04:00Z |
| VideoBitRate |
number |
The video bitrate of the live stream. Unit: Bps. |
1200 |
| VideoFrameRate |
number |
The video frame rate of the live stream. Unit: FPS. |
30 |
| RequestId |
string |
The request ID. |
BC858082-736F-4A25-867B-E5B67C85ACF7 |
The data collection methods for the total, audio, and video bitrates are different. Therefore, the sum of the audio and video bitrates may not equal the total bitrate. The data returned by this operation is for reference and monitoring only. Do not use this data for usage calculation or billing.
Examples
Success response
JSON format
{
"FrameRateAndBitRateInfos": [
{
"AudioBitRate": 200,
"AudioFrameRate": 60,
"BitRate": 1420,
"StreamUrl": "rtmp://example.com/AppName/exampleStreamName",
"Time": "2016-09-13T16:04:00Z",
"VideoBitRate": 1200,
"VideoFrameRate": 30
}
],
"RequestId": "BC858082-736F-4A25-867B-E5B67C85ACF7"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.