# Function description

The task scheduler is used to return the transcoding completion information to the task creator

# Request

# Request example

POST /job/transcode/complete HTTPS
Host: <host>
Content-Type: application/json

# Request Parameters

none

# Request Headers

none

# Request Body

The request body is a json string, for example:

{
  "uuid": "uuid",
  "type": 0,
  "data": {
    "code": 0,
    "message": ""
    "m3u8Url": "",
    "width": 100,
    "height": 100,
    "duration": 1000,
    "outputFileType": 0,
    "needTranscodeAlphaChannel": false,
    "leftChannelFileUrl": "",
    "rightChannelFileUrl": "",
    "audioDataFileUrl": "",
    "coverUrl": "",
    "thumbnails": [
      {
        "time": 0,
        "url": ""
      },
      ...
    ],
    "image": {
      "compressedUrl": "",
      "thumbnailUrl": ""
    },
    "singleSliceUrl": ""
  }
}
Name Type Description Mandatory
uuid string task UUID Yes
type int Task type, 0--transcoding, 1--synthesis Yes
data object Video information callback Yes
code int Completion code, 0--success, 1--failure Yes
message string completion message Yes
m3u8Url string The transcoded m3u8 url Yes
width int video width Yes
height int video height Yes
duration int Video duration, in milliseconds Yes
outputFileType int Transcoding output file type (0--video, 1--audio) Yes
needTranscodeAlphaChannel false Do you need to convert the alpha channel Yes
leftChannelFileUrl string Left channel waveform data file url Yes
rightChannelFileUrl string Right channel waveform data file url Yes
audioDataFileUrl string audio data file url Yes
coverUrl string cover url Yes
thumbnails array array of thumbnails Yes
time long Thumbnail timestamp in milliseconds Yes
url string Thumbnail link Yes
image object Image transcoding related Yes
compressedUrl string Url of the compressed image Yes
thumbnailUrl string Image Thumbnail Url Yes
singleSliceUrl string If it is single-chip transcoding, the url of the single-chip is required Yes

# Response

# Response Header

No special response header

# Response Body

{
  "code": 0,
  "message": "",
  "data": null
}