Queries the playback duration within a specified time range.
Operation description
You can call this operation to query the playback duration within a specified time range. This operation is limited to 10 queries per second (QPS) for each user. If you exceed this limit, API calls are throttled, which may affect your business. Therefore, call this operation at a reasonable rate. For more information, see QPS limits.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeRTSNativeSDKPlayTime |
get |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StartTime |
string |
No |
The start of the time range to query. The time must be in UTC and in the yyyy-MM-ddTHH:mm:ssZ format. |
2021-12-10T20:00:00Z |
| EndTime |
string |
No |
The end of the time range to query. The time must be in UTC and in the yyyy-MM-ddTHH:mm:ssZ format. |
2021-12-10T21:00:00Z |
| DataInterval |
string |
No |
The time granularity of the data. Valid values: 300, 3600, 14400, 28800, and 86400. Unit: seconds. If you do not specify this parameter or you specify an unsupported value, the default value 300 is used. |
300 |
| DomainNameList |
array |
No |
A list of domain names to query. By default, data for all domain names is queried for software development kit (SDK) versions 2.1.0 and later. You can specify one or more domain names. Separate multiple domain names with commas (,). You can query up to 500 domain names at a time. |
|
|
string |
No |
The domain name. |
a.example.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| DataInterval |
string |
The time granularity. |
300 |
| EndTime |
string |
The end of the time range. |
2021-12-10T21:00:00Z |
| PlayTimeData |
array<object> |
The average playback duration and average stuttering duration for each time interval. Unit: milliseconds. |
|
|
object |
|||
| PlayTime |
string |
The average playback duration for the time slice. |
1000 |
| StallTime |
string |
The average stuttering duration for the time slice. |
100 |
| TimeStamp |
string |
The start time of the time slice. |
2021-12-10T20:00:00Z |
| RequestId |
string |
The request ID. |
7BF95F2A-3B24-4CDE-9346-7F6FA86697A1 |
| StartTime |
string |
The start of the time range. |
2021-12-10T20:00:00Z |
Examples
Success response
JSON format
{
"DataInterval": "300",
"EndTime": "2021-12-10T21:00:00Z",
"PlayTimeData": [
{
"PlayTime": "1000",
"StallTime": "100",
"TimeStamp": "2021-12-10T20:00:00Z"
}
],
"RequestId": "7BF95F2A-3B24-4CDE-9346-7F6FA86697A1",
"StartTime": "2021-12-10T20:00:00Z"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Meter.ParamError | Param Error:%s,Please Check Again. | |
| 500 | Meter.ServerInternalError | The Request Processing Has Failed Due To Some Unknown Error. | |
| 500 | Meter.DataSourceQueryError | Data Source Error:%s,Please Try Again. | |
| 403 | Meter.AuthError | Authentication Failed,Please Try Again. | |
| 502 | Meter.ReadyTsError | Get ReadyTs Failed,Please Try Again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.