Consulta todas as configurações de gravação de aplicativo em um domínio de transmissão ao vivo.
Descrição da operação
Primeiro obtenha o nome do domínio de transmissão e, em seguida, chame esta operação para consultar todas as configurações de gravação de aplicativo no domínio de transmissão ao vivo.
Limite de QPS
O limite de QPS para usuário único desta operação é de 100 chamadas por segundo. Se o limite for excedido, as chamadas de API serão limitadas, o que pode afetar seus negócios. Faça chamadas em uma frequência razoável.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
live:DescribeLiveRecordConfig |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| DomainName |
string |
Sim |
O nome do domínio de transmissão. |
example.com |
| AppName |
string |
Não |
O nome do aplicativo ao qual a stream pertence. |
liveApp**** |
| StreamName |
string |
Não |
O nome da stream. |
liveStream**** |
| PageNum |
integer |
Não |
O número da página atual. Valor padrão: 1. |
1 |
| PageSize |
integer |
Não |
O número de entradas por página. Valor padrão: 10. Valores válidos: 5 a 30. |
5 |
| Order |
string |
Não |
A ordem de classificação por hora de criação. Valores válidos:
Valores válidos:
|
asc |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| PageNum |
integer |
O número da página. |
5 |
| RequestId |
string |
O ID da solicitação. |
5056369B-D337-499E-B8B7-B761BD37B08A |
| Order |
string |
A ordem de classificação. |
desc |
| TotalPage |
integer |
O número total de páginas. |
20 |
| PageSize |
integer |
O número de entradas por página. |
10 |
| TotalNum |
integer |
O número total de entradas que atendem às condições especificadas. |
12 |
| LiveAppRecordList |
object |
||
| LiveAppRecord |
array<object> |
A lista de configurações de gravação. |
|
|
array<object> |
A lista de configurações de gravação. |
||
| EndTime |
string |
The scheduled recording end time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2018-11-08T03:49:18Z |
| StartTime |
string |
The scheduled recording start time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2018-11-08T02:49:18Z |
| AppName |
string |
The name of the application to which the stream belongs. |
liveApp**** |
| StreamName |
string |
The live stream name. |
liveStream**** |
| DelayTime |
integer |
The stream interruption concatenation duration. If the live stream interruption duration exceeds the configured concatenation duration, a new file is generated. The stream interruption concatenation duration supports values from 15 to 21600 seconds. |
180 |
| CreateTime |
string |
The creation time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2016-05-20T09:33:38Z |
| OnDemond |
integer |
On-demand recording. Valid values:
Nota
When OnDemand is set to 1, you must first configure the OnDemandUrl by calling the AddLiveRecordNotifyConfig operation. Otherwise, recording is disabled by default. |
0 |
| OssBucket |
string |
The OSS storage bucket name. |
liveBucket**** |
| DomainName |
string |
The streaming domain name. |
example.com |
| OssEndpoint |
string |
The OSS storage endpoint. |
cn-oss-****.aliyuncs.com |
| RecordFormatList |
object |
||
| RecordFormat |
array<object> |
The format list. |
|
|
object |
The format list. |
||
| SliceDuration |
integer |
The duration of a single recording slice for the transcoded stream. Unit: seconds. |
30 |
| CycleDuration |
integer |
The cyclic recording duration. Unit: seconds. |
3600 |
| SliceOssObjectPrefix |
string |
The slice name. |
record/{liveApp****}/{liveStream****}/{UnixTimestamp} |
| OssObjectPrefix |
string |
The recording file name. |
record/{liveApp****}/{liveStream****} |
| Format |
string |
The format. |
M3U8 |
| TranscodeRecordFormatList |
object |
||
| RecordFormat |
array<object> |
The transcoded stream recording format list. |
|
|
object |
The recording configuration file format list. |
||
| SliceDuration |
integer |
The duration of a single recording slice for the transcoded stream. Unit: seconds. |
30 |
| CycleDuration |
integer |
The cyclic recording duration. Unit: seconds. |
3600 |
| SliceOssObjectPrefix |
string |
The transcoded stream recording slice name. |
record/{liveApp****}/{liveStream****}/{UnixTimestamp} |
| OssObjectPrefix |
string |
The transcoded stream recording file name. |
record/{liveApp****}/{liveStream****} |
| Format |
string |
The transcoded stream recording format. |
M3U8 |
| TranscodeTemplates |
object |
||
| Templates |
array |
The transcoding templates. |
|
|
string |
The transcoding templates for transcoded stream recording. If recording of all transcoded streams is configured, the returned value is ["*"]. |
["sd","hd"] |
Exemplos
Resposta de sucesso
JSON formato
{
"PageNum": 5,
"RequestId": "5056369B-D337-499E-B8B7-B761BD37B08A",
"Order": "desc",
"TotalPage": 20,
"PageSize": 10,
"TotalNum": 12,
"LiveAppRecordList": {
"LiveAppRecord": [
{
"EndTime": "2018-11-08T03:49:18Z",
"StartTime": "2018-11-08T02:49:18Z",
"AppName": "liveApp****",
"StreamName": "liveStream****",
"DelayTime": 180,
"CreateTime": "2016-05-20T09:33:38Z",
"OnDemond": 0,
"OssBucket": "liveBucket****",
"DomainName": "example.com",
"OssEndpoint": "cn-oss-****.aliyuncs.com",
"RecordFormatList": {
"RecordFormat": [
{
"SliceDuration": 30,
"CycleDuration": 3600,
"SliceOssObjectPrefix": "record/{liveApp****}/{liveStream****}/{UnixTimestamp}",
"OssObjectPrefix": "record/{liveApp****}/{liveStream****}",
"Format": "M3U8"
}
]
},
"TranscodeRecordFormatList": {
"RecordFormat": [
{
"SliceDuration": 30,
"CycleDuration": 3600,
"SliceOssObjectPrefix": "record/{liveApp****}/{liveStream****}/{UnixTimestamp}",
"OssObjectPrefix": "record/{liveApp****}/{liveStream****}",
"Format": "M3U8"
}
]
},
"TranscodeTemplates": {
"Templates": [
"[\"sd\",\"hd\"]"
]
}
}
]
}
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.