Video Pull from URL Completion

Last updated: 2020-03-12 16:38:16
    • This document describes the callback on version 3.0. For legacy callback on version 2.0, please see Legacy Callback.
    • You are recommended to gradually migrate the callback to v3.0, as the documentation for callback v2.0 will no longer be updated.

    Event Name

    PullComplete

    Event Description

    If the application is configured with event notification, after a video pull upload is completed, the application backend can get an event notification through "normal callback" or "reliable callback". The content of the event notification is the PullComplete structure.

    Examples

    Normal callback

    If you choose the normal callback mode, the callback URL will receive an HTTP POST request from VOD, and its content is in the BODY as shown below (the fields with null value are omitted):

    {
        "version": "4.0", 
        "eventType": "PullComplete", 
        "data": {
            "TaskId": "Pull-f5ac8127b3b6b85cdc13f237c6005d8", 
            "ErrCode": 0, 
            "Message": "SUCCESS", 
            "FileId": "14508071098244959037", 
            "MediaBasicInfo": {
                "FileId": "14508071098244959037", 
                "MediaBasicInfo": {
                    "Name": "Animal World", 
                    "Description": "", 
                    "CreateTime": "2019-01-09T16:36:22Z", 
                    "UpdateTime": "2019-01-09T16:36:24Z", 
                    "ExpireTime": "9999-12-31T23:59:59Z", 
                    "ClassId": 0, 
                    "ClassName": "Other", 
                    "ClassPath": "Other", 
                    "CoverUrl": "", 
                    "Type": "mp4", 
                    "MediaUrl": "http://125676836723.vod2.myqcloud.com/xxx/xxx/xxx.mp4", 
                    "TagSet": [ ], 
                    "StorageRegion": "ap-guangzhou-2", 
                    "SourceInfo": {
                        "SourceType": "Upload", 
                        "SourceContext": ""
                    }, 
                    "Vid": ""
                }
            }, 
            "FileUrl": "http://125676836723.vod2.myqcloud.com/xxx/xxx/xxx.mp4", 
            "ProcedureTaskId": ""
        }
    }

    Reliable callback

    If you choose the reliable callback mode, after the event notification puling API is called, an HTTP response in the following format will be received (the fields with null values are omitted).

    {
        "Response": {
            "EventSet": [
                {
                    "EventHandle": "EventHandleX", 
                    "EventType": "PullComplete", 
                    "PullCompleteEvent": {
                        "TaskId": "Pull-f5ac8127b3b6b85cdc13f237c6005d8", 
                        "ErrCode": 0, 
                        "Message": "SUCCESS", 
                        "FileId": "14508071098244959037", 
                        "MediaBasicInfo": {
                            "FileId": "14508071098244959037", 
                            "MediaBasicInfo": {
                                "Name": "Animal World", 
                                "Description": "", 
                                "CreateTime": "2019-01-09T16:36:22Z", 
                                "UpdateTime": "2019-01-09T16:36:24Z", 
                                "ExpireTime": "9999-12-31T23:59:59Z", 
                                "ClassId": 0, 
                                "ClassName": "Other", 
                                "ClassPath": "Other", 
                                "CoverUrl": "", 
                                "Type": "mp4", 
                                "MediaUrl": "http://125676836723.vod2.myqcloud.com/xxx/xxx/xxx.mp4", 
                                "TagSet": [ ], 
                                "StorageRegion": "ap-guangzhou-2", 
                                "SourceInfo": {
                                    "SourceType": "Upload", 
                                    "SourceContext": ""
                                }, 
                                "Vid": ""
                            }
                        }, 
                        "FileUrl": "http://125676836723.vod2.myqcloud.com/xxx/xxx/xxx.mp4", 
                        "ProcedureTaskId": ""
                    }
                }
            ]
        }
    }

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help