調用GetLiveTranscodeJob獲取單個即時轉碼任務。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ice:GetLiveTranscodeJob |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| JobId |
string |
是 |
轉碼任務 ID。 |
****20b48fb04483915d4f2cd8ac**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID |
******3B-0E1A-586A-AC29-742247****** |
| Job |
object |
轉碼任務資訊。 |
|
| Name |
string |
轉碼任務名稱。 |
task1 |
| JobId |
string |
轉碼任務 ID。 |
****20b48fb04483915d4f2cd8ac**** |
| TemplateType |
string |
範本類型 |
normal |
| TemplateId |
string |
範本 ID |
b6491d5b3e514b7d895d14b5453ea119 |
| TemplateName |
string |
範本名稱。 |
basic |
| StartMode |
integer |
啟動模式。 |
0 |
| Status |
integer |
任務狀態。
|
1 |
| StreamInput |
object |
輸入流資訊。 |
|
| Type |
string |
The type of the input stream. |
rtmp |
| InputUrl |
string |
The URL of the input stream. |
rtmp://mydomain/app/stream1 |
| OutputStream |
object |
輸出流資訊。 |
|
| StreamInfos |
array<object> |
The information about the output stream. |
|
|
object |
|||
| Type |
string |
The type of the output stream protocol. Only the RTMP protocol is supported. |
rtmp |
| OutputUrl |
string |
The URL of the output stream. |
rtmp://mydomain/app/mytranscode1 |
| CreateTime |
string |
建立時間。 |
2022-07-20T02:48:58Z |
樣本
正常返回樣本
JSON格式
{
"RequestId": "******3B-0E1A-586A-AC29-742247******",
"Job": {
"Name": "task1",
"JobId": "****20b48fb04483915d4f2cd8ac****",
"TemplateType": "normal",
"TemplateId": "b6491d5b3e514b7d895d14b5453ea119",
"TemplateName": "basic",
"StartMode": 0,
"Status": 1,
"StreamInput": {
"Type": "rtmp",
"InputUrl": "rtmp://mydomain/app/stream1"
},
"OutputStream": {
"StreamInfos": [
{
"Type": "rtmp",
"OutputUrl": "rtmp://mydomain/app/mytranscode1"
}
]
},
"CreateTime": "2022-07-20T02:48:58Z"
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Forbidden | %s |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。