Single Threaded Upload
Service Address
http://upload-az-cn.danghongyun.com/multipart/upload
Request Method
POST
Request Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
| token | The access token | String | Required |
| file | The file data | Multipart | Required |
| isEncrypt | Encrypt or not, 0 no encryption, 1 encryption, default 0. Note: Non encoded videos cannot be encrypted for uploading, i.e. if isTranscoder is 0, isEncrypt cannot be 1 | String | Optional |
| categoryId | Category ID | String | Optional |
| videoType | Indicates whether the video is a regular or VR video, 0:normal video, 1:VR, default 0. | Integer | Optional |
| isTranscoder | Indicates whether the video requires transcoding. 1:the video is encoded after uploading, 0:the video is not encoded after it is uploaded. default 1 | String | Optional |
| transcodeTemplateGroupId | The id of the transcoding template group. If the value is empty, the default transcoding template group will be used for transcoding. | Integer | Optional |
| capturePoints | The screenshot time of the thumbnail/cover image after successful video upload (in seconds), If the user sets a time point for taking screenshots, the maximum number of screenshots is 8. If the user sets less than 8 time points, the actual number of screenshots will be taken. If the user sets more than 8 time points, only the first 8 are valid. Multiple time points are separated by commas, eg: "5,10,15,20,25,30,35,40". | String | Optional |
| isExtractFrame | Immediately draw frames after successfully uploading the video, 0 no, 1 yes | Integer | Optional |
| frameInterval | The time interval for frame extraction (in seconds), if a frame is extracted, this parameter value needs to be set. | Integer | Optional |
| tag | Video tags stored after uploading videos for retrieval | String | Optional |
Response Example
{
"code":0,
"message":"MulitpartUploadController upload success.",
"result":
[
{
"videoId":"ee2435ae735b4c31b58b0e56d507f440",
"fileName":"someone@arcvideo.com_1461205718234_FrozenFrame001.ts",
"thumbnaill":"http://8zrgbat3.web4.danghongyun.com/thumb%2F2016%2F04%2F21%2F121_someone%40arcvideo.com_1461205718234_FrozenFrame001.jpg",
"cover":"http://8zrgbat3.web4.danghongyun.com/cover%2F2016%2F04%2F21%2F121_someone%40arcvideo.com_1461205718234_FrozenFrame001.jpg",
"title":"FrozenFrame001",
"size":7539,
"userId":121,
"category":null,
"status":0,
"isEncrypt":null,
"categoryId":1
}
],
"count":1,
"success":true
}
Response Fields
| Field | Description |
|---|---|
| count | Count |
| videoId | Video id |
| fileName | The uploaded file name |
| thumbnaill | The video thumbnail |
| cover | The video cover |
| title | Video title |
| size | The video file size |
| userId | Use id |
| category | Video category |
| status | The transcoding status of the video |
| isEncrypt | Video encryption status |
| categoryId | Video category id |
Error Codes
| Code | Message |
|---|---|
| 0 | success |
| 10000 | exception |
| 10011 | Insufficient trial user space |
| 10012 | parameter error |