CreateAppViewTemplate
Creates an application stream mixing template.
Operation description
QPS limits
The QPS limit for a single user is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your services. Call this operation as needed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rtc:CreateAppViewTemplate |
create |
*App
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The application ID. You can create and query it in the console. Only a single ID is supported. |
ac7N**** |
| Template |
object |
Yes |
The template. |
|
| Name |
string |
Yes |
The template name. |
Template |
| LayoutIds |
array |
Yes |
The list of layout IDs. A maximum of 16 layout IDs are supported. |
|
|
string |
No |
The specific layout ID. |
22 |
|
| MediaEncode |
integer |
Yes |
The encoding options. |
1 |
The valid values of MediaEncode are as follows:
| ID | Width | Height | Bitrate (Kbps) | Frame rate (FPS) | Remarks |
| 0 | 0 | 0 | 64 | 0 | Audio only |
| 1 | 640 | 360 | 500 | 15 | |
| 10 | 960 | 540 | 700 | 24 | |
| 20 | 1280 | 720 | 1024 | 24 | |
| 22 | 720 | 1280 | 1024 | 30 | |
| 23 | 800 | 600 | 1024 | 30 | |
| 24 | 750 | 780 | 1024 | 30 | |
| 25 | 750 | 540 | 700 | 30 | |
| 26 | 720 | 1280 | 2048 | 30 | |
| 27 | 1280 | 720 | 2048 | 30 | |
| 28 | 1280 | 720 | 3096 | 30 | |
| 30 | 1920 | 1080 | 2048 | 30 | |
| 31 | 1080 | 1920 | 2048 | 30 | |
| 32 | 1024 | 768 | 1024 | 24 | |
| 33 | 1280 | 960 | 1024 | 24 | |
| 34 | 1024 | 768 | 2048 | 24 | |
| 35 | 1280 | 960 | 2048 | 24 | |
| 36 | 1280 | 720 | 1024 | 24 | |
| 37 | 1280 | 720 | 2048 | 24 | |
| 38 | 540 | 960 | 750 | 15 | |
| 39 | 540 | 960 | 1500 | 30 | |
| 40 | 1280 | 720 | 1200 | 15 | |
| 41 | 720 | 1280 | 1200 | 15 | |
| 42 | 720 | 1280 | 1500 | 15 | |
| 43 | 540 | 960 | 1200 | 15 | |
| 52 | 640 | 360 | 500 | 30 | |
| 53 | 360 | 640 | 500 | 15 | |
| 54 | 360 | 640 | 500 | 30 | |
| 60 | 1920 | 1080 | 4096 | 30 | |
| 61 | 1080 | 1920 | 4096 | 30 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
30D41049-D02D-1C21-86AE-B3E5FD805C27 |
| TemplateId |
string |
The template ID. |
bc5v**** |
Examples
Success response
JSON format
{
"RequestId": "30D41049-D02D-1C21-86AE-B3E5FD805C27",
"TemplateId": "bc5v****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterError | %s. | |
| 400 | Function.Disable | %s. | Function status is invalid, please request in function enabled state. |
| 400 | Quota.Invalid | %s. | Resource quota is insufficient, please submit a work order to increase the quota |
| 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.