查詢媒體直播輸入詳情。
介面說明
調用本介面查詢媒體直播輸入詳情。
QPS 限制
本介面的單使用者 QPS 限制為 50 次/秒。超過限制,API 呼叫會被限流,這可能會影響您的業務,請合理調用。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ice:GetMediaLiveInput |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| InputId |
string |
是 |
輸入 ID。 |
SEGK5KA6KYKAWQQH |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
******11-DB8D-4A9A-875B-275798****** |
| Input |
object |
輸入配置。 |
|
| InputId |
string |
輸入 ID。 |
SEGK5KA6KYKAWQQH |
| Name |
string |
輸入執行個體名稱。 |
myinput |
| Type |
string |
輸入類型。 |
RTMP_PUSH |
| InputInfos |
array<object> |
輸入配置列表 |
|
|
object |
|||
| DestHost |
string |
PUSH 類型產生的推流地址。 |
rtmp://domain/app/stream |
| StreamName |
string |
推流的流名稱,輸入為 PUSH 類型時返回。 |
mystream |
| SourceUrl |
string |
拉流的流地址,輸入為 PULL 類型時返回。 |
rtmp://domain/app/stream |
| MonitorUrl |
string |
輸入監看地址,用於監播。 |
rtmp://domain/app/stream_for_monitor |
| FlowId |
string |
MediaConnect Flow 的 Flow ID。 |
******81-9693-40dc-bbab-db5e49****** |
| FlowOutputName |
string |
MediaConnect Flow 的輸出名稱。 |
myFlowOutputName |
| SrtMaxBitrate |
integer |
SRT 流的最大碼率,單位 bps。 |
3000000 |
| SrtLatency |
integer |
SRT 流的延遲,單位 ms。 |
1000 |
| SrtPassphrase |
string |
SRT 加密配置,SRT 流的密碼。 |
srtencryption |
| SrtPbKeyLen |
integer |
SRT 加密配置,SRT 流的密鑰長度。 |
16 |
| CreateTime |
string |
輸入建立時間,格式為:yyyy-MM-ddTHH:mm:ssZ(RFC 3339 格式),採用 UTC +0 時區。 |
2024-12-03T06:56:42Z |
| ChannelIds |
array |
輸入關聯的頻道 ID 列表。 |
|
|
string |
輸入關聯的頻道 ID。 |
SEGK5KA6KYKAWQQH |
|
| SecurityGroupIds |
array |
輸入關聯的安全性群組 ID 列表。 |
|
|
string |
輸入關聯的安全性群組 ID。 |
SEGK5KA6KYKAWQQH |
樣本
正常返回樣本
JSON格式
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"Input": {
"InputId": "SEGK5KA6KYKAWQQH",
"Name": "myinput",
"Type": "RTMP_PUSH",
"InputInfos": [
{
"DestHost": "rtmp://domain/app/stream",
"StreamName": "mystream",
"SourceUrl": "rtmp://domain/app/stream",
"MonitorUrl": "rtmp://domain/app/stream_for_monitor",
"FlowId": "******81-9693-40dc-bbab-db5e49******",
"FlowOutputName": "myFlowOutputName",
"SrtMaxBitrate": 3000000,
"SrtLatency": 1000,
"SrtPassphrase": "srtencryption",
"SrtPbKeyLen": 16
}
],
"CreateTime": "2024-12-03T06:56:42Z",
"ChannelIds": [
"SEGK5KA6KYKAWQQH"
],
"SecurityGroupIds": [
"SEGK5KA6KYKAWQQH"
]
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。