Retrieves all custom stream mix templates.
Operation description
You can call this operation to retrieve all custom stream mix templates. The operation returns a list of template names and template configurations.
QPS limit
The queries per second (QPS) limit for a single user is 10 calls per second. If this limit is exceeded, throttling is triggered, which may affect your business. We recommend that you are aware of this limit when you call this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:GetAllCustomTemplates |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| UserId |
string |
No |
The user ID. |
25346073170691**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CustomTemplates |
string |
A list of template names and template configurations. |
[{"templateConfig": "{\"cdesc\":\"H264\",\"scale\":\"[3:4]\",\"gop\":\"1\",\"bframes\":\"1\",\"height\":\"1080\"}","templateName": "custom1"},{"templateConfig": "{\"ar\":\"44100\",\"cdesc\":\"H264\",\"scale\":\"[3:4]\",\"gop\":\"1\",\"bframes\":\"1\",\"height\":\"1080\"}","templateName": "cus"}] |
| RequestId |
string |
The request ID. |
4791648Q-813C-6254-865C-0ED913661230 |
Examples
Success response
JSON format
{
"CustomTemplates": " [{\"templateConfig\": \"{\\\"cdesc\\\":\\\"H264\\\",\\\"scale\\\":\\\"[3:4]\\\",\\\"gop\\\":\\\"1\\\",\\\"bframes\\\":\\\"1\\\",\\\"height\\\":\\\"1080\\\"}\",\"templateName\": \"custom1\"},{\"templateConfig\": \"{\\\"ar\\\":\\\"44100\\\",\\\"cdesc\\\":\\\"H264\\\",\\\"scale\\\":\\\"[3:4]\\\",\\\"gop\\\":\\\"1\\\",\\\"bframes\\\":\\\"1\\\",\\\"height\\\":\\\"1080\\\"}\",\"templateName\": \"cus\"}]",
"RequestId": "4791648Q-813C-6254-865C-0ED913661230"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidUserId.Malformed | %s, please check userId. | The userId passed in is invalid, please check. |
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | There are invalid parameters: %s. |
| 400 | MissingParameter | %s. | Missing parameter |
| 400 | CustomTemplateInvalid | %s, please check and try again later. | The custom template is invalid, please check and try again. |
| 500 | InternalError | %s, please try again later. | Internal error, please try again later. |
| 404 | InvalidDomainName.NotFound | %s, please check and try again later. | Domain name does not exist, please check and try again. |
See for a complete list.
Release notes
See Release Notes for a complete list.