视频截取雪碧图完成

最近更新时间:2019-03-19 11:46:42

事件名称

CreateImageSpriteComplete。

事件说明

当 App 配置了事件通知后,在视频截取雪碧图完成完成后,App 后台即可通过“普通回调”或“可靠回调”的方式获取该事件通知。事件通知内容为 CreateImageSpriteTask2017 结构

示例

普通回调

如果选择普通回调模式,则回调 URL 会接收到如下形式的 HTTP 请求。

{
    "EventType":"CreateImageSpriteComplete",
    "FileUploadEvent":null,
    "ProcedureStateChangeEvent":null,
    "FileDeleteEvent":null,
    "PullCompleteEvent":null,
    "EditMediaComplete":null,
    "WechatPublishComplete":null,
    "TranscodeCompleteEvent":null,
    "ConcatCompleteEvent":null,
    "ClipCompleteEvent":null,
    "CreateImageSpriteCompleteEvent":{
        "ErrCode":0,
        "Message":"",
        "TaskId":"CreateImageSprite-1edb7eb88a599d05abe451cfc541cfbd",
        "FileId":"14508071098244929440",
        "Definition":10,
        "TotalCount":106,
        "ImageSpriteUrlSet":[
            "http://125676836723.vod2.myqcloud.com/xxx/xxx/1.png",
            "http://125676836723.vod2.myqcloud.com/xxx/xxx/2.png"
        ],
        "WebVttUrl":"http://125676836723.vod2.myqcloud.com/xxx/xxx/xxx.vtt"
    }
}

可靠回调

如果选择可靠回调模式,调用 拉取事件通知 API 会接收到如下形式的 HTTP 应答。

{
    "Response":{
        "EventSet":[
            {
                "EventHandle":"EventHandle.N",
                "EventType":"CreateImageSpriteComplete",
                "FileUploadEvent":null,
                "ProcedureStateChangeEvent":null,
                "FileDeleteEvent":null,
                "PullCompleteEvent":null,
                "EditMediaComplete":null,
                "WechatPublishComplete":null,
                "TranscodeCompleteEvent":null,
                "ConcatCompleteEvent":null,
                "ClipCompleteEvent":null,
                "CreateImageSpriteCompleteEvent":{
                    "ErrCode":0,
                    "Message":"",
                    "TaskId":"CreateImageSprite-1edb7eb88a599d05abe451cfc541cfbd",
                    "FileId":"14508071098244929440",
                    "Definition":10,
                    "TotalCount":106,
                    "ImageSpriteUrlSet":[
                        "http://125676836723.vod2.myqcloud.com/xxx/xxx/1.png",
                        "http://125676836723.vod2.myqcloud.com/xxx/xxx/2.png"
                    ],
                    "WebVttUrl":"http://125676836723.vod2.myqcloud.com/xxx/xxx/xxx.vtt"
                }
            }
        ],
        "RequestId": "335bdaa3-db0e-46ce-9946-51941d9cb0f5"
    }
}