Adds a snapshot or animated image template.
Operation description
After adding a template, you can pass the snapshot or animated image template ID through the SubmitSnapshotJob or SubmitDynamicImageJob operation to initiate a snapshot or animated image job.
You can receive video snapshot completed and video animated image completed callback messages through HTTP callbacks (compatible with HTTPS) or MNS callbacks. For more information, see Callback methods.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:AddVodTemplate |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The template name.
|
test |
| TemplateType |
string |
Yes |
The templatetype. Valid values:
|
Snapshot |
| TemplateConfig |
string |
Yes |
The template configuration data in JSON format. For more information about the data structure, see Snapshot template configuration or Animated image template configuration. |
{"SnapshotConfig":{"Count":10,"SpecifiedOffsetTime":0,"Interval":1,"FrameType":"normal"},"SnapshotType":"NormalSnapshot"} |
| AppId |
string |
No |
The application ID. Default value: app-1000000. For more information, see Multi-application. |
app-**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| VodTemplateId |
string |
The snapshot or animated image template ID. This ID can be used as a request parameter of the SubmitSnapshotJob or SubmitDynamicImageJob operation to initiate snapshot or animated image processing. |
f5b228fe6930e*****0d6bf55bd87789 |
| RequestId |
string |
The request ID. |
25818875-5F78-4A*****F6-D7393642CA58 |
Examples
Success response
JSON format
{
"VodTemplateId": "f5b228fe6930e*****0d6bf55bd87789",
"RequestId": "25818875-5F78-4A*****F6-D7393642CA58"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.