# Function Description
To get connection between resource and project
# Request
# Request example
POST /resource/append HTTPS
Host: <host>
Content-Type: application/json
Authorization: <AuthString>
# Request Headers
| Name | Description | Type | Mandatory |
|---|---|---|---|
| Authorization | User token information | string | true |
# Request Parameters
none
# Request Body
{
"projectId": 1,
"type": 1,
"resourceId": 1
}
| Field | explain | type | Mandatory |
|---|---|---|---|
| projectId | project id | String | true |
| type | resource type - 1: video - 2:audio - 3:image | int | true |
| resourceId | resource id | int | true |
# Response
# Response Header
No special response header
# Response Body
Successful Response Body :
{
"code": 0,
"enMsg": "success",
"msg": "成功",
"data": {
"projectId": null,
"mediaType": 1,
"id": 191,
"title": "How",
"description": "",
"duration": 57880,
"coverUrl": "https://alieasset.meishesdk.com/editor/2021/10/18/video/8757f195b3fa4b109f498cc1569fbb93/8757f195b3fa4b109f498cc1569fbb93_cover.jpg",
"uuid": "a028debc9c1e4ce7aec8d9572b846d91",
"userId": 1,
"jobId": 165,
"status": 1,
"m3u8Url": "https://alieasset.meishesdk.com/editor/2021/10/18/video/8757f195b3fa4b109f498cc1569fbb93/8757f195b3fa4b109f498cc1569fbb93.m3u8",
"leftChannelUrl": "https://alieasset.meishesdk.com/editor/2021/10/18/video/8757f195b3fa4b109f498cc1569fbb93/8757f195b3fa4b109f498cc1569fbb93-0-leftchannel.data",
"rightChannelUrl": "https://alieasset.meishesdk.com/editor/2021/10/18/video/8757f195b3fa4b109f498cc1569fbb93/8757f195b3fa4b109f498cc1569fbb93-0-rightchannel.data",
"alphaM3u8Url": "",
"alphaUrl": "",
"isDir": 0,
"width": 1920,
"height": 1080,
"url": "http://hwtesthongqi.wengegroup.com/mam-test/616d067c4df45cbb6e046fc5.mp4",
"singleSliceUrl": "",
"thumbnails": [
{
"time": 0,
"url": "https://alieasset.meishesdk.com/editor/2021/10/18/video-thumbnail/8757f195b3fa4b109f498cc1569fbb93/8757f195b3fa4b109f498cc1569fbb93-0000000.jpg"
},
...
],
"thumbnailInfo": {
"urlPrefix": "http://abc.com/abcdefg",
"interval": 1000,
"extension": "jpg"
}
}
}
| Field | Explain | Type | Mandatory |
|---|---|---|---|
| id | resource id | int | true |
| projectId | project id | int | true |
| status | status of resource transcoding 0-processing ,1-success,2-failed | int | true |
| mediaType | resource type:1-video 2-audio 3-image | int | true |
| title | resource name | string | true |
| description | resource description | string | true |
| uuid | Universally Unique Identifier | string | true |
| jobId | task id | string | true |
| width | width of video or image | int | true |
| height | height of video or image | int | true |
| duration | duration time of resource,in millisecond | int | true |
| userId | userid | int | true |
| isDir | sequence image or not 0-false 1-true | int | true |
| url | url of resource | string | true |
| coverUrl | url of thumbnail,get it by transcoding. | string | true |
| singleSliceUrl | url of single-sliced video ,get it by transcoding | string | true |
| alphaUrl | url of single-sliced video with alpha-channel,get it by transcoding | string | true |
| alphaM3u8Url | url of m3u8 with alpha-channel,get it by transcoding | string | true |
| m3u8Url | url of m3u8,get it by transcoding | string | true |
| rightChannelUrl | url of rightchannel,get it by transcoding | string | true |
| leftChannelUrl | url of leftchannel,get it by transcoding | string | true |
| thumbnails | array of thumbnail | array | true |
| time | time stamp of thumbnail | int | true |
| url | url of thumbnail | string | true |
| thumbnailInfo | thumbnail information--there is thumbnail field at new version(12.27) | object | true |
| urlPrefix | url prefix of thumbnail | string | true |
| interval | time interval of thumbnail,in millisecond. | int | true |
| extension | file suffixes of thumbnail | string | true |
Failed Response Body:
{
"code": <errorCode>,
"enMsg": <errorMessage>,
"msg": <errorMessage>,
"data": null
}