DescribeAppRecordTemplates
Queries the list of application recording templates.
Operation description
QPS limit
The QPS limit for a single user calling this API operation is 10 queries per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this API operation at a reasonable frequency.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rtc:DescribeAppRecordTemplates |
none |
*App
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
The idempotency parameter. |
123e4567-e89b-12d3-a456-42665544**** |
| AppId |
string |
Yes |
The application ID. You can create and query the ID in the console. Only a single ID is supported. |
ac7N**** |
| PageNum |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. |
10 |
| Condition |
object |
No |
The query conditions. |
|
| TemplateId |
string |
No |
The template ID. |
ac7N**** |
| Name |
string |
No |
The template name. |
Test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
2A7497D0-BEAE-58E7-B13A-751BD8EAE4C6 |
| TotalNum |
integer |
The total number of records. |
10 |
| TotalPage |
integer |
The total number of pages. |
1 |
| Templates |
array<object> |
The list of templates. |
|
|
object |
|||
| TemplateId |
string |
The template ID. |
wv7N**** |
| Name |
string |
The template name. |
Test |
| FilePrefix |
string |
The naming rule for recording files. Note
To ensure the uniqueness of recording file names, the current naming rule is record/{AppId}/{ChannelId}{TaskId}/{EscapedStartTime}{EscapedEndTime}. |
record/{AppId}/{ChannelId_TaskId}/{EscapedStartTime}_{EscapedEndTime} |
| FileSplitInterval |
integer |
The splitting duration of the recording file. The value must be greater than or equal to 1800. Unit: seconds. |
1800 |
| DelayStopTime |
integer |
The delay time before stopping the recording. Unit: seconds. |
180 |
| CreateTime |
string |
The creation time. The time is displayed in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC. |
2020-09-04T06:22:15Z |
| MediaEncode |
integer |
The encoding options. |
1 |
| LayoutIds |
array |
The list of layout IDs. |
|
|
string |
A layout ID. |
22 |
|
| Formats |
array |
The formats of the recording file. Valid values: .m3u8, .mp4, and .flv. Note
Only lowercase letters are supported for file formats. |
|
|
string |
A file format. |
mp4 |
Examples
Success response
JSON format
{
"RequestId": "2A7497D0-BEAE-58E7-B13A-751BD8EAE4C6",
"TotalNum": 10,
"TotalPage": 1,
"Templates": [
{
"TemplateId": "wv7N****",
"Name": "测试",
"FilePrefix": "record/{AppId}/{ChannelId_TaskId}/{EscapedStartTime}_{EscapedEndTime}",
"FileSplitInterval": 1800,
"DelayStopTime": 180,
"CreateTime": "2020-09-04T06:22:15Z",
"MediaEncode": 1,
"LayoutIds": [
"22"
],
"Formats": [
"mp4"
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterError | %s. | |
| 404 | NotFound | %s. | The requested resource does not exist |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.