API 文档
搜索文档…
获取指定活动的预设视频列表

接口

获取媒体库预设视频列表
1
GET /api/activity/{id}/playlist/preset
Copied!

授权

请求 header
1
Authorization: Bearer <accessToken>
2
Content-Type: application/json
Copied!
注:请将上方的<accessToken>替换为分配给您的秘钥串。关于如何获取 accessToken ,请咨询杨经理(18968187008)。

参数

请求样例

1
/api/activity/3180028/playlist/preset
Copied!

响应参数

参数
类型
描述
id
string
视频列表 ID
activityId
string
活动 ID
name
string
视频列表名称
updatedAt
string
更新时间
createdAt
string
创建时间
medias
array
视频信息列表

响应示例

1
{
2
"id": 186654,
3
"activityId": "3180028",
4
"name": "预设视频",
5
"updatedAt": "2019-06-05T02:10:05.004Z",
6
"createdAt": "2019-05-30T08:24:25.000Z",
7
"medias": [
8
{
9
"meta": {
10
"storage_bucket": "shangzhibo-img",
11
"storage_path": "/client/user/100001/1559209011381/1559209011443_3.mp4",
12
"duration": 24.999999,
13
"size": 4901675
14
},
15
"isProcessThumbnail": false,
16
"isProcessPlaylist": false,
17
"id": 1523064,
18
"activityId": "3180028",
19
"path": "//doc.shangzhibo.tv/client/user/100001/1559209011381/1559209011443_3.mp4",
20
"source": "upload",
21
"thumbnailPath": "//doc.shangzhibo.tv/client/user/100001/1559209011381/1559209011443_3-preview.jpg",
22
"playlistPath": "//doc.shangzhibo.tv/client/user/100001/1559209011381/1559209011443_3-processed.m3u8",
23
"taskId": "f01fbe6956174d299be77eea58769a94",
24
"playbackTitle": null,
25
"startedAt": null,
26
"endedAt": null,
27
"updatedAt": "2019-06-03T08:58:02.000Z",
28
"createdAt": "2019-05-30T09:36:52.000Z"
29
},
30
{
31
"meta": {
32
"storage_bucket": "shangzhibo-img",
33
"storage_path": "/client/user/100001/1559209006391/1559209006444_1.mp4",
34
"duration": 7.3,
35
"size": 4091272
36
},
37
"isProcessThumbnail": false,
38
"isProcessPlaylist": false,
39
"id": 1523063,
40
"activityId": "3180028",
41
"path": "//doc.shangzhibo.tv/client/user/100001/1559209006391/1559209006444_1.mp4",
42
"source": "upload",
43
"thumbnailPath": "//doc.shangzhibo.tv/client/user/100001/1559209006391/1559209006444_1-preview.jpg",
44
"playlistPath": "//doc.shangzhibo.tv/client/user/100001/1559209006391/1559209006444_1-processed.m3u8",
45
"taskId": "6d5bce7b32c24af2a2ea20fce275d520",
46
"playbackTitle": null,
47
"startedAt": null,
48
"endedAt": null,
49
"updatedAt": "2019-06-03T08:58:02.000Z",
50
"createdAt": "2019-05-30T09:36:47.000Z"
51
},
52
{
53
"meta": {
54
"storage_bucket": "shangzhibo-img",
55
"storage_path": "/client/user/100001/1559208881035/1559208881085_3.mp4",
56
"duration": 24.999999,
57
"size": 4901675
58
},
59
"isProcessThumbnail": false,
60
"isProcessPlaylist": false,
61
"id": 1523057,
62
"activityId": "3180028",
63
"path": "//doc.shangzhibo.tv/client/user/100001/1559208881035/1559208881085_3.mp4",
64
"source": "upload",
65
"thumbnailPath": "//doc.shangzhibo.tv/client/user/100001/1559208881035/1559208881085_3-preview.jpg",
66
"playlistPath": "//doc.shangzhibo.tv/client/user/100001/1559208881035/1559208881085_3-processed.m3u8",
67
"taskId": "b5742f66bb99483489ed83b90c977fc9",
68
"playbackTitle": null,
69
"startedAt": null,
70
"endedAt": null,
71
"updatedAt": "2019-06-03T08:58:02.000Z",
72
"createdAt": "2019-05-30T09:34:42.000Z"
73
}
74
]
75
}
Copied!
最近更新 1yr ago