API 文档
搜索文档…
获取活动视频列表

接口

获取视频列表列表
1
GET /api/activity/:id/playlist/custom
Copied!

授权

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

参数

请求样例

1
/api/activity/8448124/playlist/custom
Copied!

响应参数

参数
类型
描述
id
integer
播放列表 id
name
string
播放列表名称
activityId
string
活动 id
medias
array
视频信息列表
mediaIds
array
播放列表媒体 id

响应示例

1
{
2
"mediaIds":[
3
2907627
4
],
5
"id":713324,
6
"activityId":"10438142",
7
"name":"视频列表",
8
"createdAt":"2021-05-27T03:43:53.000Z",
9
"updatedAt":"2021-06-18T08:59:23.881Z",
10
"medias":[
11
{
12
"meta":{
13
"storage_bucket":"shangzhibo-img",
14
"storage_path":"/resources/120489/0/56aeda0423004f9xxxxxx4cf5.mp4",
15
"duration":772.1426360000007,
16
"size":0
17
},
18
"isCostStorage":true,
19
"id":2907627,
20
"agentId":120489,
21
"activityId":"0",
22
"path":"//doc.shangzhibo.tv/resources/120489/0/56aeda0423004f9xxxxx5.mp4",
23
"source":"upload",
24
"isProcessThumbnail":false,
25
"thumbnailPath":"//doc.shangzhibo.tv/resources/120489/0/56aeda04230xd7134cf5-prexxxxview.jpg",
26
"isProcessPlaylist":false,
27
"playlistPath":"//doc.shangzhibo.tv/resources/120489/0/56aeda0423xxxxxx34cf5-processed.m3u8",
28
"taskId":"457bbe5358cxxxxxx807e56ec",
29
"playbackTitle":"2.JSX、createElement和虚拟DOM的关系",
30
"startedAt":null,
31
"endedAt":null,
32
"createdAt":"2021-03-31T05:00:33.000Z",
33
"updatedAt":"2021-06-17T18:00:13.000Z",
34
"originalVideo":"//doc.shangzhibo.tv/resources/120489/0/56axxxxxxxxx7eb91fd7134cf5.mp4"
35
},
36
{
37
"meta":{
38
"storage_bucket":"shangzhibo-img",
39
"storage_path":"/resources/120489/0/56aeda0423004f9xxxxxx4cf5.mp4",
40
"duration":772.1426360000007,
41
"size":0
42
},
43
"isCostStorage":true,
44
"id":2907627,
45
"agentId":120489,
46
"activityId":"0",
47
"path":"//doc.shangzhibo.tv/resources/120489/0/56aeda0423004f9xxxxx5.mp4",
48
"source":"upload",
49
"isProcessThumbnail":false,
50
"thumbnailPath":"//doc.shangzhibo.tv/resources/120489/0/56aeda04230xd7134cf5-prexxxxview.jpg",
51
"isProcessPlaylist":false,
52
"playlistPath":"//doc.shangzhibo.tv/resources/120489/0/56aeda0423xxxxxx34cf5-processed.m3u8",
53
"taskId":"457bbe5358cxxxxxx807e56ec",
54
"playbackTitle":"2.JSX、createElement和虚拟DOM的关系",
55
"startedAt":null,
56
"endedAt":null,
57
"createdAt":"2021-03-31T05:00:33.000Z",
58
"updatedAt":"2021-06-17T18:00:13.000Z",
59
"originalVideo":"//doc.shangzhibo.tv/resources/120489/0/56axxxxxxxxx7eb91fd7134cf5.mp4"
60
}
61
]
62
}
Copied!
最近更新 5mo ago