設定導播台通道。
介面說明
先通過 CreateCaster 介面建立導播台,再調用本介面設定導播台通道。
QPS 限制
本介面的單使用者 QPS 限制為 10 次/秒。超過限制,API 呼叫會被限流,這可能會影響您的業務,請合理調用。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
live:SetCasterChannel |
update |
*Caster
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
否 |
地區 ID。 |
cn-shanghai |
| CasterId |
string |
是 |
導播台 ID。
說明
直播控制台雲導播台頁面導播台列表中的導播台名稱即導播台 ID。 |
a2b8e671-2fe5-4642-a2ec-bf93880e**** |
| ChannelId |
string |
是 |
通道 ID。 布局畫面的引用編號,每個通道位置至多設定一個資源,數量受限於導播台建立時的通道路數。格式符合“RV01~RV12”。 |
RV01 |
| ResourceId |
string |
否 |
視頻源 ID。 |
16A96B9A-F203-4EC5-8E43-CB92E68F**** |
| SeekOffset |
integer |
否 |
僅對檔案視頻有效,直播源無效,必須大於或等於 0,表示從相對於首幀的偏差時間作為開始讀取的位置。 單位:毫秒(ms)。 |
1000 |
| PlayStatus |
integer |
否 |
播放狀態。僅對檔案視頻有效,直播源無效。 取值:
|
1 |
| FaceBeauty |
string |
否 |
人臉美顏。具體包括:0(whole)、1(磨皮)、2(美白)、3(去除黑眼圈)、4(法令紋)。 |
0 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidUserId.Malformed | %s, please check userId. | 傳入的userId無效,請檢查。 |
| 400 | InvalidCasterId.Malformed | %s, please check and try again later. | 參數CasterId無效,請檢查後重試。 |
| 400 | DuplicateLocationID | %s, please check and try again later. | 參數LocationID重複,請檢查後重試。 |
| 400 | InvalidParameter.PlayStatus | %s, please check and try again later. | 參數PlayStatus無效,請檢查後重試。 |
| 400 | InvalidChannelId.Malformed | %s, please check and try again later. | 參數ChannelId無效,請檢查後重試。 |
| 400 | InvalidParameter.SeekOffset | %s, please check and try again later. | 參數SeekOffset無效,請檢查後重試。 |
| 400 | IncorrectChannel.Disable | %s, please check and try again later. | Channel處於不可設定狀態,請檢查後重試。 |
| 400 | ResourceOfChannelExist | %s, please check and try again later. | 通道中已存在資源,請檢查後重試。 |
| 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 | InvalidCaster.NotFound | %s, please check and try again later. | 導播台不存在,請檢查後重試。 |
| 404 | InvalidResource.NotFound | %s, please check and try again later. | 資源不存在,請檢查後重試。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。