Consulte les modèles de filigrane.
Description de l'opération
Vous pouvez appeler cette opération pour interroger jusqu'à 10 modèles de filigrane à la fois.
Limite de QPS
Vous pouvez appeler cette opération jusqu'à 100 fois par seconde et par compte. Les requêtes qui dépassent cette limite sont rejetées et peuvent entraîner des interruptions de service. Nous vous recommandons de prendre en compte cette limite lors de l'appel de cette opération. Pour plus d'informations, consultez Limite de QPS.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
mts:QueryWaterMarkTemplateList |
get |
*All Resource
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| WaterMarkTemplateIds |
string |
Oui |
Les identifiants des modèles de filigrane que vous souhaitez interroger. Pour obtenir les identifiants des modèles de filigrane, vous pouvez vous connecter à la console ApsaraVideo Media Processing (MPS) et choisir Paramètres globaux > Modèles de filigrane dans le volet de navigation de gauche. Vous pouvez interroger jusqu'à 10 modèles de filigrane à la fois. Séparez les identifiants de plusieurs modèles de filigrane par des virgules (,). |
3780bd69b2b74540bc7b1096f564**** |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
Les paramètres de réponse. |
||
| RequestId |
string |
L'identifiant de la requête. |
17079AF5-6276-51A9-B755-D26594C93F3C |
| NonExistWids |
object |
||
| String |
array |
Les identifiants des modèles qui n'existent pas. |
|
|
string |
Les identifiants des modèles de filigrane qui n'existent pas. Ce paramètre n'est pas renvoyé si tous les modèles de filigrane spécifiés sont trouvés. |
72dfa5e679ab4be9a3ed9974c736**** |
|
| WaterMarkTemplateList |
object |
||
| WaterMarkTemplate |
array<object> |
Les détails des modèles de filigrane. |
|
|
array<object> |
Les paramètres de réponse. |
||
| Type |
string |
The type of the watermark. Valid values:
Remarque
Only watermarks of the Image type are supported. |
Image |
| RatioRefer |
object |
The values of the Height, Width, Dx, and Dy parameters relative to the reference edges. If the values of the Height, Width, Dx, and Dy parameters are decimals between 0 and 1, the values are calculated by referring to the following edges in sequence:
|
|
| Dx |
string |
The horizontal offset of the watermark relative to the output video image. Default value: 0. The default value indicates no offset. The value can be an integer or a decimal.
|
0.51 |
| Width |
string |
The width of the watermark image in the output video. The value can be an integer or a decimal.
|
0.36 |
| Height |
string |
The height of the watermark image in the output video. The value can be an integer or a decimal.
|
0.33 |
| Dy |
string |
The vertical offset of the watermark relative to the output video image. Default value: 0. The default value indicates no offset. The value can be an integer or a decimal.
|
0.4 |
| ReferPos |
string |
The position of the watermark. Valid values:
|
TopRight |
| State |
string |
The status of the watermark template. Valid values: Valid values:
|
Normal |
| Dx |
string |
The horizontal offset. Unit: pixel. |
100 |
| Width |
string |
The width of the watermark image. Unit: pixel. |
8 |
| Height |
string |
The height of the watermark image. Unit: pixel. |
8 |
| Timeline |
object |
The timeline of the watermark. |
|
| Start |
string |
The beginning of the time range during which the watermark is displayed.
|
0 |
| Duration |
string |
The display duration of the watermark. Default value: ToEND. The default value indicates that the watermark is displayed until the video ends. |
10 |
| Name |
string |
The name of the watermark template. |
example-watermark |
| Dy |
string |
The vertical offset. Unit: pixel. |
100 |
| Id |
string |
The ID of the watermark template. |
3780bd69b2b74540bc7b1096f564**** |
Exemples
JSON format
{
"RequestId": "17079AF5-6276-51A9-B755-D26594C93F3C",
"NonExistWids": {
"String": [
"72dfa5e679ab4be9a3ed9974c736****"
]
},
"WaterMarkTemplateList": {
"WaterMarkTemplate": [
{
"Type": "Image",
"RatioRefer": {
"Dx": "0.51",
"Width": "0.36",
"Height": "0.33",
"Dy": "0.4"
},
"ReferPos": "TopRight",
"State": "Normal",
"Dx": "100",
"Width": "8",
"Height": "8",
"Timeline": {
"Start": "0",
"Duration": "10"
},
"Name": "example-watermark",
"Dy": "100",
"Id": "3780bd69b2b74540bc7b1096f564****"
}
]
}
}
Codes d'erreur
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.