Mengkueri tata letak studio produksi.
Deskripsi operasi
Anda dapat memanggil operasi API ini untuk mengkueri tata letak studio produksi. Jika Anda tidak menentukan ID tata letak, semua tata letak studio dikembalikan.
Batas QPS
Batas kueri per detik (QPS) untuk operasi API ini adalah 15 panggilan per detik untuk setiap pengguna. Jika Anda melampaui batas ini, panggilan API akan dibatasi. Hal ini dapat memengaruhi bisnis Anda, jadi Anda harus memanggil operasi API ini dengan kecepatan yang wajar.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeCasterLayouts |
get |
*Caster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID region. |
cn-shanghai |
| CasterId |
string |
Yes |
ID studio produksi.
Catatan
Nama studio produksi dalam daftar di halaman Studio Produksi Cloud adalah ID studio produksi. |
LIVEPRODUCER_POST-cn-0pp1czt**** |
| LayoutId |
string |
No |
ID tata letak. Jika Anda tidak memberikan nilai untuk LayoutId, semua tata letak studio produksi akan dikembalikan. |
72d2ec7a-4cd7-4a01-974b-7cd53947**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Layouts |
object |
||
| Layout |
array<object> |
Daftar tata letak. |
|
|
array<object> |
Daftar tata letak. |
||
| AudioLayers |
object |
||
| AudioLayer |
array<object> |
The list of AudioLayer configurations. |
|
|
object |
The list of AudioLayer configurations. |
||
| FixedDelayDuration |
integer |
The fixed latency for the audio. This can be used for caption synchronization. Unit: milliseconds (ms). Default value: 0. Valid values: 0 to 5000. |
20 |
| ValidChannel |
string |
The sound channels that can be used for audio input. Valid values:
|
all |
| VolumeRate |
number |
The volume rate. A value of 1 indicates the original volume. Catatan
The default value is 0. This displays the element in its original size. |
1 |
| BlendList |
object |
||
| LocationId |
array |
The list of associated positions. The order is the same as that of VideoLayers. |
|
|
string |
The position ID. |
RV01 |
|
| LayoutId |
string |
The layout ID. |
72d2ec7a-4cd7-4a01-974b-7cd53947**** |
| MixList |
object |
||
| LocationId |
array |
The list of associated positions. The order is the same as that of AudioLayers. |
|
|
string |
The position ID. |
RV01 |
|
| VideoLayers |
object |
||
| VideoLayer |
array<object> |
The list of VideoLayer configurations. The default array sequence is used. |
|
|
array<object> |
The list of VideoLayer configurations. The default array sequence is used. |
||
| FillMode |
string |
The fill mode of the element. Valid values:
|
fit |
| FixedDelayDuration |
integer |
The fixed latency set for the video. This can be used for caption synchronization. Unit: milliseconds (ms). Default value: 0. Valid values: 0 to 5000. |
20 |
| HeightNormalized |
number |
The normalized height of the layer element.
|
0.5 |
| PositionNormalizeds |
object |
||
| Position |
array |
The normalized position of the layer element in the format Catatan
The x and y coordinates must be normalized. |
|
|
number |
The value. |
0 |
|
| PositionRefer |
string |
The reference point for the element's position. Valid values:
|
topLeft |
| WidthNormalized |
number |
The normalized width of the layer element.
|
0.5 |
| RequestId |
string |
ID permintaan. |
3be7ade8-d907-483c-b24a-0dad45**** |
| Total |
integer |
Jumlah total catatan. |
3 |
Contoh
Respons sukses
JSONformat
{
"Layouts": {
"Layout": [
{
"AudioLayers": {
"AudioLayer": [
{
"FixedDelayDuration": 20,
"ValidChannel": "all",
"VolumeRate": 1
}
]
},
"BlendList": {
"LocationId": [
"RV01"
]
},
"LayoutId": "72d2ec7a-4cd7-4a01-974b-7cd53947****",
"MixList": {
"LocationId": [
"RV01"
]
},
"VideoLayers": {
"VideoLayer": [
{
"FillMode": "fit",
"FixedDelayDuration": 20,
"HeightNormalized": 0.5,
"PositionNormalizeds": {
"Position": [
0
]
},
"PositionRefer": "topLeft",
"WidthNormalized": 0.5
}
]
}
}
]
},
"RequestId": "3be7ade8-d907-483c-b24a-0dad45****",
"Total": 3
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidCasterId.Malformed | %s, please check and try again later. | |
| 401 | IllegalOperation | %s, please check and try again later. | |
| 500 | InternalError | %s, please try again later. | |
| 404 | InvalidCaster.NotFound | %s, please check and try again later. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.