Consulta modelos de marca d'água.
Descrição da operação
Esta operação suporta paginação.
Limite de QPS
Você pode chamar esta operação até 60 vezes por segundo por conta. Solicitações que excedam esse limite serão descartadas e você poderá sofrer interrupções no serviço.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
live:DescribeLiveStreamWatermarks |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RegionId |
string |
Não |
O ID da região. |
cn-shanghai |
| Domain |
string |
Não |
O domínio principal de streaming. |
live.yourdomain.com |
| KeyWord |
string |
Não |
A palavra-chave para a pesquisa. Você pode especificar um ID ou nome de modelo. Há suporte à pesquisa aproximada para nomes. |
445409ec-7eaa-461d-8f29-4bec2eb9**** |
| PageNumber |
integer |
Não |
O número da página. O valor padrão é 1. |
1 |
| PageSize |
integer |
Não |
O número de modelos a serem retornados em cada página. O valor padrão é 100. |
100 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
As informações do modelo de marca d'água. |
||
| Total |
integer |
O número total de entradas correspondentes. |
100 |
| RequestId |
string |
O ID da solicitação. |
5c6a2a0df228-4a64- af62-20e91b9676b3 |
| WatermarkList |
object |
||
| Watermark |
array<object> |
A lista de modelos de marca d'água. |
|
|
object |
A lista de modelos de marca d'água. |
||
| Type |
integer |
The watermark type.
|
0 |
| XOffset |
number |
The X-axis offset of the watermark, in pixels. Nota
Relative to RefWidth. If OffsetCorner is TopLeft, XOffset is the horizontal distance between the top‑left corner of the watermark and the top‑left corner of the background video. Positive X points to the right. |
50.0 |
| RefWidth |
integer |
The reference width of the video background, in pixels. |
1920 |
| YOffset |
number |
The Y-axis offset of the watermark, in pixels. Nota
Relative to RefHeight. If OffsetCorner is TopLeft, YOffset is the vertical distance between the top‑left corner of the watermark and the top‑left corner of the background video. Positive Y points downward. |
100.0 |
| Height |
integer |
The height of the watermark image, in pixels. This value is relative to |
200 |
| RefHeight |
integer |
The reference height of the video background, in pixels. |
1080 |
| PictureUrl |
string |
The URL of the watermark image. |
http://example.com |
| Transparency |
integer |
The opacity of the watermark. Value range: |
255 |
| Description |
string |
The custom description of the watermark. |
my watermark |
| OffsetCorner |
string |
The anchor point for the watermark's position. Valid values:
|
TopRight |
| RuleCount |
integer |
The number of watermark rules configured for the domain. |
12 |
| Name |
string |
The name of the watermark. |
livewatermark**** |
| TemplateId |
string |
The ID of the watermark template. |
445409ec-7eaa-4 61d-8f29-4bec2eb9 **** |
Exemplos
Resposta de sucesso
JSON formato
{
"Total": 100,
"RequestId": "5c6a2a0df228-4a64- af62-20e91b9676b3",
"WatermarkList": {
"Watermark": [
{
"Type": 0,
"XOffset": 50,
"RefWidth": 1920,
"YOffset": 100,
"Height": 200,
"RefHeight": 1080,
"PictureUrl": "http://example.com",
"Transparency": 255,
"Description": "my watermark",
"OffsetCorner": "TopRight",
"RuleCount": 12,
"Name": "livewatermark****",
"TemplateId": "445409ec-7eaa-4 61d-8f29-4bec2eb9 ****"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParameters | %s Please check and try again later. | Exception parameter exists, please check and try again. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.