update 【gRPC API】 proto files

This commit is contained in:
社会易姐QwQ 2022-01-29 23:57:17 +08:00
parent c25a8f4bf6
commit aae73c7015
13 changed files with 8077 additions and 4558 deletions

File diff suppressed because it is too large Load Diff

View File

@ -22,79 +22,113 @@ service History {
rpc LatestHistory (LatestHistoryReq) returns (LatestHistoryReply);
}
// tab-
message HistoryTabReq {
//
message CardArticle {
// url
repeated string covers = 1;
// UP主昵称
string name = 2;
// UP主mid
int64 mid = 3;
//
bool displayAttention = 4;
//
string badge = 5;
//
Relation relation = 6;
}
//
message CardCheese {
// url
string cover = 1;
//
int64 progress = 2;
//
int64 duration = 3;
//
string subtitle = 4;
}
//
message CardLive {
// url
string cover = 1;
//
string name = 2;
// mid
int64 mid = 3;
//
string tag = 4;
//
int32 ststus = 5;
//
bool display_attention = 6;
//
Relation relation = 7;
}
// pgc稿件卡片
message CardOGV {
// url
string cover = 1;
//
int64 progress = 2;
//
int64 duration = 3;
//
string subtitle = 4;
}
// ugc稿件卡片
message CardUGC {
// url
string cover = 1;
//
int64 progress = 2;
//
int64 duration = 3;
// UP主昵称
string name = 4;
// UP主mid
int64 mid = 5;
//
bool display_attention = 6;
// cid
int64 cid = 7;
// P
int32 page = 8;
// P的标题
string subtitle = 9;
//
Relation relation = 10;
// 稿bvid
string bvid = 11;
// P数
int64 videos = 12;
//
string short_link = 13;
//
string share_subtitle = 14;
//
int64 view = 15;
//
int64 state = 16;
}
// -
message ClearReq {
//
// archive: live: article: goods: show:
string business = 1;
//
HistorySource source = 2;
//
string keyword = 3;
}
// tab-
message HistoryTabReply {
// tab列表
repeated CursorTab tab = 1;
}
//
enum HistorySource {
//
history_VALUE = 0;
//
shopping_VALUE = 1;
}
// ()-
message CursorReq {
//
Cursor cursor = 1;
//
// all: archive: live: article:
string business = 2;
// ()
PlayerPreloadParams player_preload = 3;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
}
// ()-
message CursorReply {
//
repeated CursorItem items = 1;
// tab
repeated CursorTab tab = 2;
//
Cursor cursor = 3;
//
bool hasMore = 4;
}
// -
message CursorV2Req {
//
Cursor cursor = 1;
//
// archive: live: article: goods: show:
string business = 2;
// ()
PlayerPreloadParams player_preload = 3;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
//
bool is_local = 5;
}
// -
message CursorV2Reply {
//
repeated CursorItem items = 1;
//
Cursor cursor = 2;
//
bool hasMore = 3;
//
message Cursor {
//
int64 max = 1;
//
int32 maxTp = 2;
}
//
@ -133,96 +167,29 @@ message CursorItem {
bool has_share = 14;
}
// ugc稿件卡片
message CardUGC {
// url
string cover = 1;
//
int64 progress = 2;
//
int64 duration = 3;
// UP主昵称
string name = 4;
// UP主mid
int64 mid = 5;
//
bool display_attention = 6;
// cid
int64 cid = 7;
// P
int32 page = 8;
// P的标题
string subtitle = 9;
//
Relation relation = 10;
// 稿bvid
string bvid = 11;
// P数
int64 videos = 12;
//
string short_link = 13;
//
string share_subtitle = 14;
//
int64 view = 15;
// ()-
message CursorReply {
//
repeated CursorItem items = 1;
// tab
repeated CursorTab tab = 2;
//
Cursor cursor = 3;
//
bool hasMore = 4;
}
// pgc稿件卡片
message CardOGV {
// url
string cover = 1;
//
int64 progress = 2;
//
int64 duration = 3;
//
string subtitle = 4;
}
//
message CardArticle {
// url
repeated string covers = 1;
// UP主昵称
string name = 2;
// UP主mid
int64 mid = 3;
//
bool displayAttention = 4;
//
string badge = 5;
//
Relation relation = 6;
}
//
message CardLive {
// url
string cover = 1;
//
string name = 2;
// mid
int64 mid = 3;
//
string tag = 4;
//
int32 ststus = 5;
//
bool display_attention = 6;
//
Relation relation = 7;
}
//
message CardCheese {
// url
string cover = 1;
//
int64 progress = 2;
//
int64 duration = 3;
//
string subtitle = 4;
// ()-
message CursorReq {
//
Cursor cursor = 1;
//
// all: archive: live: article:
string business = 2;
// ()
PlayerPreloadParams player_preload = 3;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
}
//
@ -237,41 +204,34 @@ message CursorTab {
bool focus = 4;
}
//
message Cursor {
//
int64 max = 1;
//
int32 maxTp = 2;
// -
message CursorV2Reply {
//
repeated CursorItem items = 1;
//
Cursor cursor = 2;
//
bool hasMore = 3;
//
string empty_link = 4;
}
// -
message DeleteReq {
//
HisInfo his_info = 1;
}
//
message HisInfo {
// -
message CursorV2Req {
//
Cursor cursor = 1;
//
// archive: live: article: goods: show:
string business = 1;
// id
int64 kid = 2;
string business = 2;
// ()
PlayerPreloadParams player_preload = 3;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
//
bool is_local = 5;
}
//
message NoReply {}
//
message DeviceType {
//
DT type = 1;
// url
string icon = 2;
}
//
//
enum DT {
Unknown = 0; //
Phone = 1; //
@ -283,36 +243,76 @@ enum DT {
AndPad = 7; // apad端
}
//
message Relation {
//
// 1: 2: 3: 4:
int32 status = 1;
// UP主
int32 is_follow = 2;
// UP主关注用户
int32 is_followed = 3;
// -
message DeleteReq {
//
HisInfo his_info = 1;
}
// -
message SearchReq {
//
string keyword = 1;
//
int64 pn = 2;
//
message DeviceType {
//
DT type = 1;
// url
string icon = 2;
}
//
message HisInfo {
//
// archive: live: article: goods: show:
string business = 3;
string business = 1;
// id
int64 kid = 2;
}
// -
message SearchReply {
//
enum HistorySource {
history_VALUE = 0; //
shopping_VALUE = 1; //
}
// tab-
message HistoryTabReply {
// tab列表
repeated CursorTab tab = 1;
}
// tab-
message HistoryTabReq {
//
// archive: live: article: goods: show:
string business = 1;
//
HistorySource source = 2;
//
string keyword = 3;
}
// -
message LatestHistoryReply {
//
repeated CursorItem items = 1;
//
bool hasMore = 2;
//
Page page = 3;
CursorItem items = 1;
//
string scene = 2;
//
int64 rtime = 3;
// ()
string flag = 4;
}
// -
message LatestHistoryReq {
//
// archive: live: article: goods: show:
string business = 1;
//
PlayerPreloadParams player_preload = 2;
}
//
message NoReply {
}
//
@ -337,30 +337,34 @@ message PlayerPreloadParams {
int64 fourk = 5;
}
// -
message ClearReq {
//
// archive: live: article: goods: show:
string business = 1;
//
message Relation {
//
// 1: 2: 3: 4:
int32 status = 1;
// UP主
int32 is_follow = 2;
// UP主关注用户
int32 is_followed = 3;
}
// -
message LatestHistoryReq {
//
// archive: live: article: goods: show:
string business = 1;
//
PlayerPreloadParams player_preload = 2;
}
// -
message LatestHistoryReply {
// -
message SearchReply {
//
CursorItem items = 1;
//
string scene = 2;
//
int64 rtime = 3;
// ()
string flag = 4;
repeated CursorItem items = 1;
//
bool hasMore = 2;
//
Page page = 3;
}
// -
message SearchReq {
//
string keyword = 1;
//
int64 pn = 2;
//
// archive: live: article: goods: show:
string business = 3;
}

View File

@ -0,0 +1,115 @@
syntax = "proto3";
package bilibili.app.interfaces.v1;
import "bilibili/app/archive/middleware/v1/preload.proto";
import "bilibili/app/archive/v1/archive.proto";
import "bilibili/app/dynamic/v2/dynamic.proto";
//
service Space {
//
rpc SearchTab(SearchTabReq) returns (SearchTabReply);
//
rpc SearchArchive(SearchArchiveReq) returns (SearchArchiveReply);
//
rpc SearchDynamic(SearchDynamicReq) returns (SearchDynamicReply);
}
//
message Arc {
//
bilibili.app.archive.v1.Arc archive = 1;
//
string uri = 2;
}
//
message Dynamic {
//
bilibili.app.dynamic.v2.DynamicItem dynamic = 1;
}
enum From {
ArchiveTab = 0; //
DynamicTab = 1; //
}
//
message OfficialVerify {
//
int32 type = 1;
//
string desc = 2;
}
//
message SearchTabReply {
//
int64 focus = 1;
//
repeated Tab tabs = 2;
}
//
message SearchTabReq {
//
string keyword = 1;
//
int64 mid = 2;
//
int32 from = 3;
}
//
message SearchArchiveReply {
//
repeated Arc archives = 1;
//
int64 total = 2;
}
//
message SearchArchiveReq {
//
string keyword = 1;
//
int64 mid = 2;
//
int64 pn = 3;
//
int64 ps = 4;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5;
}
//
message SearchDynamicReply {
//
repeated Dynamic dynamics = 1;
//
int64 total = 2;
}
//
message SearchDynamicReq {
//
string keyword = 1;
//
int64 mid = 2;
//
int64 pn = 3;
//
int64 ps = 4;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5;
}
//
message Tab {
//
string title = 1;
//
string uri = 2;
}

View File

@ -0,0 +1,928 @@
syntax = "proto3";
package bilibili.app.listener.v1;
import "google/protobuf/empty.proto";
import "bilibili/app/archive/middleware/v1/preload.proto";
//
service Listener {
//
rpc Ping (google.protobuf.Empty) returns (google.protobuf.Empty);
// URL
rpc PlayUrl (PlayURLReq) returns (PlayURLResp);
//
rpc BkarcDetails (BKArcDetailsReq) returns (BKArcDetailsResp);
//
rpc Playlist (PlaylistReq) returns (PlaylistResp);
//
rpc PlaylistAdd (PlaylistAddReq) returns (google.protobuf.Empty);
//
rpc PlaylistDel (PlaylistDelReq) returns (google.protobuf.Empty);
//
rpc RcmdPlaylist (RcmdPlaylistReq) returns (RcmdPlaylistResp);
//
rpc PlayHistory (PlayHistoryReq) returns (PlayHistoryResp);
//
rpc PlayHistoryAdd (PlayHistoryAddReq) returns (google.protobuf.Empty);
//
rpc PlayHistoryDel (PlayHistoryDelReq) returns (google.protobuf.Empty);
//
rpc PlayActionReport (PlayActionReportReq) returns (google.protobuf.Empty);
//
rpc TripleLike (TripleLikeReq) returns (TripleLikeResp);
//
rpc ThumbUp (ThumbUpReq) returns (ThumbUpResp);
//
rpc CoinAdd (CoinAddReq) returns (CoinAddResp);
//
rpc FavItemAdd (FavItemAddReq) returns (FavItemAddResp);
//
rpc FavItemDel (FavItemDelReq) returns (FavItemDelResp);
//
rpc FavItemBatch (FavItemBatchReq) returns (FavItemBatchResp);
//
rpc FavoredInAnyFolders (FavoredInAnyFoldersReq) returns (FavoredInAnyFoldersResp);
//
rpc FavFolderList (FavFolderListReq) returns (FavFolderListResp);
//
rpc FavFolderDetail (FavFolderDetailReq) returns (FavFolderDetailResp);
//
rpc FavFolderCreate (FavFolderCreateReq) returns (FavFolderCreateResp);
//
rpc FavFolderDelete (FavFolderDeleteReq) returns (FavFolderDeleteResp);
//
rpc PickFeed (PickFeedReq) returns (PickFeedResp);
//
rpc PickCardDetail (PickCardDetailReq) returns (PickCardDetailResp);
}
//
message Author {
//
int64 mid = 1;
//
string name = 2;
//
string avatar = 3;
//
FollowRelation relation = 4;
}
//
message BKArcDetailsReq {
//
repeated PlayItem items = 1;
//
bilibili.app.archive.middleware.v1.PlayerArgs playerArgs = 2;
}
//
message BKArcDetailsResp {
//
repeated DetailItem list = 1;
}
//
message BKArchive {
//
int64 oid = 1;
//
string title = 2;
//
string cover = 3;
//
string desc = 4;
//
int64 duration = 5;
//
int32 rid = 6;
//
string rname = 7;
//
int64 publish = 8;
//
string displayed_oid = 9;
//
int32 copyright = 10;
//
BKArcRights rights = 11;
}
//
message BKArcPart {
//
int64 oid = 1;
//
int64 sub_id = 2;
//
string title = 3;
//
int64 duration = 4;
//
int32 page = 5;
}
//
message BKArcRights {
//
int32 no_reprint = 1;
}
//
message BKStat {
//
int32 like = 1;
//
int32 coin = 2;
//
int32 favourite = 3;
//
int32 reply = 4;
//
int32 share = 5;
//
int32 view = 6;
//
bool has_like = 7;
//
bool has_coin = 8;
//
bool has_fav = 9;
}
//
message CardModule {
//
int32 module_type = 1;
oneof module {
//
PkcmHeader module_header = 2;
//
PkcmArchive module_archive = 3;
//
PkcmCenterButton module_cbtn = 4;
}
}
//
enum CardModuleType {
Module_invalid = 0;
Module_header = 1;
Module_archive = 2;
Module_cbtn = 3;
}
//
message CoinAddReq {
//
PlayItem item = 1;
//
int32 num = 2;
//
bool thumb_up = 3;
}
//
message CoinAddResp {
//
string message = 1;
}
//
message DashItem {
//
int32 id = 1;
//
string base_url = 2;
//
repeated string backup_url = 3;
//
int32 bandwidth = 4;
//
string mime_type = 5;
//
string codecs = 6;
//
DashSegmentBase segment_base = 12;
//
int32 codecid = 13;
//
string md5 = 14;
//
int64 size = 15;
}
//
message DashSegmentBase {
//
string initialization = 1;
//
string index_range = 2;
}
//
message DetailItem {
//
PlayItem item = 1;
//
BKArchive arc = 2;
//
repeated BKArcPart parts = 3;
//
Author owner = 4;
//
BKStat stat = 5;
//
int64 last_part = 6;
//
int64 progress = 7;
//
int32 playable = 8;
//
string message = 9;
//
map<int64,PlayInfo> player_info = 10;
}
//
message EventTracking {
//
string operator = 1;
//
string batch = 2;
//
string track_id = 3;
//
string entity_type = 4;
//
string entity_id = 5;
}
//
message FavFolder {
//
int64 fid = 1;
//
int32 folder_type = 2;
//
FavFolderAuthor owner = 3;
//
string name = 4;
//
string cover = 5;
//
string desc = 6;
//
int32 count = 7;
//
int32 attr = 8;
//
int32 state = 9;
//
int32 favored = 10;
//
int64 ctime = 11;
//
int64 mtime = 12;
//
int32 stat_fav_cnt = 13;
//
int32 stat_share_cnt = 14;
//
int32 stat_like_cnt = 15;
//
int32 stat_Play_cnt = 16;
//
int32 stat_reply_cnt = 17;
//
int32 fav_state = 18;
}
//
message FavFolderAction {
//
int64 fid = 1;
//
int32 folder_type = 2;
//
int32 action = 3;
}
//
message FavFolderAuthor {
//
int64 mid = 1;
//
string name = 2;
}
//
message FavFolderCreateReq {
//
string name = 1;
//
string desc = 2;
//
int32 public = 3;
//
int32 folder_type = 4;
}
//
message FavFolderCreateResp {
//
int64 fid = 1;
//
int32 folder_type = 2;
//
string message = 3;
}
//
message FavFolderDeleteReq {
//
int64 fid = 1;
//
int32 folder_type = 2;
}
//
message FavFolderDeleteResp {
//
string message = 1;
}
//
message FavFolderDetailReq {
//
int64 fid = 1;
//
int32 folder_type = 2;
//
int64 fav_mid = 3;
//
FavItem last_item = 4;
//
int32 page_size = 5;
//
bool need_folder_info = 6;
}
//
message FavFolderDetailResp {
//
int32 total = 1;
//
bool reach_end = 2;
//
repeated FavItemDetail list = 3;
//
FavFolder folder_info = 4;
}
//
message FavFolderListReq {
//
repeated int32 folder_types = 1;
//
PlayItem item = 2;
}
//
message FavFolderListResp {
//
repeated FavFolder list = 1;
}
//
message FavFolderMeta {
//
int64 fid = 1;
//
int32 folder_type = 2;
}
//
message FavItem {
//
int32 item_type = 1;
//
int64 oid = 2;
//
int64 fid = 3;
//
int64 mid = 4;
//
int64 mtime = 5;
//
int64 ctime = 6;
//
EventTracking et = 7;
}
//
message FavItemAddReq {
//
int64 fid = 1;
//
int32 folder_type = 2;
oneof item {
//
PlayItem play = 3;
//
FavItem fav = 4;
}
}
//
message FavItemAddResp {
//
string message = 1;
}
//
message FavItemAuthor {
//
int64 mid = 1;
//
string name = 2;
}
//
message FavItemBatchReq {
//
repeated FavFolderAction actions = 1;
oneof item {
//
PlayItem play = 2;
//
FavItem fav = 3;
}
}
//
message FavItemBatchResp {
//
string message = 1;
}
//
message FavItemDelReq {
//
int64 fid = 1;
//
int32 folder_type = 2;
oneof item {
//
PlayItem play = 3;
//
FavItem fav = 4;
}
}
//
message FavItemDelResp {
//
string message = 1;
}
//
message FavItemDetail {
//
FavItem item = 1;
//
FavItemAuthor owner = 2;
//
FavItemStat stat = 3;
//
string cover = 4;
//
string name = 5;
//
int64 duration = 6;
//
int32 state = 7;
//
string message = 8;
//
int32 parts = 9;
}
//
message FavItemStat {
//
int32 view = 1;
//
int32 reply = 2;
}
//
message FavoredInAnyFoldersReq {
//
repeated int32 folder_types = 1;
//
PlayItem item = 2;
}
//
message FavoredInAnyFoldersResp {
//
repeated FavFolderMeta folders = 1;
//
PlayItem item = 2;
}
//
message FollowRelation {
//
int32 status = 1;
}
//
message FormatDescription {
//
int32 quality = 1;
//
string format = 2;
//
string description = 3;
//
string display_desc = 4;
//
string superscript = 5;
}
//
message PageOption {
//
int32 page_size = 1;
//
int32 direction = 2;
//
PlayItem last_item = 3;
}
//
message PickArchive {
//
PlayItem item = 1;
//
string title = 2;
//
PickArchiveAuthor owner = 3;
//
string cover = 4;
//
int64 duration = 5;
//
int32 parts = 6;
//
int32 stat_view = 7;
//
int32 stat_reply = 8;
//
int32 state = 9;
//
string message = 10;
}
//
message PickArchiveAuthor {
//
int64 mid = 1;
//
string name = 2;
}
//
message PickCard {
//
int64 pick_id = 1;
//
int64 card_id = 2;
//
string card_name = 3;
//
repeated CardModule modules = 4;
}
//
message PickCardDetailReq {
//
int64 card_id = 1;
//
int64 pick_id = 2;
}
//
message PickCardDetailResp {
//
int64 card_id = 1;
//
int64 pick_id = 2;
//
repeated CardModule modules = 3;
}
//
message PickFeedReq {
//
int64 offset = 1;
}
//
message PickFeedResp {
//
int64 offset = 1;
//
repeated PickCard cards = 2;
}
//
message PkcmArchive {
//
PickArchive arc = 1;
//
string pick_reason = 2;
}
//
message PkcmCenterButton {
//
string icon_head = 1;
//
string icon_tail = 2;
//
string title = 3;
//
string uri = 4;
}
//
message PkcmHeader {
//
string title = 1;
//
string desc = 2;
//
string btn_icon = 3;
//
string btn_text = 4;
//
string btn_uri = 5;
}
//
message PlayActionReportReq {
//
PlayItem item = 1;
}
//
message PlayDASH {
//
int32 duration = 1;
//
float min_buffer_time = 2;
//
repeated DashItem audio = 3;
}
//
message PlayHistoryAddReq {
//
PlayItem item = 1;
//
int64 progress = 2;
//
int64 duration = 3;
//
int32 play_style = 4;
}
//
message PlayHistoryDelReq {
//
repeated PlayItem items = 1;
//
bool truncate = 2;
}
//
message PlayHistoryReq {
PageOption page_opt = 1;
}
//
message PlayHistoryResp {
//
int32 total = 1;
//
bool reach_end = 2;
//
repeated DetailItem list = 3;
}
//
message PlayInfo {
//
int32 qn = 1;
//
string format = 2;
//
int32 qn_type = 3;
oneof info {
//
PlayURL play_url = 4;
//
PlayDASH play_dash = 5;
}
int32 fnver = 6;
//
int32 fnval = 7;
//
repeated int32 formats = 8;
//
int32 video_codecid = 9;
//
int64 length = 10;
//
int32 code = 11;
//
string message = 12;
}
//
message PlayItem {
//
int32 item_type = 1;
//
int64 oid = 3;
//
repeated int64 sub_id = 4;
//
EventTracking et = 5;
}
//
message PlaylistAddReq {
//
repeated PlayItem items = 1;
oneof pos {
//
PlayItem after = 2;
//
bool head = 3;
//
bool tail = 4;
}
}
//
message PlaylistDelReq {
//
repeated PlayItem items = 1;
//
bool truncate = 2;
}
//
message PlaylistReq {
//
int32 from = 1;
//
int64 id = 2;
//
PlayItem anchor = 3;
//
PageOption page_opt = 4;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5;
//
int64 extra_id = 6;
}
//
message PlaylistResp {
//
int32 total = 1;
//
bool reach_start = 2;
//
bool reach_end = 3;
//
repeated DetailItem list = 4;
//
PlayItem last_play = 5;
//
int64 last_progress = 6;
}
//
enum PlaylistSource {
DEFAULT = 0;
MEM_SPACE = 1;
AUDIO_COLLECTION = 2;
AUDIO_CARD = 3;
USER_FAVOURITE = 4;
UP_ARCHIVE = 5;
AUDIO_CACHE = 6;
PICK_CARD = 7;
}
//
message PlayURL {
//
repeated ResponseUrl durl = 1;
}
//
message PlayURLReq {
//
PlayItem item = 1;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 2;
}
//
message PlayURLResp {
//
PlayItem item = 1;
//
int32 playable = 2;
//
string message = 3;
//
map<int64,PlayInfo> playerInfo = 4;
}
//
message RcmdPlaylistReq {
//
int32 from = 1;
//
int64 id = 2;
//
bool need_history = 3;
}
//
message RcmdPlaylistResp {
//
repeated DetailItem list = 1;
//
int64 history_len = 2;
}
//
message ResponseUrl {
//
int32 order = 1;
//
int64 length = 2;
//
int64 size = 3;
//
string ahead = 4;
//
string vhead = 5;
//
string url = 6;
//
repeated string backup_url = 7;
//
string md5 = 8;
}
//
message ThumbUpReq {
//
PlayItem item = 1;
//
int32 action = 2;
}
//
message ThumbUpResp {
//
string message = 1;
}
//
message TripleLikeReq {
//
PlayItem item = 1;
}
//
message TripleLikeResp {
//
string message = 1;
//
bool thumb_ok = 2;
//
bool coin_ok = 3;
//
bool fav_ok = 4;
}

View File

@ -0,0 +1,816 @@
syntax = "proto3";
package bilibili.app.nativeact.v1;
import "google/protobuf/any.proto";
import "bilibili/app/dynamic/v2/dynamic.proto";
import "bilibili/app/archive/middleware/v1/preload.proto";
//
message Badge {
//
string text = 1;
//
string bg_color = 2;
//
string bg_color_night = 3;
}
//
message CarouselImgCard {
//
int64 content_style = 1;
//
repeated CarouselImgItem images = 2;
}
//
message CarouselImgItem {
//
string image = 1;
//
string uri = 2;
//
int64 length = 3;
//
int64 width = 4;
//
TopTab top_tab = 5;
//
int64 height = 6;
}
//
message CarouselWordCard {
//
int64 content_style = 1;
//
int64 scroll_type = 2;
//
repeated CarouselWordItem words = 3;
}
//
message CarouselWordItem {
//
string content = 1;
}
//
message Color {
//
string bg_color = 1;
//
string title_color = 2;
//
string top_font_color = 3;
//
string bottom_font_color = 4;
//
string font_color = 5;
//
string text_title_font_color = 6;
//
string indicator_color = 7;
//
string card_bg_color = 8;
//
string card_title_font_color = 9;
//
string card_title_bg_color = 10;
//
string view_more_font_color = 11;
//
string view_more_bg_color = 12;
//
string timeline_color = 13;
//
string rcmd_font_color = 14;
//
string subtitle_font_color = 15;
//
string selected_font_color = 16;
//
string selected_bg_color = 17;
//
string unselected_font_color = 18;
//
string unselected_bg_color = 19;
//
string nt_selected_font_color = 20;
//
string nt_selected_bg_color = 21;
//
string nt_unselected_font_color = 22;
//
string nt_unselected_bg_color = 23;
//
string progress_bar_color = 24;
}
//
message DynamicActMoreCard {
//
string text = 1;
//
string uri = 2;
//
SubpageData subpage_data = 3;
}
//
message DynamicCard {
//
bilibili.app.dynamic.v2.DynamicItem dynamic = 1;
}
//
message DynamicMoreCard {
//
string text = 1;
//
string uri = 2;
//
SubpageData subpage_data = 3;
}
//
message DynamicParams {
//
google.protobuf.Any feed_offset = 1;
//
int64 offset = 2;
//
int64 last_group = 3;
//
int64 module_id = 4;
//
int64 sort_type = 5;
}
//
message DynamicReq {
//
string raw_params = 1;
//
DynamicParams params = 2;
//
string from_spmid = 3;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
//
int32 local_time = 5;
//
bool is_cold_start = 6;
//
int64 primary_page_id = 7;
}
//
message DynamicResp {
//
Module module = 1;
}
//
message EditorParams {
//
int64 offset = 1;
//
int64 module_id = 2;
}
//
message EditorRecommendCard {
//
string top_icon = 1;
//
string top_content = 2;
//
string bottom_icon = 3;
//
string bottom_content = 4;
//
string cover_image_uri = 5;
//
string title = 6;
//
string uri = 7;
//
string position1 = 8;
//
string position2 = 9;
//
string position3 = 10;
//
string position4 = 11;
//
string position5 = 12;
//
Share share = 13;
//
Badge badge = 14;
//
ReportDic report_dic = 15;
//
Setting setting = 16;
//
string middle_icon = 17;
//
string resource_type = 18;
}
//
message EditorReq {
//
string raw_params = 1;
//
EditorParams params = 2;
//
int64 primary_page_id = 3;
}
//
message EditorResp {
//
Module module = 1;
}
//
message GameCard {
//
string image = 1;
//
string title = 2;
//
string uri = 3;
//
string subtitle = 4;
//
string content = 5;
}
//
message HeaderCard {
//
string user_image = 1;
//
string user_name = 2;
//
string sponsor_content = 3;
//
string high_light_image = 4;
//
string low_light_image = 5;
//
string uri = 6;
//
string view_num = 7;
//
string discuss_num = 8;
//
bool is_subscribed = 9;
}
//
message ImageTitleCard {
//
string image = 1;
}
//
message IndexReq {
//
int64 page_id = 1;
//
string activity_from = 2;
//
int64 dynamic_id = 3;
//
string share_origin = 4;
//
int64 tab_id = 5;
//
int64 tab_module_id = 6;
//
int32 https_url_req = 7;
//
string from_spmid = 8;
//
string current_tab = 9;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 10;
//
int32 local_time = 11;
//
bool is_cold_start = 12;
//
int64 primary_page_id = 13;
//
string tab_from = 14;
}
//
message InlineIndexReq {
int64 page_id = 1;
//
int32 https_url_req = 2;
//
string from_spmid = 3;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
//
int32 local_time = 5;
//
bool is_cold_start = 6;
}
//
message LayerDynamic {
//
string title = 1;
//
bilibili.app.dynamic.v2.DynamicItem dynamic = 2;
}
//
message LiveCard {
//
int32 has_live = 1;
//
LiveItem content = 2;
}
//
message LiveItem {
//
int64 room_id = 1;
//
int64 uid = 2;
//
int64 live_status = 3;
//
int64 room_type = 4;
//
int64 play_type = 5;
//
string title = 6;
//
string cover = 7;
//
int64 online = 8;
//
int64 area_id = 9;
//
string area_name = 10;
//
int64 parent_area_id = 11;
//
string parent_area_name = 12;
//
int64 live_screen_type = 13;
//
int64 last_end_time = 14;
//
string link = 15;
//
int64 live_id = 16;
}
//
message Module {
//
string module_type = 1;
//
int64 module_id = 2;
//
Color module_color = 3;
//
Setting module_setting = 4;
//
repeated ModuleItem module_items = 5;
//
string subpage_params = 6;
//
string module_ukey = 7;
//
bool has_more = 8;
//
bool is_feed = 9;
}
//
message ModuleItem {
//
string card_type = 1;
//
string card_id = 2;
oneof card_detail {
//
EditorRecommendCard editor_recommend_card = 10;
//
ParticipationCard participation_card = 11;
//
HeaderCard header_card = 12;
//
DynamicCard dynamic_card = 13;
//
TextCard text_card = 14;
//
TextTitleCard text_title_card = 15;
//
ImageTitleCard image_title_card = 16;
//
DynamicMoreCard dynamic_more_card = 17;
//
DynamicActMoreCard dynamic_act_more_card = 18;
//
LiveCard live_card = 19;
//
CarouselImgCard carousel_img_card = 20;
//
CarouselWordCard carousel_word_card = 21;
//
ResourceCard resource_card = 22;
//
ResourceMoreCard resource_more_card = 23;
//
GameCard game_card = 24;
//
VideoCard video_card = 25;
//
VideoMoreCard video_more_card = 26;
}
}
//
message PageResp {
//
bool is_online = 1;
//
bool ignore_app_dark_theme = 2;
//
Color page_color = 3;
//
PageShare page_share = 4;
//
Module page_header = 5;
//
Module participation = 6;
//
repeated Module module_list = 7;
//
bool is_dynamic_feed = 8;
//
LayerDynamic layer_dynamic = 9;
//
bool is_editor_feed = 10;
//
int64 sponsor_type = 11;
//
TopTab top_tab = 12;
}
//
message PageShare {
//
int64 type = 1;
//
string title = 2;
//
string desc = 3;
//
string image = 4;
//
string inside_uri = 5;
//
string outside_uri = 6;
}
//
message ParticipationCard {
//
string image = 1;
//
string selected_image = 2;
//
repeated ParticipationCardItem items = 3;
}
//
message ParticipationCardItem {
//
string image = 1;
//
string uri = 2;
//
string title = 3;
//
string type = 4;
}
//
message PlayerDimension {
//
int64 width = 1;
//
int64 height = 2;
//
bool rotate = 3;
}
//
message ReportDic {
//
string biz_type = 1;
//
string season_type = 2;
//
int64 aid = 3;
//
int64 cid = 4;
//
int32 sub_type = 5;
//
int64 ep_id = 6;
//
int32 is_preview = 7;
//
int64 season_id = 8;
//
string author_name = 9;
}
//
message ResourceCard {
//
string title = 1;
//
string cover_image_uri = 2;
//
string uri = 3;
//
string cover_right_text = 4;
//
string cover_left_text1 = 5;
//
int64 cover_left_icon1 = 6;
//
string cover_left_text2 = 7;
//
int64 cover_left_icon2 = 8;
//
Badge badge = 9;
//
ReportDic report_dic = 10;
//
string resource_type = 11;
}
//
message ResourceMoreCard {
//
string text = 1;
//
string uri = 2;
//
SubpageData subpage_data = 3;
}
//
message ResourceParams {
//
int64 offset = 1;
//
string topic_offset = 2;
//
int64 module_id = 3;
//
int64 sort_type = 4;
}
//
message ResourceReq {
//
string raw_params = 1;
//
ResourceParams params = 2;
//
int64 primary_page_id = 3;
}
//
message ResourceResp {
//
Module module = 1;
}
//
message Setting {
//
bool display_more_button = 1;
//
bool display_title = 2;
//
bool auto_carousel = 3;
//
bool top_tab_follow_img = 4;
//
bool top_tab_fade_away = 5;
//
bool auto_play = 6;
//
bool display_unfold_button = 7;
//
bool display_num = 8;
//
bool display_view_num = 9;
//
bool display_subscribe_btn = 10;
//
bool unfold_rest = 11;
//
bool display_progress_num = 12;
//
bool display_node_num = 13;
//
bool display_node_desc = 14;
}
//
message Share {
//
bool display_later = 1;
//
int64 oid = 2;
//
string share_origin = 3;
//
int64 share_type = 4;
}
//
message SubpageData {
//
string title = 1;
//
string params = 2;
//
repeated SubpageTab tabs = 3;
}
//
message SubpageTab {
//
string name = 1;
//
string params = 2;
}
//
message TabIndexReq {
//
int64 page_id = 1;
//
int32 https_url_req = 2;
//
string from_spmid = 3;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
//
int64 primary_page_id = 5;
//
int32 local_time = 6;
//
bool is_cold_start = 7;
}
//
message TextCard {
//
string text = 1;
}
//
message TextTitleCard {
//
string title = 1;
}
//
message TopTab {
//
string bg_image1 = 1;
//
string bg_image2 = 2;
//
string tab_top_color = 3;
//
string tab_middle_color = 4;
//
string tab_bottom_color = 5;
//
string font_color = 6;
//
int64 bar_type = 7;
}
//
message TopicIndexReq {
//
int64 page_id = 1;
//
string activity_from = 2;
//
int64 dynamic_id = 3;
//
string share_origin = 4;
//
int64 tab_id = 5;
//
int64 tab_module_id = 6;
//
int32 https_url_req = 7;
//
string from_spmid = 8;
//
string current_tab = 9;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 10;
//
int32 local_time = 11;
//
bool is_cold_start = 12;
}
//
message VideoCard {
//
string title = 1;
//
string cover_image_uri = 2;
//
string cover_left_text1 = 3;
//
string cover_left_text2 = 4;
//
string cover_left_text3 = 5;
//
string uri = 6;
//
Badge badge = 7;
//
VideoRights rights = 8;
//
PlayerDimension dimension = 9;
//
ReportDic report_dic = 10;
//
string resource_type = 11;
}
//
message VideoMoreCard {
string text = 1;
//
string uri = 2;
//
SubpageData subpage_data = 3;
}
//
message VideoParams {
//
int64 offset = 1;
//
string topic_offset = 2;
//
int64 module_id = 3;
//
int64 sort_type = 4;
}
message VideoReq {
//
string raw_params = 1;
//
VideoParams params = 2;
//
int64 primary_page_id = 3;
}
//
message VideoResp {
//
Module module = 1;
}
//
message VideoRights {
//
bool ugc_pay = 1;
//
bool is_cooperation = 2;
//
bool is_pgc = 3;
}

View File

@ -0,0 +1,33 @@
syntax = "proto3";
package bilibili.app.playeronline.v1;
// 线
service PlayerOnline {
// 线
rpc GetPlayerOnline (PlayerOnlineReq) returns (PlayerOnlineReply);
}
// 线-
message PlayerOnlineReq {
// 稿 avid
int64 aid = 1;
// cid
int64 cid = 2;
//
bool play_open = 3;
}
// 线-
message PlayerOnlineReply {
//
string total_text = 1;
//
int64 sec_next = 2;
//
bool bottom_show = 3;
//
bool sdm_show = 4;
//
string sdm_text = 5;
}

View File

@ -16,30 +16,329 @@ service PlayURL {
rpc PlayConf (PlayConfReq) returns (PlayConfReply);
}
// -
message PlayURLReq {
// 稿avid
int64 aid = 1;
// cid
int64 cid = 2;
//
message AB {
//
Glance glance = 1;
//
int32 group = 2;
}
//
message ArcConf {
//
bool is_support = 1;
//
bool disabled = 2;
//
ExtraContent extra_content = 3;
}
//
enum Business {
UNKNOWN = 0; //
STORY = 1; // story业务
}
// Chronos灰度管理
message Chronos {
// md5
string md5 = 1;
//
string file = 2;
}
//
message CloudConf {
//
bool show = 1;
//
ConfType conf_type = 2;
//
FieldValue field_value = 3;
//
ConfValue conf_value = 4;
}
//
enum CodeType {
NOCODE = 0; //
CODE264 = 1; // H.264
CODE265 = 2; // H.265
}
//
enum ConfType {
NoType = 0; //
FLIPCONF = 1; //
CASTCONF = 2; //
FEEDBACK = 3; //
SUBTITLE = 4; //
PLAYBACKRATE = 5; //
TIMEUP = 6; //
PLAYBACKMODE = 7; //
SCALEMODE = 8; //
BACKGROUNDPLAY = 9; //
LIKE = 10; //
DISLIKE = 11; //
COIN = 12; //
ELEC = 13; //
SHARE = 14; //
SCREENSHOT = 15; //
LOCKSCREEN = 16; //
RECOMMEND = 17; //
PLAYBACKSPEED = 18; //
DEFINITION = 19; //
SELECTIONS = 20; //
NEXT = 21; //
EDITDM = 22; //
SMALLWINDOW = 23; //
SHAKE = 24; //
OUTERDM = 25; //
INNERDM = 26; //
PANORAMA = 27; //
DOLBY = 28; //
COLORFILTER = 29; //
}
//
message ConfValue {
oneof value {
bool switch_val = 1;
int64 selected_val = 2;
}
}
// dash条目
message DashItem {
//
int64 qn = 3;
//
int32 fnver = 4;
//
int32 fnval = 5;
//
// 0: 1:flv下载 2:dash下载
uint32 download = 6;
// url强制是用域名
// 0:使ip 1:使http 2:使https
int32 forceHost = 7;
// 4K
bool fourk = 8;
// spm
string spmid = 9;
// spm
string fromSpmid = 10;
uint32 id = 1;
// 线
string baseUrl = 2;
//
repeated string backup_url = 3;
//
uint32 bandwidth = 4;
// id
uint32 codecid = 5;
// md5
string md5 = 6;
//
uint64 size = 7;
//
string frame_rate = 8;
}
// dash视频流
message DashVideo {
// 线
string base_url = 1;
//
repeated string backup_url = 2;
//
uint32 bandwidth = 3;
// id
uint32 codecid = 4;
// md5
string md5 = 5;
//
uint64 size = 6;
// id
uint32 audioId = 7;
//
bool no_rexcode = 8;
//
string frame_rate = 9;
//
int32 width = 10;
//
int32 height = 11;
}
//
message DolbyItem {
enum Type {
NONE = 0; // NONE
COMMON = 1; //
ATMOS = 2; //
}
//
Type type = 1;
//
DashItem audio = 2;
}
//
message Event {
//
Shake shake = 1;
}
//
message ExtraContent {
//
string disabled_reason = 1;
//
int64 disabled_code = 2;
}
//
message FieldValue {
oneof value {
//
bool switch = 1;
}
}
//
message FormatDescription {
//
int32 quality = 1;
//
string format = 2;
//
string description = 3;
//
string new_description = 4;
//
string display_desc = 5;
//
string superscript = 6;
}
//
message Glance {
//
bool can_watch = 1;
//
int64 times = 2;
//
int64 duration = 3;
}
//
enum Group {
UnknownGroup = 0; //
A = 1; //
B = 2; //
C = 3; //
}
//
message PlayAbilityConf {
CloudConf background_play_conf = 1; //
CloudConf flip_conf = 2; //
CloudConf cast_conf = 3; //
CloudConf feedback_conf = 4; //
CloudConf subtitle_conf = 5; //
CloudConf playback_rate_conf = 6; //
CloudConf time_up_conf = 7; //
CloudConf playback_mode_conf = 8; //
CloudConf scale_mode_conf = 9; //
CloudConf like_conf = 10; //
CloudConf dislike_conf = 11; //
CloudConf coin_conf = 12; //
CloudConf elec_conf = 13; //
CloudConf share_conf = 14; //
CloudConf screen_shot_conf = 15; //
CloudConf lock_screen_conf = 16; //
CloudConf recommend_conf = 17; //
CloudConf playback_speed_conf = 18; //
CloudConf definition_conf = 19; //
CloudConf selections_conf = 20; //
CloudConf next_conf = 21; //
CloudConf edit_dm_conf = 22; //
CloudConf small_window_conf = 23; //
CloudConf shake_conf = 24; //
CloudConf outer_dm_conf = 25; //
CloudConf innerDmDisable = 26; //
CloudConf inner_dm_conf = 27; //
CloudConf dolby_conf = 28; //
CloudConf color_filter_conf = 29; //
}
// 稿
message PlayArcConf {
ArcConf background_play_conf = 1; //
ArcConf flip_conf = 2; //
ArcConf cast_conf = 3; //
ArcConf feedback_conf = 4; //
ArcConf subtitle_conf = 5; //
ArcConf playback_rate_conf = 6; //
ArcConf time_up_conf = 7; //
ArcConf playback_mode_conf = 8; //
ArcConf scale_mode_conf = 9; //
ArcConf like_conf = 10; //
ArcConf dislike_conf = 11; //
ArcConf coin_conf = 12; //
ArcConf elec_conf = 13; //
ArcConf share_conf = 14; //
ArcConf screen_shot_conf = 15; //
ArcConf lock_screen_conf = 16; //
ArcConf recommend_conf = 17; //
ArcConf playback_speed_conf = 18; //
ArcConf definition_conf = 19; //
ArcConf selections_conf = 20; //
ArcConf next_conf = 21; //
ArcConf edit_dm_conf = 22; //
ArcConf small_window_conf = 23; //
ArcConf shake_conf = 24; //
ArcConf outer_dm_conf = 25; //
ArcConf inner_dm_conf = 26; //
ArcConf panorama_conf = 27; //
ArcConf dolby_conf = 28; //
ArcConf screen_recording_conf = 29; //
ArcConf color_filter_conf = 30; //
}
// -
message PlayConfEditReply {
}
// -
message PlayConfEditReq {
//
repeated PlayConfState play_conf = 1;
}
// -
message PlayConfReply {
//
PlayAbilityConf play_conf = 1;
}
// -
message PlayConfReq {
}
//
message PlayConfState {
//
ConfType conf_type = 1;
//
bool show = 2;
//
FieldValue field_value = 3;
//
ConfValue conf_value = 4;
}
//
enum PlayErr {
NoErr = 0; //
WithMultiDeviceLoginErr = 1; //
}
// -
@ -72,84 +371,87 @@ message PlayURLReply {
VideoType type = 13;
}
//
message ResponseUrl {
//
uint32 order = 1;
//
uint64 length = 2;
//
uint64 size = 3;
// 线
string url = 4;
//
repeated string backup_url = 5;
// md5
string md5 = 6;
}
// dash数据
message ResponseDash {
// dash视频流
repeated DashItem video = 1;
// dash伴音流
repeated DashItem audio = 2;
}
// dash条目
message DashItem {
// -
message PlayURLReq {
// 稿avid
int64 aid = 1;
// cid
int64 cid = 2;
//
uint32 id = 1;
// 线
string baseUrl = 2;
//
repeated string backup_url = 3;
//
uint32 bandwidth = 4;
// id
uint32 codecid = 5;
// md5
string md5 = 6;
//
uint64 size = 7;
//
string frame_rate = 8;
int64 qn = 3;
//
int32 fnver = 4;
//
int32 fnval = 5;
//
// 0: 1:flv下载 2:dash下载
uint32 download = 6;
// url强制是用域名
// 0:使ip 1:使http 2:使https
int32 force_host = 7;
// 4K
bool fourk = 8;
// spm
string spmid = 9;
// spm
string from_spmid = 10;
}
//
message UpgradeLimit {
//
int32 code =1;
//
string message =2;
// url
string image =3;
//
UpgradeButton button=4;
// -
message PlayViewReply {
//
VideoInfo video_info = 1;
//
PlayAbilityConf play_conf = 2;
//
UpgradeLimit upgrade_limit = 3;
// Chronos灰度管理
Chronos chronos = 4;
// 稿
PlayArcConf play_arc = 5;
//
Event event = 6;
//
AB ab = 7;
}
//
message UpgradeButton {
//
string title = 1;
//
string link = 2;
}
//
message FormatDescription {
// -
message PlayViewReq {
// 稿avid
int64 aid = 1;
// cid
int64 cid = 2;
//
int32 quality = 1;
//
string format = 2;
//
string description = 3;
//
string new_description = 4;
//
string display_desc = 5;
//
string superscript = 6;
int64 qn = 3;
//
int32 fnver = 4;
//
int32 fnval = 5;
//
// 0: 1:flv下载 2:dash下载
uint32 download = 6;
// url强制是用域名
// 0:使ip 1:使http 2:使https
int32 force_host = 7;
// 4K
bool fourk = 8;
// spm
string spmid = 9;
// spm
string from_spmid = 10;
//
int32 teenagers_mode = 11;
//
CodeType prefer_codec_type = 12;
//
Business business = 13;
//
int64 voice_balance = 14;
}
// -
message ProjectReply {
PlayURLReply project = 1;
}
// -
@ -184,76 +486,34 @@ message ProjectReq {
int32 device_type = 12;
}
// -
message ProjectReply {
PlayURLReply project = 1;
// dash数据
message ResponseDash {
// dash视频流
repeated DashItem video = 1;
// dash伴音流
repeated DashItem audio = 2;
}
// -
message PlayViewReq {
// 稿avid
int64 aid = 1;
// cid
int64 cid = 2;
//
int64 qn = 3;
//
int32 fnver = 4;
//
int32 fnval = 5;
//
// 0: 1:flv下载 2:dash下载
uint32 download = 6;
// url强制是用域名
// 0:使ip 1:使http 2:使https
int32 force_host = 7;
// 4K
bool fourk = 8;
// spm
string spmid = 9;
// spm
string from_spmid = 10;
//
int32 teenagers_mode = 11;
//
CodeType prefer_codec_type = 12;
//
Business business = 13;
//
message ResponseUrl {
//
uint32 order = 1;
//
uint64 length = 2;
//
uint64 size = 3;
// 线
string url = 4;
//
repeated string backup_url = 5;
// md5
string md5 = 6;
}
//
enum Business {
UNKNOWN = 0; //
STORY = 1; // story业务
}
//
enum CodeType {
NOCODE = 0; //
CODE264 = 1; // H.264
CODE265 = 2; // H.265
}
// -
message PlayViewReply {
//
VideoInfo video_info = 1;
//
PlayAbilityConf play_conf = 2;
//
UpgradeLimit upgrade_limit = 3;
// Chronos灰度管理
Chronos chronos = 4;
// 稿
PlayArcConf play_arc = 5;
//
Event event = 6;
}
//
message Event {
//
Shake shake = 1;
//
message SegmentVideo {
//
repeated ResponseUrl segment = 1;
}
//
@ -262,176 +522,6 @@ message Shake {
string file = 1;
}
// Chronos灰度管理
message Chronos {
// md5
string md5 = 1;
//
string file = 2;
}
// -
message PlayConfReq {}
// -
message PlayConfReply {
//
PlayAbilityConf play_conf = 1;
}
//
message PlayAbilityConf {
CloudConf background_play_conf = 1; //
CloudConf flip_conf = 2; //
CloudConf cast_conf = 3; //
CloudConf feedback_conf = 4; //
CloudConf subtitle_conf = 5; //
CloudConf playback_rate_conf = 6; //
CloudConf time_up_conf = 7; //
CloudConf playback_mode_conf = 8; //
CloudConf scale_mode_conf = 9; //
CloudConf like_conf = 10; //
CloudConf dislike_conf = 11; //
CloudConf coin_conf = 12; //
CloudConf elec_conf = 13; //
CloudConf share_conf = 14; //
CloudConf screen_shot_conf = 15; //
CloudConf lock_screen_conf = 16; //
CloudConf recommend_conf = 17; //
CloudConf playback_speed_conf = 18; //
CloudConf definition_conf = 19; //
CloudConf selections_conf = 20; //
CloudConf next_conf = 21; //
CloudConf edit_dm_conf = 22; //
CloudConf small_window_conf = 23; //
CloudConf shake_conf = 24; //
CloudConf outer_dm_conf = 25; //
CloudConf innerDmDisable = 26; //
CloudConf inner_dm_conf = 27; //
CloudConf dolby_conf = 28; //
}
// 稿
message PlayArcConf {
ArcConf background_play_conf = 1; //
ArcConf flip_conf = 2; //
ArcConf cast_conf = 3; //
ArcConf feedback_conf = 4; //
ArcConf subtitle_conf = 5; //
ArcConf playback_rate_conf = 6; //
ArcConf time_up_conf = 7; //
ArcConf playback_mode_conf = 8; //
ArcConf scale_mode_conf = 9; //
ArcConf like_conf = 10; //
ArcConf dislike_conf = 11; //
ArcConf coin_conf = 12; //
ArcConf elec_conf = 13; //
ArcConf share_conf = 14; //
ArcConf screen_shot_conf = 15; //
ArcConf lock_screen_conf = 16; //
ArcConf recommend_conf = 17; //
ArcConf playback_speed_conf = 18; //
ArcConf definition_conf = 19; //
ArcConf selections_conf = 20; //
ArcConf next_conf = 21; //
ArcConf edit_dm_conf = 22; //
ArcConf small_window_conf = 23; //
ArcConf shake_conf = 24; //
ArcConf outer_dm_conf = 25; //
ArcConf inner_dm_conf = 26; //
ArcConf panorama_conf = 27; //
ArcConf dolby_conf = 28; //
}
//
enum ConfType {
NoType = 0; //
FLIPCONF = 1; //
CASTCONF = 2; //
FEEDBACK = 3; //
SUBTITLE = 4; //
PLAYBACKRATE = 5; //
TIMEUP = 6; //
PLAYBACKMODE = 7; //
SCALEMODE = 8; //
BACKGROUNDPLAY = 9; //
LIKE = 10; //
DISLIKE = 11; //
COIN = 12; //
ELEC = 13; //
SHARE = 14; //
SCREENSHOT = 15; //
LOCKSCREEN = 16; //
RECOMMEND = 17; //
PLAYBACKSPEED = 18; //
DEFINITION = 19; //
SELECTIONS = 20; //
NEXT = 21; //
EDITDM = 22; //
SMALLWINDOW = 23; //
SHAKE = 24; //
OUTERDM = 25; //
INNERDM = 26; //
PANORAMA = 27; //
DOLBY = 28; //
}
//
message CloudConf {
//
bool show = 1;
//
ConfType conf_type = 2;
//
FieldValue field_value = 3;
}
//
message FieldValue {
//
oneof value {
//
bool switch = 1;
}
}
//
message ArcConf {
//
bool is_support = 1;
}
// url信息
message VideoInfo {
//
uint32 quality = 1;
//
string format = 2;
//
uint64 timelength = 3;
// id
uint32 video_codecid = 4;
//
repeated Stream stream_list = 5;
//
repeated DashItem dash_audio = 6;
//
DolbyItem dolby = 7;
}
//
message DolbyItem {
enum Type {
NONE = 0; // NONE
COMMON = 1; //
ATMOS = 2; //
}
//
Type type = 1;
//
DashItem audio = 2;
}
//
message Stream {
//
@ -445,18 +535,6 @@ message Stream {
}
}
//
message SegmentVideo {
//
repeated ResponseUrl segment = 1;
}
//
enum PlayErr {
NoErr = 0; //
WithMultiDeviceLoginErr = 1; //
}
//
message StreamInfo {
//
@ -497,43 +575,45 @@ message StreamLimit {
string msg = 3;
}
// -
message PlayConfEditReq {
//
repeated PlayConfState play_conf = 1;
//
message UpgradeButton {
//
string title = 1;
//
string link = 2;
}
// -
message PlayConfEditReply {}
//
message PlayConfState {
//
ConfType conf_type = 1;
//
bool show = 2;
//
FieldValue field_value = 3;
//
message UpgradeLimit {
//
int32 code = 1;
//
string message = 2;
// url
string image = 3;
//
UpgradeButton button = 4;
}
// dash视频流
message DashVideo {
// 线
string base_url = 1;
//
repeated string backup_url = 2;
//
uint32 bandwidth = 3;
// id
uint32 codecid = 4;
// md5
string md5 = 5;
//
uint64 size = 6;
// id
uint32 audioId = 7;
//
bool no_rexcode = 8;
// url信息
message VideoInfo {
//
uint32 quality = 1;
//
string format = 2;
//
uint64 timelength = 3;
// id
uint32 video_codecid = 4;
//
repeated Stream stream_list = 5;
//
repeated DashItem dash_audio = 6;
//
DolbyItem dolby = 7;
//
VolumeInfo volume = 8;
}
//
@ -543,3 +623,21 @@ enum VideoType {
DASH_VALUE = 2; // dash格式
MP4_VALUE = 3; // mp4格式
}
//
message VolumeInfo {
//
double measured_i = 1;
//
double measured_lra = 2;
//
double measured_tp = 3;
//
double measured_threshold = 4;
//
double target_offset = 5;
//
double target_i = 6;
//
double target_tp = 7;
}

File diff suppressed because it is too large Load Diff

View File

@ -14,6 +14,8 @@ service DM {
rpc DmSegOtt(DmSegOttReq) returns(DmSegOttReply);
// SDK弹幕列表
rpc DmSegSDK(DmSegSDKReq) returns(DmSegSDKReply);
//
rpc DmExpoReport (DmExpoReportReq) returns (DmExpoReportRes);
}
// SDK-

View File

@ -0,0 +1,35 @@
syntax = "proto3";
package bilibili.community.service.govern.v1;
import "google/protobuf/empty.proto";
//
service Qoe {
//
rpc QoeReport (QoeReportReq) returns (google.protobuf.Empty);
}
//
message QoeReportReq {
//
int64 id = 1;
//
int64 scene = 2;
//
int32 type = 3;
//
bool cancel = 4;
//
string business_type = 5;
//
QoeScoreResult score_result = 6;
//
string business_data = 7;
}
//
message QoeScoreResult {
//
float score = 1;
}

View File

@ -0,0 +1,25 @@
syntax = "proto3";
package bilibili.pangu.gallery.v1;
import "google/protobuf/empty.proto";
//
service GalleryInterface {
//
rpc Ping (google.protobuf.Empty) returns (google.protobuf.Empty);
//
rpc UserInfo (GetUserInfoReq) returns (GetUserInfoReply);
//
rpc ListNFTByMid (ListNFTByMidReq) returns (ListNFTByMidReply);
//
rpc ListOrderByMid (ListOrderByMidReq) returns (ListOrderByMidReply);
//
rpc BasicInfo (BasicInfoReq) returns (BasicInfoReply);
//
rpc UserCheck (UserCheckReq) returns (UserCheckReply);
//
rpc AgreePolicy (AgreePolicyReq) returns (AgreePolicyReply);
//
rpc GetLastPolicy (GetLastPolicyReq) returns (GetLastPolicyReply);
}

View File

@ -0,0 +1,9 @@
syntax = "proto3";
package bilibili.vega.deneb.v1;
//
service VegaDenebRPC {
//
rpc MessagePulls (MessagePullsReq) returns (MessagePullsReply);
}