事件名称
SnapshotComplete
事件说明
视频截图完成。
示例
{
"eventTime":"2017-03-20T07:49:17Z",
"eventType":"SnapshotComplete",
"workflowId":"1000010",
"taskId":"0003#de3485118429465b99a794951ffd4310",
"originalFileUrl":"https://sample.gdoss.xstore.ctyun.cn/mediatest/1.mp4",
"status": "SUCCESS",
"taskMessage":"写入文件失败",
"snapshotInfo":{
"snapshotTemplateID": "100000000102",
"watermarkTemplateID": "100000000005",
"snapshotType": "NormalSnapshot",
"timeList": ["00.0", "10.0", "20.0"],
"snapshotRegular": "https://sample.gdoss.xstore.ctyun.cn/990f3820db2948b5b4a13d65d9a4****-{time}.jpg",
"webVTTUrl": "https://sample.gdoss.xstore.ctyun.cn/990f3820db2948b5b4a13d65.vtt"
}
}
返回数据描述
名称 |
示例值 |
描述 |
eventTime |
2017-03-20T07:49:17Z |
事件触发时间,为 UTC 时间,如 yyyy-MM-ddTHH:mm:ssZ。 |
eventType |
SnapshotComplete |
回调事件类型。 |
workflowId |
1000010 |
工作流ID。 |
taskId |
0003#fgty85118429465b99a794951ffd4310 |
任务ID类型。 |
originalFileUrl |
https://sample.gdoss.xstore.ctyun.cn/mediatest/1.mp4 |
源文件访问地址(不带签名,若为私有权限需使用带预签名url进行访问)。 |
status |
SUCCESS |
任务状态:SUCCESS-成功;FAIL-失败。 |
taskMessage |
写入文件失败 |
回调信息:任务失败时为失败原因;成功时为:任务成功。 |
snapshotInfo |
|
视频截图结果详情。详细信息见表snapshotInfo。 |
表snapshotInfo
名称 |
示例值 |
描述 |
snapshotTemplateID |
100000000102 |
截图模版ID。 |
watermarkTemplateID |
100000000021 |
水印模板ID,若没有进行水印截图则没有该字段。 |
snapshotType |
NormalSnapshot |
截图类型: NormalSnapshot-时间点截图;SpriteSnapshot-雪碧截图;WebVTTSnapshot-WebVTT截图;SampleSnapshot-采样截图。 |
timeList |
["00.0", "10.0", "20.0"] |
截图图片时间点序列。 |
snapshotRegular |
https://sample.gdoss.xstore.ctyun.cn/990f3820db2948b5b4a13d65d9a4****-{time}.jpg |
截图访问通用地址,使用timeList中元素替换time即为某时间点图片访问地址。 |
webVTTUrl |
https://sample.gdoss.xstore.ctyun.cn/990f3820db2948b5b4a13d65.vtt |
WebVTT地址,WebVTT截图时才有该字段。 |