調用GetLiveRecordTemplate獲取即時錄製範本明細或任務範本快照。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ice:GetLiveRecordTemplate |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| TemplateId |
string |
是 |
範本 ID。 |
69e1f9fe-1e97-11ed-ba64-0c42a1b73d66 |
| JobId |
string |
否 |
錄製任務 ID。傳入 JobId 獲取該任務使用的範本快照。 |
ab0e3e76-1e9d-11ed-ba64-0c42a1b73d66 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RecordTemplate |
object |
錄製範本。 |
|
| RecordFormatList |
array<object> |
錄製格式列表。 |
|
|
object |
錄製格式。 |
||
| Format |
string |
The output file format. |
m3u8 |
| OssObjectPrefix |
string |
The name of the recording file that is stored in Object Storage Service (OSS). |
record/{JobId}/{Sequence}{EscapedStartTime}{EscapedEndTime} |
| SliceOssObjectPrefix |
string |
The name of the TS segment. |
record/{JobId}/{UnixTimestamp}_{Sequence} |
| CycleDuration |
integer |
The duration of the recording cycle. Unit: seconds. If you do not specify this parameter, the default value 6 hours is used. |
7200 |
| SliceDuration |
integer |
The duration of a single segment. Unit: seconds. |
30 |
| CreateTime |
string |
建立時間。 |
2022-07-20T03:26:36Z |
| LastModified |
string |
最後修改時間。 |
2022-07-20T03:26:36Z |
| TemplateId |
string |
範本 ID。 |
69e1f9fe-1e97-11ed-ba64-0c42a1b73d66 |
| Name |
string |
範本名稱。 |
test template |
| Type |
string |
範本類型。 枚舉值:
|
custom |
| RequestId |
string |
請求 ID。 |
C892855F-95DF-50D6-A28C-279ABDB76810 |
樣本
正常返回樣本
JSON格式
{
"RecordTemplate": {
"RecordFormatList": [
{
"Format": "m3u8",
"OssObjectPrefix": "record/{JobId}/{Sequence}{EscapedStartTime}{EscapedEndTime}",
"SliceOssObjectPrefix": "record/{JobId}/{UnixTimestamp}_{Sequence}",
"CycleDuration": 7200,
"SliceDuration": 30
}
],
"CreateTime": "2022-07-20T03:26:36Z",
"LastModified": "2022-07-20T03:26:36Z",
"TemplateId": "69e1f9fe-1e97-11ed-ba64-0c42a1b73d66",
"Name": "test template",
"Type": "custom"
},
"RequestId": "C892855F-95DF-50D6-A28C-279ABDB76810"
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。