媒资转码完成
更新时间:2024-11-25
事件类型名称
MEDIA_TRANSCODE_COMPLETE
事件说明
当用户开启了该类型事件通知,并且在VOD内转码处理完成后,VOD将会发送该事件回调到用户指定的地址。事件回调的具体内容为MediaTranscodeCompleteEvent 结构。
回调示例
VOD通过HTTP请求发送事件回调,请求采用POST方法,请求内容在BODY中,回调的数据结构为CallbackEvent,如下所示(省略了值为 null 的字段)。
{
"eventId": "evt-ekmwqw2ev1vqbkgc",
"eventType": "MEDIA_TRANSCODE_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",
"beginProcessTime": "2024-11-12T11:59:32Z",
"transcodeTaskInfo": {
"mediaId": "mda-ekkvjzykbhg19fyz",
"transcodeInput": {
"presetId": "eiymfnmgs8a9i09r37v4"
},
"transcodeOutput": {
"id": "eiymfnmgs8a9i09r37v4",
"url": "https://test.com/test.mp4",
"meta": {
"video": {
"durationInSeconds": 25,
"durationInMilliSeconds": 24880,
"sizeInKiloByte": 753.983398,
"widthInPixel": 640,
"heightInPixel": 360,
"frameRate": 25,
"gopAlign": false,
"mp4MoovSize": 13894
},
"audio": {
"sampleRateInHz": 44100,
"channels": 2
}
}
}
}
}
}