查詢導播台通道。
介面說明
先通過 CreateCaster 介面建立導播台,再調用本介面查詢導播台通道。
QPS 限制
本介面的單使用者 QPS 限制為 15 次/秒。超過限制,API 呼叫會被限流,這可能會影響您的業務,請合理調用。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
live:DescribeCasterChannels |
get |
*Caster
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
否 |
地區 ID。 |
cn-shanghai |
| CasterId |
string |
是 |
導播台 ID。
說明
直播控制台雲導播台頁面導播台列表中的導播台名稱即導播台 ID。 |
a2b8e671-2fe5-4642-a2ec-bf93880e**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Channels |
object |
||
| Channel |
array<object> |
通道列表。 |
|
|
object |
通道列表。 |
||
| ChannelId |
string |
通道位置 ID。 布局應用通道 ID,每個位置至多設定一個視頻源,格式需符合“RV01~RV12”。 |
RV01 |
| FaceBeauty |
string |
人臉美顏。具體包括:0(whole)、1(磨皮)、2(美白)、3(去除黑眼圈)、4(法令紋)。 |
0 |
| ResourceId |
string |
視頻源 Id。 |
87642866-281E-4AEA-9582-B124879**** |
| RtmpUrl |
string |
rtmp 地址。 |
rtmp://demo.aliyundoc.com/caster/rtmperf?auth_key=**** |
| StreamUrl |
string |
通道輸出地址。 |
http://demo.aliyundoc.com/caster/streamwsx.flv?auth_key=YYYYY |
| RequestId |
string |
請求 ID。 |
83C52866-281E-4AEA-9582-B124******** |
| Total |
integer |
總數量。 |
1 |
樣本
正常返回樣本
JSON格式
{
"Channels": {
"Channel": [
{
"ChannelId": "RV01",
"FaceBeauty": "0",
"ResourceId": "87642866-281E-4AEA-9582-B124879****",
"RtmpUrl": "rtmp://demo.aliyundoc.com/caster/rtmperf?auth_key=****",
"StreamUrl": "http://demo.aliyundoc.com/caster/streamwsx.flv?auth_key=YYYYY"
}
]
},
"RequestId": "83C52866-281E-4AEA-9582-B124********",
"Total": 1
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | 存在無效參數:%s。 |
| 401 | IllegalOperation | %s, please check and try again later. | 不允許的操作,請檢查後重試。 |
| 500 | InternalError | %s, please try again later. | 內部錯誤,請稍後重試。 |
| 404 | InvalidDomainName.NotFound | %s, please check and try again later. | 網域名稱不存在,請檢查後重試。 |
| 404 | InvalidCaster.NotFound | %s, please check and try again later. | 導播台不存在,請檢查後重試。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。