All Products
Search
Document Center

AIMediaDNAComplete

Last Updated: Aug 01, 2019

Event type

AIMediaDNAComplete

Event description

An AIMediaDNAComplete event is generated after a media fingerprint job is completed.

Event content

Parameter Type Required Description
EventTime String Yes The time when the job is completed. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. For example, a value of 2017-01-11T12:00:00Z indicates 20:00:00 on January 11, 2017, China Standard Time.
EventType String Yes The type of the event. Set this parameter to AIMediaDNAComplete.
JobId String Yes The ID of the job. The value is the same as the JobId value returned by the SubmitAIJob operation.
MediaId String Yes The video ID.
Status String Yes The status of the job. Valid values: success and fail.
Code String No The error code of the job. Pay attention to this parameter when the value of the Status parameter is fail.
Message String No The error message of the job. Pay attention to this parameter when the value of the Status parameter is fail.
Data String Yes The result of media fingerprint processing. The value is a JSON object. For more information about the structure, seeAIMediaDNAResult.

Callback example

Note:

  • For an HTTP callback, write the following code as the HTTP POST request body.
  • For an MNS callback, write the following code as the message body.
  1. {
  2. "EventTime": "2017-03-20T07:49:17Z",
  3. "EventType": "AIMediaDNAComplete",
  4. "JobId": "88c6ca184c0e47098a5b665e2a126797",
  5. "MediaId": "3D12340d92c641401fab46a0b847fdff97",
  6. "Status": "success",
  7. "Code": "0",
  8. "Message": "OK",
  9. "Data": "{\"VideoDNA\":[{\"Similarity\":\"0.99\",\"PrimaryKey\":\"7a1d275cc8da45ca8cde0e182e8042a4\",\"Detail\":[{\"Input\":{\"Start\":\"0.0\",\"Duration\":\"14.0\"},\"Duplication\":{\"Start\":\"0.5\",\"Duration\":\"14.4\"}}]}]}"
  10. }