All Products
Search
Document Center

ApsaraVideo VOD:Video composition complete

Last Updated:Oct 13, 2025

This topic describes the ProduceMediaComplete event, the content of the notification, and callback examples.

Event type

ProduceMediaComplete

Event description

This event is generated when video composition is complete.

Note
  • You can initiate video composition on the Video Editor page in the ApsaraVideo VOD console or by calling the ProduceEditingProjectVideo operation.

  • The file generated from video composition serves as the source file for the media resource.

Event content

Parameter

Type

Required

Description

EventTime

String

Yes

The time when the event was generated. The time is in UTC and follows the yyyy-MM-ddTHH:mm:ssZ format.

EventType

String

Yes

The event type. This is a required parameter. The value is fixed to ProduceMediaComplete.

Status

String

Yes

The status of the video composition job.

  • success: The job is successful.

  • fail: The job failed.

Note

If the status is fail, the video composition job was not successful, and the source file for the resulting media resource was not generated.

MediaId

String

Yes

The ID of the composed media resource.

ProjectId

String

Yes

The ID of the online editing project for this composition job.

ErrorCode

String

No

The error code. This parameter is returned when an error occurs during video composition.

ErrorMessage

String

No

The error message. This parameter is returned when an error occurs during video composition.

Callback examples

Note the following about the callback examples:

  • For HTTP callbacks, the content is the body of the HTTP POST request.

  • For MNS callbacks, the content is the message body.

Example of a success callback message:

{
    "MediaId": "1234343b689*****a5422dfe1e472a41",
    "ProjectId": "987624bab6*****d9fcdeefdd974c7aa",
    "Status": "success",
    "EventType": "ProduceMediaComplete",
    "EventTime": "2018-12-26T14:34:09Z"
}

Example of a failure callback message:

{
    "MediaId": "1234343b689*****a5422dfe1e472a41",
    "ProjectId": "987624bab6*****d9fcdeefdd974c7aa",
    "Status": "fail",
    "EventType": "ProduceMediaComplete",
    "EventTime": "2018-12-26T14:34:09Z",
    "ErrorCode": "InvalidParameter.ResourceContentBad",
    "ErrorMessage": "The resource operated InputFile is bad"
}