媒资拉取上传完成
更新时间:2024-11-25
事件类型名称
MEDIA_FETCH_COMPLETE
事件说明
当用户开启了该类型事件通知,并且在VOD内拉取上传媒资完成后,VOD将会发送该事件回调到用户指定的地址。事件回调的具体内容为MediaFetchCompleteEvent 结构。
回调示例
VOD通过HTTP请求发送事件回调,请求采用POST方法,请求内容在BODY中,回调的数据结构为CallbackEvent,如下所示(省略了值为 null 的字段)。
{
"eventId": "evt-ekmwqw2ev1vqbkgc",
"eventType": "MEDIA_FETCH_COMPLETE",
"eventTime": "2024-11-12T12:00:19Z",
"mediaTranscodeCompleteEvent": {
"taskId": "tsk-ekmv2v0z45mctj3m",
"status": "SUCCESS",
"createTime": "2024-11-12T11:59:19Z",
"finishTime": "2024-11-12T12:00:17Z",
"fetchTaskInfo": {
"url": "https://test.com/fetch_test.mp4",
"coverUrl": "https://test.com/fetch_cover_test.jpg",
"mediaBasicInfo": {
"mediaId": "mda-ekkt369ihnhei80d",
"name": "test1",
"description": "",
"mediaType": "video",
"banStatus": "NORMAL",
"createTime": "2024-11-11T09:27:41Z",
"source": {
"sourceType": "UPLOAD",
"sourceUrl": "https://vod.example.com/mda-ekkt369ihnhei80d/test1.mp4"
}
},
"presetTaskId": "tsk-ekpmvg5dqiu96d37"
}
}
}