This topic describes the AIMediaDNAComplete event along with its notification content and sample callbacks.
Event type
AIMediaDNAComplete
Event description
The AIMediaDNAComplete event is generated after media fingerprinting jobs are complete.
The AIMediaDNAComplete event corresponds to the Video AI Processing Completed event in the ApsaraVideo VOD console.
Event notification content
Parameter Name | Type | Required | Description |
EventTime | String | Yes | The time when the event was generated. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:SSSZ format. The time is displayed in UTC. |
EventType | String | Yes | The type of the event. This is a required parameter. The value is fixed to AIMediaDNAComplete. |
JobId | String | Yes | The job ID is the JobId that is returned by the API when you submit a DNA job. |
MediaId | String | Yes | The ID of the video. |
Status | String | Yes | Job status.
|
Code | String | No | The error code that is returned when the job fails. |
Message | String | No | The error message. This parameter is returned when an error occurs in the video fingerprinting job. |
Data | String | Yes | The result of the media fingerprinting job is a JSON object. For more information about the structure, see Media fingerprint results. |
CompleteTime | string | Yes | The time when the transcoding task was complete. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
Sample callbacks
Callback example:
For an HTTP callback, the following example is the message body of the HTTP POST request.
For an MNS callback, the following example is the message body.
{
"EventTime": "2017-03-20T07:49:17:025Z",
"EventType": "AIMediaDNAComplete",
"CompleteTime":"2017-03-20T07:49:35Z",
"JobId": "88c6ca184c0edj384a5b665e2a12****",
"MediaId": "3D12340d92cjsw83k1fab46a0b847fd****",
"Status": "success",
"Code": "0",
"Message": "OK",
"Data": "{\"VideoDNA\":[{\"Similarity\":\"0.99\",\"PrimaryKey\":\"7a1d275cc8da4jw93mkde0e182e80****\",\"Detail\":[{\"Input\":{\"Start\":\"0.0\",\"Duration\":\"14.0\"},\"Duplication\":{\"Start\":\"0.5\",\"Duration\":\"14.4\"}}]}]}"
}