# Function description
This interface provides video fragmentation information.
The interface needs to implement the following business logic:
- Upload video segment files to Object Storage
- According to the task ID, save the video progress information to the database
# Request
# Request example
POST / sliceCompletion
HTTP / 1.1
Host: <host>
Content-Type: application/json
# Request Parameters
none
# Request Headers
none
# Request Body
The request body is a json string containing shard information, for example:
{
"taskId": 1,
"taskInfo": {
"progress": 50,
"sliceFilePath": "/opt/bsedit/<uuid>-00001.mp4"
}
}
Field | Description | Type |
---|---|---|
taskId | The task ID passed to the transcoder by the caller | long |
taskInfo | task information | object |
progress | Transcoding progress | int |
sliceFilePath | The transcoding result is the local slice path | string |
# Response
The interface implementation can return the normal response body.