返回提交历史
Added
grpc_api/bilibili/community/interfacess/biligram/v1/biligram.proto
+1
-0
Added
grpc_api/bilibili/dagw/component/avatar/common/common.proto
+1
-0
Added
grpc_api/bilibili/dagw/component/avatar/v1/avatar.proto
+1
-0
Added
grpc_api/bilibili/dynamic/interfaces/campus/v1/api.proto
+1
-0
Added
grpc_api/bilibili/pangu/gallery/v1/openplatform/apiserver/v1alpha1/api.proto
+1
-0
Added
grpc_api/bilibili/pgc/gateway/player/v3/playurl.proto
+32
-0
Added
grpc_api/bilibili/playershared/playershared.proto
+426
-0
Renamed
grpc_api/bilibili/polymer/contract/contract.proto
+1
-1
Added
grpc_api/bilibili/relation/interfaces/api.proto
+1
-0
Added
grpc_api/bilibili/render/render.proto
+1
-0
Renamed
grpc_api/pgc/gateway/vega/v1/vega.proto
+0
-0
XFEstudio/bilibili-API-collect
添加新的grpc_api proto(from 7.18.0) (#625)
* 添加新的proto(from 7.18.0) * 修正包路径: playershared * 修正import
bea72b8
代码差异
11 个文件
+466
-1
@@ -0,0 +1 @@
1
// TODO
@@ -0,0 +1 @@
1
// TODO
@@ -0,0 +1 @@
1
// TODO
@@ -0,0 +1 @@
1
// TODO
@@ -0,0 +1 @@
1
// TODO
@@ -0,0 +1,32 @@
1
syntax = "proto3";
2
3
package bilibili.pgc.gateway.player.v3;
4
5
import "bilibili/playershared/playershared.proto";
6
7
import "google/protobuf/any.proto";
8
9
// 播放页信息-请求
10
message PlayViewReq {
11
// 视频信息
12
bilibili.playershared.VideoVod vod = 1;
13
// 当前页spm
14
string spmid = 2;
15
// 上一页spm
16
string from_spmid = 3;
17
// 青少年模式
18
int32 teenagers_mode = 4;
19
//
20
map<string, string> extra_content = 5;
21
22
}
23
24
// 播放页信息-响应
25
message PlayViewReply {
26
bilibili.playershared.VodInfo vod_info = 1;
27
bilibili.playershared.PlayArcConf play_arc_conf = 2;
28
google.protobuf.Any supplement = 3;
29
bilibili.playershared.PlayArc play_arc = 4;
30
bilibili.playershared.QnTrialInfo qn_trial_info = 5;
31
bilibili.playershared.Event event = 6;
32
}
@@ -0,0 +1,426 @@
1
syntax = "proto3";
2
3
package bilibili.playershared;
4
5
6
message ArcConf {
7
bool is_support = 1;
8
bool disable = 2;
9
ExtraContent extra_connent = 3;
10
repeated int32 unsupport_scene = 4;
11
}
12
13
// 视频编码
14
enum CodeType {
15
NOCODE = 0; //
16
CODE264 = 1; // H264
17
CODE265 = 2; // H265
18
CODEAV1 = 3; // AV1
19
}
20
21
// 功能类型
22
enum ConfType {
23
NoType = 0;
24
FLIPCONF = 1;
25
CASTCONF = 2;
26
FEEDBACK = 3;
27
SUBTITLE = 4;
28
PLAYBACKRATE = 5;
29
TIMEUP = 6;
30
PLAYBACKMODE = 7;
31
SCALEMODE = 8;
32
BACKGROUNDPLAY = 9;
33
LIKE = 10;
34
DISLIKE = 11;
35
COIN = 12;
36
ELEC = 13;
37
SHARE = 14;
38
SCREENSHOT = 15;
39
LOCKSCREEN = 16;
40
RECOMMEND = 17;
41
PLAYBACKSPEED = 18;
42
DEFINITION = 19;
43
SELECTIONS = 20;
44
NEXT = 21;
45
EDITDM = 22;
46
SMALLWINDOW = 23;
47
SHAKE = 24;
48
OUTERDM = 25;
49
INNERDM = 26;
50
PANORAMA = 27;
51
DOLBY = 28;
52
COLORFILTER = 29;
53
LOSSLESS = 30;
54
FREYAENTER = 31;
55
FREYAFULLENTER = 32;
56
SKIPOPED = 33;
57
RECORDSCREEN = 34;
58
DUBBING = 35;
59
LISTEN = 36;
60
}
61
62
message ConfValue {
63
oneof value {
64
// dash流
65
int32 switch_val = 1;
66
// 分段流
67
int32 selected_val = 2;
68
}
69
}
70
71
message DeviceConf {
72
ConfValue conf_value = 1;
73
}
74
75
// DRM类型
76
enum DrmTechType {
77
//
78
UNKNOWN_DRM = 0;
79
//
80
FAIR_PLAY = 1;
81
//
82
WIDE_VINE = 2;
83
// 哔哩哔哩自研DRM
84
BILI_DRM = 3;
85
}
86
87
// ? 错误码补充信息
88
message ExtraContent {
89
//
90
string disable_reason = 1;
91
//
92
uint64 disable_code = 2;
93
}
94
95
// 播放历史
96
message History {
97
// 播放进度
98
uint64 progress = 1;
99
//
100
string toast = 2;
101
//
102
uint64 last_play_cid = 3;
103
}
104
105
message PlayDeviceConf {
106
map<int32, DeviceConf> arc_confs = 1;
107
}
108
109
// 错误码
110
enum PlayErr {
111
NoErr = 0; //
112
WithMultiDeviceLoginErr = 1; // 管控类型的错误码
113
}
114
115
// 方案
116
message Scheme {
117
enum ActionType {
118
UNKNOWN = 0;
119
SHOW_TOAST = 1;
120
}
121
ActionType action_type = 1;
122
string toast = 2;
123
}
124
125
//
126
enum UnsupportScene {
127
//
128
UNKNOWN_SCENE = 0;
129
//
130
PREMIERE = 1;
131
}
132
133
// 视频类型
134
enum VideoType {
135
UNKNOWN = 0;
136
// 用户生成内容
137
UGC = 1;
138
// 专业生产内容
139
PGC = 2;
140
}
141
142
// 视频流信息
143
message Stream {
144
// 元数据
145
StreamInfo stream_info = 1;
146
// 流数据
147
oneof content {
148
// dash流
149
DashVideo dash_video = 2;
150
// 分段流
151
SegmentVideo segment_video = 3;
152
}
153
}
154
155
// 视频流信息: 元数据
156
message StreamInfo {
157
// 清晰度
158
uint32 quality = 1;
159
// 格式
160
string format = 2;
161
// 格式描述
162
string description = 3;
163
// 错误码
164
uint32 err_code = 4;
165
// 不满足条件信息
166
StreamLimit limit = 5;
167
// 是否需要vip
168
bool need_vip = 6;
169
// 是否需要登录
170
bool need_login = 7;
171
// 是否完整
172
bool intact = 8;
173
// 是否非全二压
174
bool no_rexcode = 9;
175
// 清晰度属性位
176
int64 attribute = 10;
177
// 新版格式描述
178
string new_description = 11;
179
// 格式文字
180
string display_desc = 12;
181
// 新版格式描述备注
182
string superscript = 13;
183
//
184
bool vip_free = 14;
185
//
186
string subtitle = 15;
187
// 方案
188
Scheme scheme = 16;
189
// 支持drm
190
bool support_drm = 17;
191
}
192
193
// Dash条目
194
message DashItem {
195
// 清晰度
196
uint32 id = 1;
197
// 主线流
198
string base_url = 2;
199
// 备用流
200
repeated string backup_url = 3;
201
// 带宽
202
uint32 bandwidth = 4;
203
// 编码id
204
uint32 codecid = 5;
205
// md5
206
string md5 = 6;
207
// 大小
208
uint64 size = 7;
209
// 帧率
210
string frame_rate = 8;
211
// DRM密钥
212
string widevine_pssh = 9;
213
}
214
215
// 视频流信息: dash流
216
message DashVideo {
217
// 主线流
218
string base_url = 1;
219
// 备用流
220
repeated string backup_url = 2;
221
// 带宽
222
uint32 bandwidth = 3;
223
// 编码id
224
uint32 codecid = 4;
225
// md5
226
string md5 = 5;
227
// 大小
228
uint64 size = 6;
229
// 伴音质量id
230
uint32 audio_id = 7;
231
// 是否非全二压
232
bool no_rexcode = 8;
233
// 帧率
234
string frame_rate = 9;
235
// 宽
236
int32 width = 10;
237
// 高
238
int32 height = 11;
239
// DRM密钥
240
string widevine_pssh = 12;
241
}
242
243
// 视频流信息: 分段流
244
message SegmentVideo {
245
repeated ResponseUrl segment = 1;
246
}
247
248
// 分段流条目
249
message ResponseUrl {
250
// 分段序号
251
uint32 order = 1;
252
// 分段时长
253
uint64 length = 2;
254
// 分段大小
255
uint64 size = 3;
256
// 主线流
257
string url = 4;
258
// 备用流
259
repeated string backup_url = 5;
260
// md5
261
string md5 = 6;
262
}
263
264
// Dash Response, 未使用
265
message ResponseDash {
266
repeated DashItem video = 1;
267
repeated DashItem audio = 2;
268
}
269
270
// 视频流信息: 流媒体元数据: 清晰度不满足条件信息
271
message StreamLimit {
272
// 标题
273
string title = 1;
274
// 跳转地址
275
string uri = 2;
276
// 提示信息
277
string msg = 3;
278
}
279
280
281
// 播放页信息-请求: 音视频VOD
282
message VideoVod {
283
// 视频aid
284
int32 aid = 1;
285
// 视频cid
286
int32 cid = 2;
287
// 清晰度
288
uint64 qn = 3;
289
// 视频流版本
290
int32 fnver = 4;
291
// 视频流格式
292
int32 fnval = 5;
293
// 下载模式
294
// 0:播放 1:flv下载 2:dash下载
295
uint32 download = 6;
296
// 流url强制是用域名
297
// 0:允许使用ip 1:使用http 2:使用https
298
int32 force_host = 7;
299
// 是否4K
300
bool fourk = 8;
301
// 视频编码
302
CodeType prefer_codec_type = 9;
303
// 响度均衡
304
uint64 voice_balance = 10;
305
}
306
307
// 播放页信息-响应: VOD音视频信息
308
message VodInfo {
309
// 视频清晰度
310
uint32 quality = 1;
311
// 视频格式
312
string format = 2;
313
// 视频时长
314
uint64 timelength = 3;
315
// 视频编码id
316
uint32 video_codecid = 4;
317
// 视频流
318
repeated Stream stream_list = 5;
319
// 伴音流
320
repeated DashItem dash_audio = 6;
321
// 杜比伴音流
322
DolbyItem dolby = 7;
323
// 响度均衡操作信息
324
VolumeInfo volume = 8;
325
// HIRES伴音流信息
326
LossLessItem loss_less_item = 9;
327
}
328
329
// 杜比伴音流信息
330
message DolbyItem {
331
// 杜比类型
332
enum Type {
333
NONE = 0; // NONE
334
COMMON = 1; // 普通杜比音效
335
ATMOS = 2; // 全景杜比音效
336
}
337
// 杜比类型
338
Type type = 1;
339
// 音频流
340
DashItem audio = 2;
341
}
342
343
// HIRES伴音流信息
344
message LossLessItem {
345
// 是否为hires
346
bool is_lossless_audio = 1;
347
// 音频流信息
348
DashItem audio = 2;
349
// 是否需要大会员
350
bool need_vip = 3;
351
}
352
353
// 响度均衡操作信息
354
message VolumeInfo {
355
// Measured integrated loudness 实际综合响度
356
double measured_i = 1;
357
// Measured loudness range 实际响度范围
358
double measured_lra = 2;
359
// Measured true peak 实际响度真峰值
360
double measured_tp = 3;
361
// Measured threshold 实际响度阈值
362
double measured_threshold = 4;
363
// Target offset gain(Gain is applied before the true-peak limiter) 目标增益Offset(增益在真实峰值限制器之前应用)
364
double target_offset = 5;
365
// Target integrated loudness 目标综合响度
366
double target_i = 6;
367
// Target true peak 目标响度真峰值
368
double target_tp = 7;
369
}
370
371
//
372
message PlayArc {
373
VideoType video_type = 1;
374
uint64 aid = 2;
375
uint64 cid = 3;
376
DrmTechType drm_tech_type = 4;
377
}
378
379
// 播放页信息-响应: PlayArcConf
380
message PlayArcConf {
381
map<int32, PlayArc> arc_confs = 1;
382
}
383
384
// 高画质试看信息: 按钮
385
message QnTrialButton {
386
string text = 1;
387
string link = 2;
388
}
389
390
// 播放页信息-响应: 高画质试看信息
391
message QnTrialInfo {
392
// 能否试看高画质
393
bool trial_able = 1;
394
//
395
int32 remaining_times = 2;
396
//
397
int32 start = 3;
398
//
399
int32 time_length = 4;
400
//
401
QnTrialToast start_toast = 5;
402
//
403
QnTrialToast end_toast = 6;
404
//
405
QnTrialButton quality_open_tip_btn = 8;
406
}
407
408
// 高画质试看信息: Toast信息
409
message QnTrialToast {
410
// toast文案 老字段
411
string text = 1;
412
// toast按钮
413
QnTrialButton button = 2;
414
}
415
416
// 事件
417
message Event {
418
// 震动
419
Shake shake = 1;
420
}
421
422
// 震动
423
message Shake {
424
//
425
string file = 1;
426
}
@@ -1,6 +1,6 @@
1
1
syntax = "proto3";
2
2
3
package bilibili.polymer.contract.v1;
3
package bilibili.polymer.contract;
4
4
5
5
import "google/protobuf/empty.proto";
6
6
@@ -0,0 +1 @@
1
// TODO
@@ -0,0 +1 @@
1
// TODO
此文件没有可显示的逐行差异。