閱讀759 返回首頁    go windows


創建錄製索引文件__直播流操作接口_API 手冊_CDN-阿裏雲

描述

創建錄製索引文件

請求參數

參數 類型 必須? 描述
Action String 操作接口名,係統規定參數,取值:CreateLiveStreamRecordIndexFiles
DomainName String 您的播流域名
AppName String 直播流所屬應用名稱
StreamName String 直播流名稱
OssEndpoint String oss endpoint,如:oss-cn-hangzhou.aliyuncs.com,詳細請參照oss相關文檔
OssBucket String oss存儲bucket名稱
OssObject String oss存儲的錄製文件名
StartTime String 開始時間,格式:2015-12-01T17:36:00Z
EndTime String 結束時間,格式:2015-12-01T17:36:00Z

返回參數

返回參數

名稱 類型 描述
RecordInfoList RecordInfo[] 錄製配置

數據類型

RecordInfo

名稱 類型 描述
RecordId String 索引文件Id
RecordUrl String 索引文件地址
DomainName String 流所屬加速域名
AppName String 流所屬應用名稱
StreamName String 直播流名稱
OssEndpoint String oss endpoit
OssBucket String oss存儲bucket名稱
OssObject String oss存儲的錄製文件名
CreateTime String 創建時間
StartTime String 開始時間,格式:2015-12-01T17:36:00Z
EndTime String 結束時間,格式:2015-12-01T17:36:00Z
Duration String 錄製時長,單位:秒
Height String 視頻高
Width String 視頻寬
CreateTime String 創建時間

特殊錯誤碼

錯誤代碼 描述 Http 狀態碼 語義
InvalidDomain.NotFound The domain provided does not exist in our records. 404 當前賬戶下未查到域名
InvalidStartTime.Malformed Specified StartTime is malformed. 400 開始時間錯誤
InvalidEndTime.Malformed Specified EndTime is malformed. 400 結束時間錯誤
InvalidEndTime.Mismatch pecified end time does not math the specified start time. 400 結束時間與開始時間不匹配
RecordIndexConfig.Conflict The config is conflict. 400 配置衝突
RecordContent.Missing The specified record content is missing. 400 沒有對應的錄製文件

示例

請求示例:

  1. https://cdn.aliyuncs.com?Action=CreateLiveStreamRecordIndexFiles&DomainName=xxxxx&AppName=aliyuntest&StreamName=xxx&OssEndpoint=oss-cn-hangzhou.aliyuncs.com&OssBucket=xxx&OssObject=atestObject.m3u8&StartTime=xxx&EndTime=xxx&<公共請求參數>

返回示例

JSON格式:

  1. {
  2. "RequestId": "550439A3-F8EC-4CA2-BB62-B9DB43EEEF30",
  3. "RecordInfo": {
  4. "RecordId": "c4d7f0a4-b506-43f9-8de3-07732c3f3d82",
  5. "CreateTime": "2016-05-27T09:40:56Z",
  6. "Duration": 588.849,
  7. "Height": 480,
  8. "Width": 640,
  9. "RecordUrl": "https://xxx.xxx/atestObject.m3u8"
  10. }
  11. }

最後更新:2016-11-23 17:16:09

  上一篇:go 添加APP錄製配置__直播流操作接口_API 手冊_CDN-阿裏雲
  下一篇:go 刪除APP錄製配置__直播流操作接口_API 手冊_CDN-阿裏雲