Mengkueri tugas transkoding cloud.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeRtcCloudTranscode |
none |
*All Resource
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
ID aplikasi. Nilai dapat berisi huruf besar dan kecil, digit, garis bawah, dan tanda hubung (-), dengan maksimum 64 karakter. |
********-7074-****-9ef5-85c19a4***** |
| TaskId |
string |
Yes |
ID tugas transkoding cloud. Nilai dapat berisi huruf besar dan kecil, digit, garis bawah, dan tanda hubung (-), dengan maksimum 64 karakter. |
******73-8501-****-8ac1-72295a****** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Badan respons. |
||
| RequestId |
string |
ID permintaan. |
******3B-0E1A-586A-AC29-742247****** |
| TaskInfo |
object |
Detail tugas transkoding cloud. |
|
| AppId |
string |
ID aplikasi. |
********-7074-****-9ef5-85c19a4***** |
| ChannelId |
string |
ID saluran. |
myChannel |
| TaskId |
string |
ID tugas transkoding cloud. |
******73-8501-****-8ac1-72295a****** |
| Status |
string |
Status tugas transkoding cloud. Nilai valid:
|
RUNNING |
| InputParam |
object |
Parameter input langganan. |
|
| SingleSubUserParam |
object |
The input parameters for subscribing to a single stream. |
|
| UserId |
string |
The ID of the user to subscribe to. |
userA |
| StreamType |
integer |
The media type of the subscribed user's stream. |
0 |
| SourceType |
integer |
The type of the subscribed video input stream. |
0 |
| OutputParams |
array<object> |
Parameter output transkoding. |
|
|
object |
Parameter output transkoding. |
||
| ChannelId |
string |
The ID of the channel to which the transcoded stream is pushed. |
myChannel |
| UserId |
string |
The user ID used to push the transcoded stream to the channel. |
userA_360p |
| UserToken |
string |
The user token required to push the transcoded stream to the channel. |
eyJhcHBpZCI******** |
| TranscodeTemplate |
string |
The name of the transcoding template. |
lhd |
| MaxIdleTime |
integer |
Periode batas waktu tidak aktif. Jika tugas tetap tidak aktif lebih lama dari nilai MaxIdleTime, tugas akan dihentikan secara otomatis. Unit: seconds. Nilai valid: 10 hingga 14400 (maksimum 4 jam). Nilai default: 300. |
600 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "******3B-0E1A-586A-AC29-742247******",
"TaskInfo": {
"AppId": "********-7074-****-9ef5-85c19a4*****",
"ChannelId": "myChannel",
"TaskId": "******73-8501-****-8ac1-72295a******",
"Status": "RUNNING",
"InputParam": {
"SingleSubUserParam": {
"UserId": "userA",
"StreamType": 0,
"SourceType": 0
}
},
"OutputParams": [
{
"ChannelId": "myChannel",
"UserId": "userA_360p",
"UserToken": "eyJhcHBpZCI********",
"TranscodeTemplate": "lhd"
}
],
"MaxIdleTime": 600
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter%s | %s. | |
| 400 | MissingParameter%s | %s. | |
| 400 | TooManyRequests | %s. | |
| 500 | InternalError | %s. | error on the live liveapi server. |
| 403 | Forbidden | %s. | |
| 404 | NotFound%s | %s. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.