Memulai studio produksi. Jika skenario Preview (PVW) dan Program (PGM) tidak ada, operasi ini akan membuatnya, lalu memulai skenario tersebut beserta tugas pemrosesan audio dan video yang mendasarinya.
Deskripsi operasi
Sebelum memulai studio produksi, panggil operasi CreateCaster untuk membuat studio. Kemudian, panggil operasi ini untuk memulainya. Jika skenario Preview (PVW) dan Program (PGM) tidak ada, operasi ini akan membuatnya, lalu memulai skenario tersebut beserta tugas pemrosesan audio dan video yang mendasarinya.
Batas QPS
Batas kueri per detik (QPS) untuk operasi ini adalah 10 panggilan per detik per pengguna. Jika Anda melampaui batas ini, panggilan API akan dibatasi. Pembatasan dapat memengaruhi bisnis Anda. Panggil operasi ini dalam batas tersebut.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:StartCaster |
update |
*Caster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah. |
cn-shanghai |
| CasterId |
string |
Yes |
ID studio produksi.
Catatan
Nama studio produksi dalam daftar pada halaman Cloud Production Studio adalah ID studio produksi. |
80787064-1c94-4dc1-85ce-9409960a**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Informasi tentang studio produksi. |
||
| PgmSceneInfos |
object |
||
| SceneInfo |
array<object> |
Daftar skenario PGM. |
|
|
array<object> |
Skenario PGM. |
||
| SceneId |
string |
The scenario ID. |
b5f8c837-ceeb-424f-b30b-68e94e86**** |
| StreamInfos |
object |
||
| StreamInfo |
array<object> |
The list of bypass output streams. |
|
|
object |
A bypass output stream. |
||
| OutputStreamUrl |
string |
The playback URL. |
rtmp://abclive/caster/example.net |
| TranscodeConfig |
string |
The transcoding configuration. Valid values:
|
lld |
| VideoFormat |
string |
The format. Valid values:
|
flv |
| StreamUrl |
string |
The playback stream URL for the PGM scenario of the production studio. This is not the URL for the bypass output stream. |
rtmp://abclive/caster/example.edu |
| PvwSceneInfos |
object |
||
| SceneInfo |
array<object> |
Daftar skenario PVW. |
|
|
object |
Skenario PVW. |
||
| SceneId |
string |
The scenario ID. |
b5f8c837-ceeb-424f-b30b-68e94e86**** |
| StreamUrl |
string |
The playback stream URL for the PVW scenario of the production studio. This is not the URL for the bypass output stream. |
rtmp://abclive/caster/example.net |
| RequestId |
string |
ID permintaan. |
6EBD1AC4-C34D-4AE1-963E-B688A228BE31 |
Contoh
Respons sukses
JSONformat
{
"PgmSceneInfos": {
"SceneInfo": [
{
"SceneId": "b5f8c837-ceeb-424f-b30b-68e94e86****",
"StreamInfos": {
"StreamInfo": [
{
"OutputStreamUrl": "rtmp://abclive/caster/example.net",
"TranscodeConfig": "lld",
"VideoFormat": "flv"
}
]
},
"StreamUrl": "rtmp://abclive/caster/example.edu"
}
]
},
"PvwSceneInfos": {
"SceneInfo": [
{
"SceneId": "b5f8c837-ceeb-424f-b30b-68e94e86****",
"StreamUrl": "rtmp://abclive/caster/example.net"
}
]
},
"RequestId": "6EBD1AC4-C34D-4AE1-963E-B688A228BE31"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidUserId.Malformed | %s, please check userId. | |
| 400 | InvalidCasterId.Malformed | %s, please check and try again later. | |
| 400 | IncorrectSceneStatus | %s, please check and try again later. | |
| 400 | IncorrectCasterStatus.Inuse | %s, please check and try again later. | |
| 400 | IncorrectSceneStatus.Inuse | %s, please check and try again later. | |
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | |
| 400 | IncorrectChannel.Disable | %s, please check and try again later. | |
| 400 | IncorrectCasterStatus.Cease | %s, please check and try again later. | |
| 400 | IncorrectCasterStatus.Expire | %s, please check and try again later. | |
| 401 | IllegalOperation | %s, please check and try again later. | |
| 403 | UserQuotaExceed | Quota exceeded: %s. | |
| 404 | InvalidCaster.NotFound | %s, please check and try again later. | |
| 404 | InvalidDomainName.NotFound | %s, please check and try again later. | |
| 404 | InvalidCasterTemplate.NotFound | %s, please check and try again later. | |
| 404 | InvalidConfiguration.NotFound | %s, please check and try again later. | |
| 404 | InvalidResource.NotFound | %s, please check and try again later. | |
| 404 | InvalidTranscode.NotFound | %s, please check and try again later. | |
| 404 | InvalidDelay.NotFound | %s, please check and try again later. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.