CreateAppViewTemplate
Create an application composite streaming template.
Operation description
QPS limit
The per-user query-per-second (QPS) limit for this operation is 10 calls per second. Exceeding this limit triggers rate limiting, which may affect your business. Call this operation only 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 view this ID in the console. Only one ID is supported. |
ac7N**** |
| Template |
object |
Yes |
The template. |
|
| Name |
string |
Yes |
The template name. |
模板 |
| LayoutIds |
array |
Yes |
A list of layout IDs. Maximum: 16. |
|
|
string |
No |
A layout ID. |
22 |
|
| MediaEncode |
integer |
Yes |
The encoding option. |
1 |
The MediaEncode parameter accepts the following values.
| ID | Width | Height | Bitrate (Kbps) | Frame rate (FPS) | Notes |
| 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 |
Response schema |
||
| RequestId |
string |
The request ID. |
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.