forked from SocialSisterYi/bilibili-API-collect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playeronline.proto
70 lines (62 loc) · 1.17 KB
/
playeronline.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
syntax = "proto3";
package bilibili.app.playeronline.v1;
// 在线人数
service PlayerOnline {
// 获取在线人数
rpc PlayerOnline (PlayerOnlineReq) returns (PlayerOnlineReply);
//
rpc PremiereInfo(PremiereInfoReq) returns (PremiereInfoReply);
//
rpc ReportWatch(ReportWatchReq) returns (NoReply);
}
// 空回复
message NoReply {}
// 获取在线人数-回复
message PlayerOnlineReply {
//
string total_text = 1;
// 下次轮询间隔时间
int64 sec_next = 2;
// 是否底部显示
bool bottom_show = 3;
//
bool sdm_show = 4;
//
string sdm_text = 5;
//
int64 total_number = 6;
//
string total_number_text = 7;
}
// 获取在线人数-请求
message PlayerOnlineReq {
// 稿件 avid
int64 aid = 1;
// 视频 cid
int64 cid = 2;
// 是否在播放中
bool play_open = 3;
}
//
message PremiereInfoReply {
//
string premiere_over_text = 1;
//
int64 participant = 2;
//
int64 interaction = 3;
}
//
message PremiereInfoReq {
//
int64 aid = 1;
}
//
message ReportWatchReq {
//
int64 aid = 1;
//
string biz = 2;
//
string buvid = 3;
}