bilibili-API-collect/grpc_api/bilibili/app/playeronline/v1/playeronline.proto
2022-09-15 18:00:56 +08:00

70 lines
1.2 KiB
Protocol Buffer

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;
}