全量設定場景配置,清空場景配置,並將版面配置資訊設定並生效至指定場景。
介面說明
呼叫本介面全量設定場景配置,清空場景配置,並將版面配置資訊設定並生效至指定場景。
QPS 限制
本介面的單使用者 QPS 限制為 10 次/秒。超過限制,API 呼叫會被限流,這可能會影響您的業務,請合理呼叫。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
live:SetCasterSceneConfig |
update |
*Caster
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
否 |
地域 ID。 |
cn-shanghai |
| ComponentId |
array |
否 |
元件 ID 清單,陣列內按照由下至上的順序排列元件。 說明
N 表示第幾個的意思。例如: |
[ "a2b8e671-2fe5-4642-a2ec-bf931826****", "a2b8e671-2fe5-4642-a2ec-28374657****"] |
|
string |
否 |
元件 ID 清單,陣列內按照由下至上的順序排列元件。 說明
N 表示第幾個的意思。例如: |
[ "a2b8e671-2fe5-4642-a2ec-bf931826****", "a2b8e671-2fe5-4642-a2ec-28374657****"] |
|
| CasterId |
string |
是 |
導播台 ID。
說明
直播控制台雲端導播台頁面導播台清單中的導播台名稱即導播台 ID。 |
80787064-1c94-4dc1-85ce-9409960a**** |
| SceneId |
string |
是 |
場景 ID。該場景必須已透過呼叫 StartCasterScene 啟動,否則返回 IncorrectSceneStatus 錯誤。 |
242b4e2c-c30f-4442-85ba-2e3e4e3d**** |
| LayoutId |
string |
否 |
版面配置 ID。如果您透過 DescribeCasterLayouts 介面 查詢導播台版面配置清單,請檢視 DescribeCasterLayouts 介面呼叫返回的參數 LayoutId 值。 |
0c6da077-f037-49e8-8440-3be13393**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
CF60DB6A-7FD6-426E-9288-122CC1A52FA7 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "CF60DB6A-7FD6-426E-9288-122CC1A52FA7"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidCasterId.Malformed | %s, please check and try again later. | 參數CasterId無效,請檢查後重試。 |
| 400 | InvalidUserId.Malformed | %s, please check userId. | 傳入的userId無效,請檢查。 |
| 400 | InvalidSceneId.Malformed | %s, please check and try again later. | 參數SceneId無效,請檢查後重試。 |
| 400 | InvalidCaptionResource | %s, please check and try again later. | 語音字幕元件引用的資源不存在或不為直播源,請檢查後重試。 |
| 400 | IncorrectSceneStatus | %s, please check and try again later. | Scene狀態不支援,請檢查後重試。 |
| 400 | ComponentNumberExceed | %s, please check and try again later. | 元件數量超限,請檢查後重試。 |
| 400 | IncorrectSceneStatus.Idle | %s, please check and try again later. | Scene狀態為閒置,請檢查後重試。 |
| 400 | IncorrectSceneStatus.ConfigError | %s, please check and try again later. | Scene設定錯誤,請檢查後重試。 |
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | 存在無效參數:%s。 |
| 401 | IllegalOperation | %s, please check and try again later. | 錯誤操作,請檢查後重試。 |
| 412 | ResourceInChannel.PreConditionFailed | %s, please try again later. | 資源預校驗失敗,請稍後重試。 |
| 412 | ResourceInChannel.Invalid | %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 | InvalidScene.NotFound | %s, please check and try again later. | Scene不存在,請檢查後重試。 |
| 404 | InvalidLayout.NotFound | %s, please check and try again later. | LayoutId不存在,請檢查後重試。 |
| 404 | InvalidComponent.NotFound | %s, please check and try again later. | 待操作的元件不存在,請檢查後重試。 |
| 404 | ResourceInChannel.NotFound | %s, please check and try again later. | 資源不存在,請檢查後重試。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。