All Products
Search
Document Center

ApsaraVideo VOD:AIMediaDNAComplete

Last Updated:Apr 01, 2024

This topic describes the AIMediaDNAComplete event as well as its notification content and sample callbacks.

Event type

AIMediaDNAComplete

Event description

The AIMediaDNAComplete event is generated after video fingerprinting jobs are complete.

Note You must select the AI Processing Completed event in the ApsaraVideo VOD console to receive the AIMediaDNAComplete event notification.

Event notification content

ParameterTypeRequiredDescription
EventTimeStringYesThe time when the event was generated. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.
EventTypeStringYesThe event type. The value is AIMediaDNAComplete.
JobIdStringYesThe ID of the video fingerprinting job. The value is the same as the JobId value returned by the SubmitAIJob operation.
MediaIdStringYesThe ID of the video.
StatusStringYesThe status of the job. Valid values:
  • success
  • fail
CodeStringNoThe error code. This parameter is returned when an error occurs in the video fingerprinting job.
MessageStringNoThe error message. This parameter is returned when an error occurs in the video fingerprinting job.
DataStringYesThe result of the video fingerprinting job. The value is a JSON string. For more information, see the "AIMediaDNAResult" section of the Parameters of video AI topic.

Sample callbacks

Description:

  • 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:17Z",
    "EventType": "AIMediaDNAComplete",
    "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\"}}]}]}"
}