接口描述 |
推送数据到CP指定URL |
接口地址 |
CP指定URL |
接口协议 |
HTTP POST |
HTTP HEADER |
Content-Type=application/json |
通知类型
名称 |
说明 |
数据类型 |
最大长度 |
可空 |
type |
通知类型(vod_status) |
String |
20 |
否 |
channel_web_id |
视频webid |
String |
100 |
否 |
title |
标题 |
String |
100 |
否 |
transcode |
封装状态码(参照视频转码状态表) |
String |
10 |
否 |
duration |
视频时长(单位:秒) |
Integer |
10 |
是 |
screenshot |
视频截图 |
String |
200 |
是 |
msg |
转码错误原因 |
String |
50 |
是 |
current_timestamp |
当前UNIX时间戳(单位:毫秒) |
Integer |
10 |
否 |
file_size |
成片文件大小(单位:字节) |
Integer |
10 |
是 |
ft |
成片清晰度([0-3] 清晰度依次递增) |
Integer |
10 |
是 |
porn_rate |
鉴黄概率 |
DOUBLE |
10 |
是 |
名称 |
说明 |
数据类型 |
最大长度 |
可空 |
type |
通知类型(vod_screenshot) |
String |
20 |
否 |
channel_web_id |
视频webid |
String |
100 |
否 |
title |
标题 |
String |
100 |
否 |
screenshot |
视频截图 |
String |
200 |
否 |
current_timestamp |
当前UNIX时间戳(单位:毫秒) |
Integer |
10 |
否 |
POST: /callback HTTP/1.1
Host: xx.com
Content-Type: text/html; charset=UTF-8
Prmts-Sign: 7a88d5530258e32240f9280324b7c1dd
{
"type":"vod_status",
"channel_web_id":"0a2dnq6apaajoKqL4K2eoKmZo-ydoKuZpaih",
"title":"vod",
"transcode":"success",
"duration":56,
"screenshot":"",
"msg":"",
"current_timestamp": 1481766285
}
http status 200 ok
无
Prmts-Sign 作为 request header 传输
Prmts-Sign 请注意兼容大小写