更新直播錄製轉點播配置。
介面說明
本介面的單使用者 QPS 限制為 1000 次/分鐘。超過限制,API 呼叫會被限流,這可能會影響您的業務,請合理調用。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
live:UpdateLiveRecordVodConfig |
update |
*Domain
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
否 |
地區 ID。 |
cn-shanghai |
| DomainName |
string |
是 |
主播流網域名稱。 |
example.com |
| AppName |
string |
是 |
播流所屬應用程式名稱。您可在流管理頁面查看 AppName。 |
testName |
| StreamName |
string |
否 |
播流名稱。您可在流管理頁面查看 StreamName。 |
stream |
| VodTranscodeGroupId |
string |
否 |
重要 當使用按格式配置功能,即傳入 RecordFormat 參數時,此參數無效,可不傳 |
e2d796d3bb5fd8049d32bff62f94**** |
| CycleDuration |
integer |
否 |
周期錄製時間長度。單位:秒。預設值為 3600,取值範圍:300~21600。 |
300 |
| AutoCompose |
string |
否 |
重要 當使用按格式配置功能,即傳入 RecordFormat 參數時,此參數無效,可不傳
|
OFF |
| ComposeVodTranscodeGroupId |
string |
否 |
重要 當使用按格式配置功能,即傳入 RecordFormat 參數時,此參數無效,可不傳 說明
通過 查詢轉碼配置列表 擷取 |
***** |
| OnDemand |
integer |
否 |
按需錄製,取值:
|
0 |
| DelayTime |
integer |
否 |
斷流拼接時間長度, 直播斷流時間長度超過設定的拼接時間長度後,將會產生新檔案,斷流拼接時間長度支援 15~21600 秒。 |
180 |
| RecordFormat |
array<object> |
否 |
按格式配置錄製參數列表 |
|
|
object |
否 |
錄製格式配置 重要 RecordFormat 內部的錄製格式不支援更新,如原有配置中的 RecordFormat 包含儲存格式 m3u8 和 flv,那麼僅可對這兩個格式下的配置參數進行修改,不能通過本介面更新儲存格式為 m3u8,flv,mp4 |
||
| Format |
string |
否 |
錄製儲存格式 |
m3u8 |
| SliceDuration |
integer |
否 |
單個切片時間長度,單位:秒 重要 當 RecordFormat.N.Format(格式)設為 m3u8 時,本參數才有效。 |
30 |
| AutoCompose |
string |
否 |
自動合并,設定為 ON 表示開啟自動合并。取值:
|
ON |
| VideoProcess |
string |
否 |
視頻處理源。取值:
如需同時處理源視頻和合并後視頻,請將兩個取值同時傳入,以","分隔,如 origin,compose |
origin |
| ProcessMethod |
string |
否 |
視頻處理方式。取值:
|
transcode |
| ProcessTemplateId |
string |
否 |
視頻處理轉碼模版組 Id 或工作流程模版 Id 說明
此處傳入的 Id 必須與 ProcessMethod 傳入的視頻處理方式對應,即 ProcessMethod 傳入 transcode,此處應使用轉碼模版組 Id |
e2d796d3bb5fd8049d32bff62f94**** |
| Tags |
string |
否 |
視頻分類標籤 |
sports |
| TranscodeTemplates |
array |
否 |
轉碼模版組列表 |
|
|
string |
否 |
說明
TranscodeTemplates 不允許傳入 raw,屬於保留標識。 RepeatList 表示為 TranscodeTemplates.N 中的 N,可理解為遞增進行多個設定,如: TranscodeTemplates.1=sd, TranscodeTemplates.2=hd。 |
sd |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
61C96B9A-F203-4EC5-8E43-CB92E68F67DF |
樣本
正常返回樣本
JSON格式
{
"RequestId": "61C96B9A-F203-4EC5-8E43-CB92E68F67DF"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | ConfigAlreadyExists | Config has already exist. | |
| 400 | CommomLiveRcordConfigExisted | Commom liverecord config has already exist. | |
| 400 | InvalidAutoCompose.Malformed | Specified parameter AutoCompose is not valid. | |
| 400 | InvalidAutoComposeAndComposeVodTranscodeGroupId.Malformed | Specified parameter AutoCompose and ComposeVodTranscodeGroupId is not valid, must both empty or input | |
| 400 | InvalidParam | %s. | 參數校正失敗 |
| 500 | InternalError | The request processing has failed due to backend service exception. | |
| 403 | InvalidRegion.Conflict | Specified parameter StorageLocation and Region is not match | |
| 404 | InvalidStorage.NotFound | Specified parameter StorageLocation is not exist | |
| 404 | InvalidTemplateGroupId.NotFound | Specified parameter vodTranscodeGroupId or composeVodTranscodeGroupId is not exist |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。