Menambahkan tata letak ke studio produksi.
Deskripsi operasi
Before you call this operation, you must create a production studio and add video sources. For more information about how to create a production studio, see CreateCaster.
QPS limits
The queries per second (QPS) limit for this operation is 10 calls per second per user. API calls that exceed this limit are throttled, which may affect your business. Do not exceed this limit.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:AddCasterLayout |
create |
*Caster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah. |
cn-shanghai |
| VideoLayer |
array<object> |
Yes |
Tata letak video. |
|
|
object |
No |
The video layout. |
||
| FillMode |
string |
No |
The fill mode of the element. Valid values:
|
fit |
| FixedDelayDuration |
integer |
No |
The fixed latency for the video layer. Use this parameter to synchronize the video with captions. Unit: milliseconds. Default value: 0. Valid values: 0 to 5000. |
5000 |
| HeightNormalized |
number |
No |
The normalized height of the layer.
|
1 |
| PositionNormalized |
array |
No |
The position of the video layer. The value is a normalized coordinate Note: The x and y coordinates must be normalized. |
0.3 |
|
number |
No |
The value. |
0 |
|
| PositionRefer |
string |
No |
The reference point for the position of the layer. Valid values:
|
topLeft |
| WidthNormalized |
number |
No |
The normalized width of the layer.
|
1 |
| AudioLayer |
array<object> |
Yes |
Tata letak audio. |
|
|
object |
No |
The audio layout. |
||
| FixedDelayDuration |
integer |
No |
The fixed latency for the audio layer. Use this parameter to synchronize the audio with captions. Unit: milliseconds. Default value: 0. Valid values: 0 to 5000. |
5000 |
| ValidChannel |
string |
No |
The sound channels that are used for audio input. Valid values:
|
all |
| VolumeRate |
number |
No |
The volume multiplication factor for the audio stream. Valid values: 0 to 10.0.
|
1.0 |
| BlendList |
array |
Yes |
ID lokasi Sumber video. Pesanan ID lokasi sesuai dengan Pesanan lapisan video yang ditentukan dalam parameter VideoLayer. Untuk informasi selengkapnya tentang ID lokasi, lihat AddCasterVideoResource. Untuk LocationId, lihat Tambahkan Sumber video. ID ini sesuai dengan Pesanan elemen VideoLayers. |
RV01 |
|
string |
No |
The location ID. |
RV01 |
|
| MixList |
array |
Yes |
ID lokasi sumber audio. Pesanan ID lokasi sesuai dengan Pesanan lapisan audio yang ditentukan dalam parameter AudioLayer. Untuk informasi selengkapnya tentang ID lokasi, lihat AddCasterVideoResource. Untuk `LocationId`, lihat Tambahkan Sumber video. ID ini sesuai dengan Pesanan elemen `AudioLayers`. |
RV01 |
|
string |
No |
The location ID. |
RV01 |
|
| CasterId |
string |
Yes |
ID studio produksi.
Catatan
Nama studio produksi pada halaman Cloud Production Studio adalah ID studio produksi. |
LIVEPRODUCER_POST-cn-0pp1czt**** |
Dalam parameter permintaan, N merepresentasikan nomor urut suatu elemen. Misalnya, VideoLayer.N.FillMode menentukan mode pengisian untuk lapisan video ke-N. VideoLayer.1.FillMode menentukan mode pengisian untuk lapisan video pertama, dan VideoLayer.2.FillMode menentukan mode pengisian untuk lapisan video kedua.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| LayoutId |
string |
The ID of the layout. You can use this ID as a request parameter when you call operations to manage layouts, such as deleting, modifying, or querying layouts for a production studio or a virtual studio. |
21926b36-7dd2-4fde-ae25-51b5bc8e**** |
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68F**** |
Contoh
Respons sukses
JSONformat
{
"LayoutId": "21926b36-7dd2-4fde-ae25-51b5bc8e****",
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | %s. | |
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | |
| 400 | InvalidCasterId.Malformed | %s, please check and try again later. | |
| 400 | InvalidVideoLayersAndBlendListSize.Mismatch | %s, please check and try again later. | |
| 400 | InvalidAudioLayersAndMixListSize.Mismatch | %s, please check and try again later. | |
| 400 | InvalidUserId.Malformed | %s, please check userId. | |
| 400 | InvalidBlendList.ExceedNorm | %s, please check and try again later. | |
| 400 | InvalidPositionNormalized.Malformed | %s, please check and try again later. | |
| 400 | InvalidHeightOrWidthNormalized | %s, please check and try again later. | |
| 400 | InvalidMixList.ExceedNorm | %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.