調用UpdateLivePackageConfig更新直播封裝配置。
介面說明
調用本介面更新直播封裝配置,重新推流後生效。
QPS 限制
本介面的單使用者 QPS 限制為 300 次/分鐘。超過限制,API 呼叫會被限流,這可能會影響您的業務,請合理調用。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
live:UpdateLivePackageConfig |
*Domain
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
否 |
地區 ID。 |
cn-shanghai |
| DomainName |
string |
是 |
直播網域名稱(主播放網域名稱)。 |
example.com |
| AppName |
string |
是 |
AppName 名稱與推流地址中的 AppName 名稱對應,模板才會生效。不超過 255 字元,支援數字、大小寫字母、虛線(-)、底線(_),虛線、底線不能位於首位。也支援取值為單個星號(*)字元,即可匹配所有 AppName。 |
AppName |
| StreamName |
string |
是 |
StreamName 名稱與推流地址中的 StreamName 名稱對應,模板才會生效。不超過 255 字元,支援數字、大小寫字母、虛線(-)、底線(_),虛線、底線不能位於首位。也支援取值為單個星號(*)字元,即可匹配所有 StreamName。 |
StreamName |
| Protocol |
string |
是 |
直播協議與封裝格式。取值:
|
HLS_CMAF |
| SegmentNum |
integer |
是 |
直播 M3U8 切片個數。取值範圍:3~10。 |
3 |
| SegmentDuration |
integer |
是 |
切片時間長度,單位:秒。
|
5 |
| PartDuration |
integer |
否 |
Part 切片時間長度,單位:毫秒。 說明
當 Protocol 為 LLHLS_*時,該參數為必填項。
|
350 |
| IgnoreTranscode |
boolean |
否 |
是否忽略轉碼流,取值:
|
true |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | MissingParam | %s, please check and try again later. | 參數缺失,請檢查後重試。 |
| 400 | InvalidParams | %s, please check and try again later. | 參數無效,請檢查後重試。 |
| 400 | InvalidProtocol | %s, please check and try again later. | 參數Protocol無效,請檢查後重試。 |
| 400 | InvalidSegmentNum | %s, please check and try again later. | 參數SegmentNum無效,請檢查後重試。 |
| 400 | InvalidSegmentDuration | %s, please check and try again later. | 參數SegmentDuration無效,請檢查後重試。 |
| 400 | InvalidPartDuration | %s, please check and try again later. | 參數PartDuration無效,請檢查後重試。 |
| 500 | InternalErr | %s, please try again. | 內部錯誤,請稍後重試。 |
| 404 | ConfigNotFound | %s, please check and try again. | 配置不存在,請檢查後重試。 |
| 409 | ConfigConflicts | %s, please check and try again later. | 配置衝突,請檢查後重試。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。