手動切換節目。
介面說明
新增節目完成並開啟直播後,可呼叫本介面切換節目。使用 API 新增節目,請參閱新增一個節目到節目單。
QPS 限制
本介面的單一使用者 QPS 限制為 10 次/秒。超過限制時,API 呼叫會被限流,這可能會影響您的業務,請合理呼叫。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
live:PlayChoosenShow |
none |
*Caster
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
否 |
地域 ID。 |
cn-shanghai |
| CasterId |
string |
是 |
導播台 ID。
說明
|
LIVEPRODUCER_POST-cn-0pp1czt**** |
| ShowId |
string |
是 |
需要播放切換的節目 ID。 說明
透過檢視 AddShowIntoShowList 或 DescribeShowList 介面的返回參數取得 ShowId 值。 |
a2b8e671-2fe5-4642-a2ec-bf93880e**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
| ShowId |
string |
節目 ID。 |
a2b8e671-2fe5-4642-a2ec-bf93880e**** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8",
"ShowId": "a2b8e671-2fe5-4642-a2ec-bf93880e****"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidUserId.Malformed | %s, please check userId. | 傳入的userId無效,請檢查。 |
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | 存在無效參數:%s。 |
| 400 | InvalidCasterId.Malformed | %s, please check and try again later. | 參數CasterId無效,請檢查後重試。 |
| 400 | IncorrectCasterStatus | %s, please check and try again later. | 導播台狀態有誤,請檢查後重試。 |
| 400 | MissingParameter | %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 | InvalidShowList.NotFound | %s, please check and try again later. | ShowList不存在,請檢查後重試。 |
| 404 | InvalidShow.NotFound | %s, please check and try again later. | Show不存在,請檢查後重試。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。