Queries all recording configurations of an application for a streaming domain.
Operation description
Obtain the main streaming domain, and then call this operation to query the recording configurations of all applications under the main streaming domain.
QPS limit
You can call this operation up to 100 times per second 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.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveRecordConfig |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
The name of the main streaming domain. |
example.com |
| AppName |
string |
No |
The name of the application to which the live stream belongs. |
liveApp**** |
| StreamName |
string |
No |
The name of the live stream. |
liveStream**** |
| PageNum |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 5 to 30. Default value: 10. |
5 |
| Order |
string |
No |
The order in which the entries are sorted based on creation time. Valid values:
|
asc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageNum |
integer |
The page number. |
5 |
| RequestId |
string |
The request ID. |
5056369B-D337-499E-B8B7-B761BD37B08A |
| Order |
string |
The sorting order of recording configurations by creation time. |
desc |
| TotalPage |
integer |
The total number of pages. |
20 |
| PageSize |
integer |
The number of entries per page. |
10 |
| TotalNum |
integer |
The total number of recording configurations that meet the specified conditions. |
12 |
| LiveAppRecordList |
object |
||
| LiveAppRecord |
array<object> |
The list of recording configurations. |
|
|
array<object> |
The recording configuration. |
||
| EndTime |
string |
The end time of the recording. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2018-11-08T03:49:18Z |
| StartTime |
string |
The start time of the recording. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2018-11-08T02:49:18Z |
| AppName |
string |
The name of the application to which the live stream belongs. |
liveApp**** |
| StreamName |
string |
The name of the live stream. |
liveStream**** |
| DelayTime |
integer |
The maximum interruption duration of the live stream. If the actual interruption duration exceeds the threshold, a new recording is generated. Valid values: 15 to 21600. Unit: seconds. |
180 |
| CreateTime |
string |
The time when the recording configuration was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2016-05-20T09:33:38Z |
| OnDemond |
integer |
The configuration of on-demand recording. Valid values:
Note
If you set OnDemand to 1, you must call the AddLiveRecordNotifyConfig operation to configure OnDemandUrl. Otherwise, the configuration of on-demand recording is invalid. |
0 |
| OssBucket |
string |
The name of the Object Storage Service (OSS) bucket in which the recordings are stored. |
liveBucket**** |
| DomainName |
string |
The name of the main streaming domain. |
example.com |
| OssEndpoint |
string |
The endpoint of the OSS bucket. |
cn-oss-****.aliyuncs.com |
| RecordFormatList |
object |
||
| RecordFormat |
array<object> |
The recording formats of original streams. |
|
|
object |
|||
| SliceDuration |
integer |
The duration of a segment file. Unit: seconds. |
30 |
| CycleDuration |
integer |
The duration of a recording file. Unit: seconds. |
3600 |
| SliceOssObjectPrefix |
string |
The naming format of a segment file. |
record/{liveApp****}/{liveStream****}/{UnixTimestamp} |
| OssObjectPrefix |
string |
The naming format of a recording file. |
record/{liveApp****}/{liveStream****} |
| Format |
string |
The format of recording files. |
M3U8 |
| TranscodeRecordFormatList |
object |
||
| RecordFormat |
array<object> |
The recording formats of transcoded streams. |
|
|
object |
|||
| SliceDuration |
integer |
The duration of a segment file. Unit: seconds. |
30 |
| CycleDuration |
integer |
The duration of a recording file. Unit: seconds. |
3600 |
| SliceOssObjectPrefix |
string |
The naming format of a segment file. |
record/{liveApp****}/{liveStream****}/{UnixTimestamp} |
| OssObjectPrefix |
string |
The naming format of a recording file. |
record/{liveApp****}/{liveStream****} |
| Format |
string |
The format of recording files. |
M3U8 |
| TranscodeTemplates |
object |
||
| Templates |
array |
The transcoding templates. |
|
|
string |
The transcoding template used by the recorded stream. If all transcoded streams are recorded, ["*"] is returned. |
["sd","hd"] |
Examples
Success response
JSON format
{
"PageNum": 5,
"RequestId": "5056369B-D337-499E-B8B7-B761BD37B08A",
"Order": "desc",
"TotalPage": 20,
"PageSize": 10,
"TotalNum": 12,
"LiveAppRecordList": {
"LiveAppRecord": [
{
"EndTime": "2018-11-08T03:49:18Z",
"StartTime": "2018-11-08T02:49:18Z",
"AppName": "liveApp****",
"StreamName": "liveStream****",
"DelayTime": 180,
"CreateTime": "2016-05-20T09:33:38Z",
"OnDemond": 0,
"OssBucket": "liveBucket****",
"DomainName": "example.com",
"OssEndpoint": "cn-oss-****.aliyuncs.com",
"RecordFormatList": {
"RecordFormat": [
{
"SliceDuration": 30,
"CycleDuration": 3600,
"SliceOssObjectPrefix": "record/{liveApp****}/{liveStream****}/{UnixTimestamp}",
"OssObjectPrefix": "record/{liveApp****}/{liveStream****}",
"Format": "M3U8"
}
]
},
"TranscodeRecordFormatList": {
"RecordFormat": [
{
"SliceDuration": 30,
"CycleDuration": 3600,
"SliceOssObjectPrefix": "record/{liveApp****}/{liveStream****}/{UnixTimestamp}",
"OssObjectPrefix": "record/{liveApp****}/{liveStream****}",
"Format": "M3U8"
}
]
},
"TranscodeTemplates": {
"Templates": [
"[\"sd\",\"hd\"]"
]
}
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.