视频剪辑完成

最近更新时间:2019-07-04 16:39:16

事件名称

ClipComplete

事件说明

当 App 配置了事件通知,并且在视频剪辑完成后,App 后台即可通过“普通回调”或“可靠回调”的方式获取该事件通知。事件通知内容为 ClipTask2017 结构

普通回调

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

{
    "EventType":"ClipComplete",
    "FileUploadEvent":null,
    "ProcedureStateChangeEvent":null,
    "FileDeleteEvent":null,
    "PullCompleteEvent":null,
    "EditMediaComplete":null,
    "WechatPublishComplete":null,
    "TranscodeCompleteEvent":null,
    "ConcatCompleteEvent":null,
    "ClipCompleteEvent":{
        "TaskId":"clipVideo-0a78cf44c4285026a4c",
        "SrcFileId":"16092504232103571364",
        "FileInfo":{
            "ErrCode":0,
            "Message":"",
            "FileId":"14508071098244929440",
            "FileUrl":"http://125676836723.vod2.myqcloud.com/xxx/xxx/f0.mp4",
            "FileType":"mp4"
        }
    },
    "CreateImageSpriteCompleteEvent":null,
    "SnapshotByTimeOffsetCompleteEvent":null
}

可靠回调

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

{
    "Response":{
        "EventSet":[
            {
                "EventHandle":"EventHandle.N",
                "EventType":"ClipComplete",
                "FileUploadEvent":null,
                "ProcedureStateChangeEvent":null,
                "FileDeleteEvent":null,
                "PullCompleteEvent":null,
                "EditMediaComplete":null,
                "WechatPublishComplete":null,
                "TranscodeCompleteEvent":null,
                "ConcatCompleteEvent":null,
                "ClipCompleteEvent":{
                    "TaskId":"clipVideo-0a78cf44c4285026a4c",
                    "SrcFileId":"16092504232103571364",
                    "FileInfo":{
                        "ErrCode":0,
                        "Message":"",
                        "FileId":"14508071098244929440",
                        "FileUrl":"http://125676836723.vod2.myqcloud.com/xxx/xxx/f0.mp4",
                        "FileType":"mp4"
                    }
                },
                "CreateImageSpriteCompleteEvent":null,
                "SnapshotByTimeOffsetCompleteEvent":null
            }
        ],
        "RequestId": "335bdaa3-db0e-46ce-9946-51941d9cb0f5"
    }
}