All Products
Search
Document Center

ProduceMediaComplete

Last Updated: Jul 11, 2019

Event type

ProduceMediaComplete

Event description

A ProduceMediaComplete event is generated after media production is completed.

Note:

  • To perform video production, you can log on to the ApsaraVideo for VOD console and choose Production Center > Video Editing. You can also perform video production by calling the ProduceEditingProjectVideo operation.
  • The produced media file is used as the mezzanine file of the media resources.

Event content

Parameter Type Description
EventTime String The time when the event occurs. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
EventType String The type of the event. Set this parameter to ProduceMediaComplete.
Status String The media production result. Valid values: success and fail.
MediaId String The ID of the produced media file.
ProjectId String The ID of the online editing project used for the media production.
ErrorCode String The error code. This parameter is available if media production fails.
ErrorMessage String The error message. This parameter is available if media production fails.

Note:

  • If the value of the Status parameter is fail, the media production fails, and the mezzanine file of the media resources is not generated.

Callback example

For an HTTP callback, write the following code as the HTTP POST request body.

Callback message for successful media production

  1. {
  2. "MediaId": "1234343b689341c1a5422dfe1e472a41",
  3. "ProjectId": "987624bab651400d9fcdeefdd974c7aa",
  4. "Status": "success",
  5. "EventType": "ProduceMediaComplete",
  6. "EventTime": "2018-12-26T14:34:09Z"
  7. }

Callback message for failed media production

  1. {
  2. "MediaId": "1234343b689341c1a5422dfe1e472a41",
  3. "ProjectId": "987624bab651400d9fcdeefdd974c7aa",
  4. "Status": "fail",
  5. "EventType": "ProduceMediaComplete",
  6. "EventTime": "2018-12-26T14:34:09Z",
  7. "ErrorCode": "InvalidParameter.ResourceContentBad",
  8. "ErrorMessage": "The resource operated InputFile is bad"
  9. }