# Function Description
The task scheduling is used to return the completion information of transcoding result to the task creator
# Request
# request example
POST /job/transcode/complete HTTPS
Host: <host>
Content-Type: application/json
# Request Headers
none
# Request Parameters
none
# Request Body
request body is JSON character 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": ""
},
...
],
"thumbnailInfo": {
"urlPrefix": "http://abc.com/abcdefg",
"interval": 1000,
"extension": "jpg"
},
"image": {
"compressedUrl": "",
"thumbnailUrl": ""
},
"singleSliceUrl": ""
}
}
| Field | Type | Explain | Mandatory |
|---|---|---|---|
| uuid | string | task uuid | true |
| type | int | task type,0-transcoding,1-compile. | true |
| data | object | callbacking of finished product information | true |
| code | int | result code,0-success,1-failed | true |
| message | string | result message | true |
| m3u8Url | string | m3u8 after transcoding | true |
| width | int | width of video | true |
| height | int | height of video | true |
| duration | int | duration time of video,in millisecond. | true |
| outputFileType | int | file type of transcoding output 0-video,1-audio. | true |
| needTranscodeAlphaChannel | false | need to trans-alpha channel or not | true |
| leftChannelFileUrl | string | url of leftchannel file | true |
| rightChannelFileUrl | string | url of rightchannel file | true |
| audioDataFileUrl | string | url of audio file | true |
| coverUrl | string | url of cover | true |
| thumbnails | array | array of thumbnail | true |
| time | long | time stamp of thumbnail,in millisecond. | true |
| url | string | link of thumbnail | true |
| image | object | image transcoding | true |
| compressedUrl | string | image url after zip | true |
| thumbnailUrl | string | image thumbnail url | true |
| singleSliceUrl | string | url of single-sliced video is required when single-sliced video transcoding | true |
| thumbnailInfo | object | thumbnail information | true at new version(12.27) |
| urlPrefix | string | prefix of thumbnail | true at new version(12.27) |
| interval | int | time interval of thumbnails,in millisecond. | true at new version(12.27) |
| extension | string | suffixes of thumbnail | true at new version(12.27) |
# Response
# Response Header
No special response header
# Response Body
{
"code": 0,
"message": "",
"data": null
}