帮助列表 |
快剪合并接口
https://openapi.aodianyun.com/v3/NCES.Put
POST
Content-Type: application/x-www-form-urlencoded
access_id:安全校验ID,值为字符串。必选
示例:”123456789”
expires:过期时间,值为10位时间戳。必选
示例:”ABCDEFG”
signature_nonce:任意随机数,例如:UUID等,值为字符串。必选
示例:”59b7426a65843”
signature:签名字符串,生成规则,将access_key、expires、signature_nonce这三个参数直接拼接进行md5加密,如下所示。必选
示例:md5({$access_id}+{$expires}+{$signature_nonce})
thumbnail:封面图,从合并的视频列表中任选一张。必选
示例:“http://cdn.dvr.aodianyun.com/pic/live-vod/images/demo.monitor.1505177969”
content:合并完成的m3u8内容,值为字符串。必选
示例:”ERSION:3\n#EXT-X-MEDIA-SEQUENCE:0\n#EXT-X-ALLOW-CACHE:YES\n#EXT-X-TARGETDURATION:4\n...#EXT-X-ENDLIST”
hosts:合并视频涉及到的host列表,实际有多少个host都带上。必选
示例:["xxx.live-vod.cdn.aodianyun.com"]
curl -X POST \
https://openapi.aodianyun.com/v3/NCES.Put \-H "Content-Type: application/x-www-form-urlencoded" \
-d '{"access_id":"123456789","expires":"1505268714","signature":"1e51cfd8a0f2dd8ec7a851244f1de83b",
"signature_nonce":"59b7426a65843","hosts":["xxx.live-vod.cdn.aodianyun.com"],"thumbnail":"http://cdn.dvr.aodianyun.com/pic/live-vod/images/demo.monitor.1505177969","content":"ERSION:3\n#EXT-X-MEDIA-SEQUENCE:0\n#EXT-X-ALLOW-CACHE:YES\n#EXT-X-TARGETDURATION:4\n...#EXT-X-ENDLIST"}'
Flag:操作处理结果状态码
示例:”Flag”:100。提示:Flag=100为成功,失败为非100,失败原因在FlagString中体现。
FlagString:操作处理结果状态说明
示例:“FlagString”:“上传处理成功”
{
"Flag": 100,
"FlagString": "上传处理成功",
"id":"xxxxxxx",
"duration": "60",
"thumbnail":"http://cdn.dvr.aodianyun.com/pic/live-vod/images/demo.monitor.1505177969",
"location": "http://*.aodianyun.com/*/test.flv"
}
您可以使用奥点云开放平台提供的API接口调试工具进行接口调试。
请登录:https://openapi.aodianyun.com/tools