The AIMediaDNAComplete event is triggered when a media fingerprinting job is complete. This event includes notification content and sample callbacks.
Event type
AIMediaDNAComplete
Event description
The AIMediaDNAComplete event is generated when 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, in the yyyy-MM-ddThh:mm:SSSZ format (UTC, ISO 8601). |
|
EventType |
String |
Yes |
The event type. The value is fixed to AIMediaDNAComplete. |
|
JobId |
String |
Yes |
The job ID returned by the API when you submit a media fingerprinting job. |
|
MediaId |
String |
Yes |
The video ID. |
|
Status |
String |
Yes |
The job status.
|
|
Code |
String |
No |
The error code returned when the job fails. |
|
Message |
String |
No |
The error message returned when the media fingerprinting job fails. |
|
Data |
String |
Yes |
The media fingerprinting result as a JSON object. For more information, see Media fingerprint results. |
|
CompleteTime |
string |
Yes |
The time when the media fingerprinting job was complete, in the yyyy-MM-ddTHH:mm:ssZ format (UTC, ISO 8601). |
Sample callbacks
The following example shows a callback message body:
-
For an HTTP callback, the following example shows the body of the HTTP POST request.
-
For an MNS callback, the following example shows 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\"}}]}]}"
}