All Products
Search
Document Center

ApsaraVideo VOD:AIMediaDNAComplete

Last Updated:Jun 17, 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 media 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

Parameter

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 event type. The value is AIMediaDNAComplete.

JobId

String

Yes

The ID of the video fingerprinting job. The value is the same as the JobId value returned by the SubmitAIJob operation.

MediaId

String

Yes

The ID of the video.

Status

String

Yes

The status of the job. Valid values:

  • success

  • fail

Code

String

No

The error code. This parameter is returned when an error occurs in the video fingerprinting job.

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 video fingerprinting job. The value is a JSON string. For more information, see the "AIMediaDNAResult" section of the Parameters of video AI topic.

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

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: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\"}}]}]}"
}