mirror of
https://github.com/SocialSisterYi/bilibili-API-collect.git
synced 2025-03-10 08:20:40 +08:00
fix: unite grpc api protos from 7.41.0+ (#774)
* fix: viewunite grpc protos from 7.41.0+ * fix typo * fix: OgvSeasons * fix: Relates * fix: pgcanymodel Stat * fix: playshared.proto * update: playerunite * fix mistake in playunite proto
This commit is contained in:
parent
c19fd073f8
commit
b01aae4cf4
@ -22,6 +22,8 @@ message PlayViewUniteReq {
|
||||
string from_spmid = 3;
|
||||
// 补充信息, 如ep_id等
|
||||
map<string, string> extra_content = 4;
|
||||
//
|
||||
string bvid = 5;
|
||||
}
|
||||
|
||||
//
|
||||
@ -42,4 +44,6 @@ message PlayViewUniteReply {
|
||||
bilibili.playershared.QnTrialInfo qn_trial_info = 7;
|
||||
//
|
||||
bilibili.playershared.History history = 8;
|
||||
//
|
||||
bilibili.playershared.ViewInfo view_info = 9;
|
||||
}
|
||||
|
2009
grpc_api/bilibili/app/viewunite/common.proto
Normal file
2009
grpc_api/bilibili/app/viewunite/common.proto
Normal file
File diff suppressed because it is too large
Load Diff
@ -2,10 +2,244 @@ syntax = "proto3";
|
||||
|
||||
package bilibili.app.viewunite.pgcanymodel;
|
||||
|
||||
import "bilibili/app/viewunite/common.proto";
|
||||
|
||||
//
|
||||
message Earphone {
|
||||
//
|
||||
string product_model = 1;
|
||||
//
|
||||
string like_toast_text = 2;
|
||||
//
|
||||
string switch_toast_text = 3;
|
||||
//
|
||||
string like_toast_voice = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message EarphoneConf {
|
||||
//
|
||||
repeated Earphone sp_phones = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message MultiViewInfo {
|
||||
//
|
||||
bool is_multi_view_season = 1;
|
||||
//
|
||||
string changing_dance = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message OgvData {
|
||||
//
|
||||
int32 media_id = 1;
|
||||
//
|
||||
int64 season_id = 2;
|
||||
//
|
||||
int32 season_type = 3;
|
||||
//
|
||||
int32 show_season_type = 4;
|
||||
//
|
||||
Rights rights = 5;
|
||||
//
|
||||
UserStatus user_status = 6;
|
||||
//
|
||||
int64 aid = 7;
|
||||
//
|
||||
Stat stat = 8;
|
||||
//
|
||||
int32 mode = 9;
|
||||
//
|
||||
Publish publish = 10;
|
||||
//
|
||||
PlayStrategy play_strategy = 11;
|
||||
//
|
||||
MultiViewInfo multi_view_info = 12;
|
||||
//
|
||||
OgvSwitch ogv_switch = 13;
|
||||
//
|
||||
int32 total_ep = 14;
|
||||
//
|
||||
bilibili.app.viewunite.common.NewEp new_ep = 15;
|
||||
//
|
||||
Reserve reserve = 16;
|
||||
//
|
||||
int32 status = 17;
|
||||
//
|
||||
repeated PlayFloatLayerActivity activity_float_layer = 18;
|
||||
//
|
||||
EarphoneConf earphone_conf = 19;
|
||||
//
|
||||
string cover = 20;
|
||||
//
|
||||
string square_cover = 21;
|
||||
//
|
||||
string share_url = 22;
|
||||
//
|
||||
string short_link = 23;
|
||||
//
|
||||
string title = 24;
|
||||
//
|
||||
string horizontal_cover169 = 25;
|
||||
//
|
||||
string horizontal_cover1610 = 26;
|
||||
//
|
||||
int32 has_can_play_ep = 27;
|
||||
}
|
||||
|
||||
//
|
||||
message OgvSwitch {
|
||||
//
|
||||
int32 reduce_short_title_spacing = 1;
|
||||
//
|
||||
int32 merge_position_section_for_cinema = 2;
|
||||
//
|
||||
int32 merge_preview_section = 3;
|
||||
//
|
||||
int32 enable_show_vt_info = 4;
|
||||
}
|
||||
|
||||
// 播放器浮层广告(?)
|
||||
message PlayFloatLayerActivity {
|
||||
//
|
||||
int32 id = 1;
|
||||
//
|
||||
string title = 2;
|
||||
//
|
||||
int32 type = 3;
|
||||
//
|
||||
int32 ad_badge_type = 4;
|
||||
//
|
||||
string link = 5;
|
||||
//
|
||||
string pic_url = 6;
|
||||
//
|
||||
string pic_anima_url = 7;
|
||||
//
|
||||
bilibili.app.viewunite.common.BadgeInfo badge = 8;
|
||||
//
|
||||
int64 show_rate_time = 9;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayStrategy {
|
||||
//
|
||||
repeated string strategies = 1;
|
||||
//
|
||||
int32 recommend_show_strategy = 2;
|
||||
//
|
||||
string auto_play_toast = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message Publish {
|
||||
//
|
||||
string pub_time = 1;
|
||||
//
|
||||
string pub_time_show = 2;
|
||||
//
|
||||
int32 is_started = 3;
|
||||
//
|
||||
int32 is_finish = 4;
|
||||
//
|
||||
int32 weekday = 5;
|
||||
//
|
||||
string release_date_show = 6;
|
||||
//
|
||||
string time_length_show = 7;
|
||||
//
|
||||
int32 unknow_pub_date = 8;
|
||||
//
|
||||
string update_info_desc = 9;
|
||||
}
|
||||
|
||||
//
|
||||
message Reserve {
|
||||
//
|
||||
repeated bilibili.app.viewunite.common.ViewEpisode episodes = 1;
|
||||
//
|
||||
string tip = 2;
|
||||
}
|
||||
|
||||
// 权限相关信息
|
||||
message Rights {
|
||||
//
|
||||
int32 allow_download = 1;
|
||||
//
|
||||
int32 allow_review = 2;
|
||||
//
|
||||
int32 can_watch = 3;
|
||||
//
|
||||
int32 is_cover_show = 4;
|
||||
//
|
||||
string copyright = 5;
|
||||
//
|
||||
string copyright_name = 6;
|
||||
//
|
||||
int32 allow_bp = 7;
|
||||
//
|
||||
int32 area_limit = 8;
|
||||
//
|
||||
int32 is_preview = 9;
|
||||
//
|
||||
int32 ban_area_show = 10;
|
||||
//
|
||||
int32 watch_platform = 11;
|
||||
//
|
||||
int32 allow_bp_rank = 12;
|
||||
//
|
||||
string resource = 13;
|
||||
//
|
||||
int32 forbid_pre = 14;
|
||||
//
|
||||
int32 only_vip_download = 15;
|
||||
//
|
||||
int32 new_allow_download = 16;
|
||||
}
|
||||
|
||||
//
|
||||
message Stat {
|
||||
//
|
||||
string followers = 1;
|
||||
//
|
||||
bilibili.app.viewunite.common.StatInfo play_data = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message UserStatus {
|
||||
//
|
||||
int32 show = 1;
|
||||
//
|
||||
int32 follow = 2;
|
||||
//
|
||||
int32 follow_status = 3;
|
||||
//
|
||||
int32 pay = 4;
|
||||
//
|
||||
int32 sponsor = 5;
|
||||
//
|
||||
int32 vip = 6;
|
||||
// vip 是否被冻结
|
||||
int32 vip_frozen = 7;
|
||||
//
|
||||
WatchProgress watch_progress = 8;
|
||||
}
|
||||
|
||||
//
|
||||
message ViewPgcAny {
|
||||
//
|
||||
uint64 season_id = 1;
|
||||
OgvData ogv_data = 1;
|
||||
//
|
||||
int32 season_type = 2;
|
||||
}
|
||||
map<int64, bilibili.app.viewunite.common.Staff> all_up_info = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message WatchProgress {
|
||||
//
|
||||
int64 last_ep_id = 1;
|
||||
//
|
||||
string last_ep_index = 2;
|
||||
//
|
||||
int64 last_time = 3;
|
||||
}
|
||||
|
@ -2,9 +2,133 @@ syntax = "proto3";
|
||||
|
||||
package bilibili.app.viewunite.ugcanymodel;
|
||||
|
||||
import "bilibili/app/viewunite/common.proto";
|
||||
|
||||
//
|
||||
message ViewUgcAny {
|
||||
|
||||
message Dislike {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
string subtitle = 2;
|
||||
//
|
||||
repeated DislikeReason reasons = 3;
|
||||
}
|
||||
|
||||
//
|
||||
//
|
||||
message DislikeReason {
|
||||
//
|
||||
int64 id = 1;
|
||||
//
|
||||
int64 mid = 2;
|
||||
//
|
||||
int32 rid = 3;
|
||||
//
|
||||
int64 tag_id = 4;
|
||||
//
|
||||
string name = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message ElecRank {
|
||||
//
|
||||
repeated ElecRankItem list = 1;
|
||||
//
|
||||
int64 count = 2;
|
||||
//
|
||||
string text = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message ElecRankItem {
|
||||
//
|
||||
string avatar = 1;
|
||||
//
|
||||
string nickname = 2;
|
||||
//
|
||||
string message = 3;
|
||||
//
|
||||
int64 mid = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message Premiere {
|
||||
//
|
||||
PremiereState premiere_state = 1;
|
||||
//
|
||||
int64 start_time = 2;
|
||||
//
|
||||
int64 service_time = 3;
|
||||
//
|
||||
int64 room_id = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message PremiereReserve {
|
||||
//
|
||||
int64 reserve_id = 1;
|
||||
//
|
||||
int64 count = 2;
|
||||
//
|
||||
bool is_follow = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message PremiereResource {
|
||||
//
|
||||
Premiere premiere = 1;
|
||||
//
|
||||
PremiereReserve reserve = 2;
|
||||
//
|
||||
PremiereText text = 3;
|
||||
}
|
||||
|
||||
enum PremiereState {
|
||||
//
|
||||
premiere_none = 0;
|
||||
//
|
||||
premiere_before = 1;
|
||||
//
|
||||
premiere_in = 2;
|
||||
//
|
||||
premiere_after = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message PremiereText {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
string subtitle = 2;
|
||||
//
|
||||
string online_text = 3;
|
||||
//
|
||||
string online_icon = 4;
|
||||
//
|
||||
string online_icon_dark = 5;
|
||||
//
|
||||
string intro_title = 6;
|
||||
//
|
||||
string intro_icon = 7;
|
||||
//
|
||||
string guidance_pulldown = 8;
|
||||
//
|
||||
string guidance_entry = 9;
|
||||
//
|
||||
string intro_icon_night = 10;
|
||||
}
|
||||
|
||||
//
|
||||
message ViewUgcAny {
|
||||
//
|
||||
PremiereResource premiere = 1;
|
||||
//
|
||||
Dislike dislike = 2;
|
||||
//
|
||||
string short_link = 3;
|
||||
//
|
||||
string share_subtitle = 4;
|
||||
//
|
||||
repeated bilibili.app.viewunite.common.Page pages = 5;
|
||||
//
|
||||
ElecRank elec_rank = 6;
|
||||
}
|
||||
|
@ -3,33 +3,82 @@ syntax = "proto3";
|
||||
package bilibili.app.viewunite.v1;
|
||||
|
||||
import "bilibili/app/archive/middleware/v1/preload.proto";
|
||||
|
||||
import "bilibili/app/viewunite/common.proto";
|
||||
import "bilibili/pagination/pagination.proto";
|
||||
import "google/protobuf/any.proto";
|
||||
|
||||
// 统一视频信息接口(7.23启用)
|
||||
// 统一视频信息接口 (7.41.0+)
|
||||
service View {
|
||||
//
|
||||
rpc ArcRefresh(ArcRefreshReq) returns (ArcRefreshReply);
|
||||
// 视频详情页下方推荐
|
||||
rpc RelatesFeed(RelatesFeedReq) returns (RelatesFeedReply);
|
||||
//
|
||||
rpc View(ViewReq) returns (ViewReply);
|
||||
//
|
||||
rpc ViewProgress(ViewProgressReq) returns (ViewProgressReply);
|
||||
}
|
||||
|
||||
// 业务类型
|
||||
enum ArcType {
|
||||
//
|
||||
message ActivityResource {
|
||||
//
|
||||
UNKNOWN = 0;
|
||||
string dark_text_color = 1;
|
||||
//
|
||||
PAGES = 1;
|
||||
string divider_color = 2;
|
||||
//
|
||||
SERIES = 2;
|
||||
string bg_color = 3;
|
||||
//
|
||||
POSITIVE = 3;
|
||||
string selected_bg_color = 4;
|
||||
//
|
||||
SECTION = 4;
|
||||
string text_color = 5;
|
||||
//
|
||||
RELATE = 5;
|
||||
string light_text_color = 6;
|
||||
}
|
||||
|
||||
// 业务信息
|
||||
message Arc {
|
||||
//
|
||||
PUGV = 6;
|
||||
int64 aid = 1;
|
||||
//
|
||||
int64 cid = 2;
|
||||
//
|
||||
int64 duration = 3;
|
||||
//
|
||||
bilibili.app.viewunite.common.Stat stat = 4;
|
||||
//
|
||||
string bvid = 5;
|
||||
//
|
||||
int32 copyright = 6;
|
||||
//
|
||||
Rights right = 7;
|
||||
//
|
||||
string cover = 8;
|
||||
//
|
||||
int64 type_id = 9;
|
||||
//
|
||||
string title = 10;
|
||||
}
|
||||
|
||||
//
|
||||
message ArcRefreshReply {
|
||||
//
|
||||
bilibili.app.viewunite.common.Stat stat = 1;
|
||||
//
|
||||
SimpleReqUser req_user = 2;
|
||||
//
|
||||
SimpleArc arc = 3;
|
||||
//
|
||||
Online online = 4;
|
||||
//
|
||||
LikeConfig like_config = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message ArcRefreshReq {
|
||||
//
|
||||
int64 aid = 1;
|
||||
//
|
||||
string bvid = 2;
|
||||
}
|
||||
|
||||
//
|
||||
@ -38,26 +87,6 @@ message AttentionCard {
|
||||
repeated ShowTime show_time = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message BadgeType {
|
||||
//
|
||||
string text = 1;
|
||||
//
|
||||
string text_color = 2;
|
||||
//
|
||||
string text_color_night = 3;
|
||||
//
|
||||
string bg_color = 4;
|
||||
//
|
||||
string bg_color_night = 5;
|
||||
//
|
||||
string border_color = 6;
|
||||
//
|
||||
string border_color_night = 7;
|
||||
//
|
||||
int32 bg_style = 8;
|
||||
}
|
||||
|
||||
//
|
||||
message BizFollowVideoParam {
|
||||
//
|
||||
@ -90,7 +119,6 @@ message BizReserveGameParam {
|
||||
int64 game_id = 1;
|
||||
}
|
||||
|
||||
//
|
||||
enum BizType {
|
||||
//
|
||||
BizTypeNone = 0;
|
||||
@ -106,6 +134,26 @@ enum BizType {
|
||||
BizTypeReserveGame = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message Button {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
string uri = 2;
|
||||
//
|
||||
string icon = 3;
|
||||
//
|
||||
JumpShowType jump_show_type = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message ChargingPlus {
|
||||
//
|
||||
bool pass = 1;
|
||||
//
|
||||
repeated PlayToast play_toast = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message Chronos {
|
||||
//
|
||||
@ -126,6 +174,16 @@ message ChronosParam {
|
||||
string service_key = 3;
|
||||
}
|
||||
|
||||
// 推广信息
|
||||
message CM {
|
||||
//
|
||||
google.protobuf.Any cm_under_player = 1;
|
||||
//
|
||||
google.protobuf.Any ads_control = 2;
|
||||
//
|
||||
repeated google.protobuf.Any source_content = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message CommandDm {
|
||||
//
|
||||
@ -147,7 +205,17 @@ message CommandDm {
|
||||
//
|
||||
string extra = 9;
|
||||
//
|
||||
string id_str = 10;
|
||||
string idstr = 10;
|
||||
}
|
||||
|
||||
// 播放器配置
|
||||
message Config {
|
||||
//
|
||||
Online online = 1;
|
||||
//
|
||||
PlayerIcon player_icon = 2;
|
||||
//
|
||||
StoryEntrance story_entrance = 3;
|
||||
}
|
||||
|
||||
// 视频播放时弹出的卡片
|
||||
@ -187,13 +255,9 @@ message ContractText {
|
||||
}
|
||||
|
||||
//
|
||||
message Dimension {
|
||||
message Control {
|
||||
//
|
||||
int64 width = 1;
|
||||
//
|
||||
int64 height = 2;
|
||||
//
|
||||
int64 rotate = 3;
|
||||
bool limit = 1;
|
||||
}
|
||||
|
||||
//
|
||||
@ -206,6 +270,53 @@ message DmResource {
|
||||
repeated OperationCard cards = 3;
|
||||
}
|
||||
|
||||
enum ECode {
|
||||
//
|
||||
CODE_DEFAULT = 0;
|
||||
//
|
||||
CODE_404 = 1;
|
||||
// 青少年限制
|
||||
CODE_TEENAGER = 78301;
|
||||
}
|
||||
|
||||
//
|
||||
message ECodeConfig {
|
||||
//
|
||||
string redirect_url = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message IconData {
|
||||
//
|
||||
string meta_json = 1;
|
||||
//
|
||||
string sprits_img = 2;
|
||||
}
|
||||
|
||||
// 视频介绍 Tab
|
||||
message IntroductionTab {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
repeated bilibili.app.viewunite.common.Module modules = 2;
|
||||
}
|
||||
|
||||
enum JumpShowType {
|
||||
//
|
||||
JST_DEFAULT = 0;
|
||||
//
|
||||
JST_FULLSCREEN = 1;
|
||||
//
|
||||
JST_HALFSCREEN = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message LikeConfig {
|
||||
bilibili.app.viewunite.common.UpLikeImg triple_like = 1;
|
||||
//
|
||||
string like_animation = 2;
|
||||
}
|
||||
|
||||
// 素材详情
|
||||
message Material {
|
||||
//
|
||||
@ -260,6 +371,12 @@ enum MaterialSource {
|
||||
BIJIAN = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message Online {
|
||||
//
|
||||
bool online_show = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message OperationCard {
|
||||
//
|
||||
@ -275,13 +392,16 @@ message OperationCard {
|
||||
//
|
||||
OperationCardContent content = 6;
|
||||
//
|
||||
BizFollowVideoParam follow = 7;
|
||||
//
|
||||
BizReserveActivityParam reserve = 8;
|
||||
//
|
||||
BizJumpLinkParam jump = 9;
|
||||
//
|
||||
BizReserveGameParam game = 10;
|
||||
oneof param {
|
||||
//
|
||||
BizFollowVideoParam follow = 7;
|
||||
//
|
||||
BizReserveActivityParam reserve = 8;
|
||||
//
|
||||
BizJumpLinkParam jump = 9;
|
||||
//
|
||||
BizReserveGameParam game = 10;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
@ -308,6 +428,13 @@ enum PageCategory {
|
||||
ACTIVITY_PAGE = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PageControl {
|
||||
Control toast_show = 1;
|
||||
Control material_show = 2;
|
||||
Control up_show = 3;
|
||||
}
|
||||
|
||||
// 页面类型
|
||||
enum PageType {
|
||||
// H5页面(Webview)
|
||||
@ -316,14 +443,43 @@ enum PageType {
|
||||
NA = 1;
|
||||
}
|
||||
|
||||
// 播放策略
|
||||
message PlayStrategy {
|
||||
//
|
||||
message PlayerIcon {
|
||||
//
|
||||
repeated string strategies = 1;
|
||||
string url1 = 1;
|
||||
//
|
||||
int32 recommend_show_strategy = 2;
|
||||
// 自动播放时的提示语
|
||||
string auto_play_toast = 3;
|
||||
string hash1 = 2;
|
||||
//
|
||||
string url2 = 3;
|
||||
//
|
||||
string hash2 = 4;
|
||||
//
|
||||
string drag_left_png = 5;
|
||||
//
|
||||
string middle_png = 6;
|
||||
//
|
||||
string drag_right_png = 7;
|
||||
//
|
||||
IconData drag_data = 8;
|
||||
//
|
||||
IconData nodrag_data = 9;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayToast {
|
||||
//
|
||||
PlayToastEnum business = 1;
|
||||
//
|
||||
string icon_url = 2;
|
||||
//
|
||||
string text = 3;
|
||||
}
|
||||
|
||||
enum PlayToastEnum {
|
||||
//
|
||||
PLAYTOAST_UNKNOWN = 0;
|
||||
//
|
||||
PLAYTOAST_CHARGINGPLUS = 1;
|
||||
}
|
||||
|
||||
//
|
||||
@ -335,57 +491,93 @@ message PointMaterial {
|
||||
}
|
||||
|
||||
//
|
||||
message Selection {
|
||||
message Relate {
|
||||
//
|
||||
string title = 1;
|
||||
int64 device_type = 1;
|
||||
//
|
||||
repeated SelectionItem item = 2;
|
||||
bilibili.pagination.Pagination pagination = 2;
|
||||
}
|
||||
|
||||
// 视频详情页下方推荐 Reply
|
||||
message RelatesFeedReply {
|
||||
//
|
||||
ArcType arc_type = 3;
|
||||
repeated bilibili.app.viewunite.common.RelateCard relates = 1;
|
||||
//
|
||||
SelectionType selection_type = 4;
|
||||
bilibili.pagination.Pagination pagination = 2;
|
||||
}
|
||||
|
||||
// 视频详情页下方推荐 Req
|
||||
message RelatesFeedReq {
|
||||
//
|
||||
int64 aid = 1;
|
||||
//
|
||||
string bvid = 2;
|
||||
//
|
||||
string from = 3;
|
||||
//
|
||||
string spmid = 4;
|
||||
//
|
||||
string from_spmid = 5;
|
||||
//
|
||||
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 6;
|
||||
//
|
||||
bilibili.pagination.Pagination pagination = 7;
|
||||
//
|
||||
string session_id = 8;
|
||||
//
|
||||
int64 auto_play = 9;
|
||||
//
|
||||
string from_track_id = 10;
|
||||
}
|
||||
|
||||
//
|
||||
message SelectionItem {
|
||||
message ReplyStyle {
|
||||
//
|
||||
uint64 aid = 1;
|
||||
string badge_url = 1;
|
||||
//
|
||||
uint64 cid = 2;
|
||||
string badge_text = 2;
|
||||
//
|
||||
BadgeType badge_type = 4;
|
||||
//
|
||||
string title = 5;
|
||||
//
|
||||
string long_title = 6;
|
||||
//
|
||||
Dimension dimension = 7;
|
||||
int64 badge_type = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message SelectionModule {
|
||||
message ReplyTab {
|
||||
//
|
||||
repeated Selection selection = 1;
|
||||
ReplyStyle reply_style = 1;
|
||||
//
|
||||
repeated SerialSeason serial_season = 2;
|
||||
string title = 2;
|
||||
//
|
||||
PlayStrategy play_strategy = 3;
|
||||
TabControl control = 3;
|
||||
}
|
||||
|
||||
//
|
||||
enum SelectionType {
|
||||
message ReqUser {
|
||||
//
|
||||
LONGTITLE = 0;
|
||||
int32 favorite = 1;
|
||||
//
|
||||
SHORTTITLE = 1;
|
||||
int32 like = 2;
|
||||
//
|
||||
int32 coin = 3;
|
||||
//
|
||||
int32 fav_season = 4;
|
||||
//
|
||||
int32 follow = 5;
|
||||
//
|
||||
int32 dislike = 6;
|
||||
// 头像旁充电按钮
|
||||
Button elec_plus_btn = 7;
|
||||
//
|
||||
ChargingPlus charging_plus = 8;
|
||||
}
|
||||
|
||||
//
|
||||
message SerialSeason {
|
||||
message Rights {
|
||||
//
|
||||
uint32 season_id = 1;
|
||||
bool only_vip_download = 1;
|
||||
//
|
||||
string season_title = 2;
|
||||
bool no_reprint = 2;
|
||||
//
|
||||
bool download = 3;
|
||||
}
|
||||
|
||||
//
|
||||
@ -400,6 +592,82 @@ message ShowTime {
|
||||
double pos_y = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message SimpleArc {
|
||||
//
|
||||
int32 copyright = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message SimpleReqUser {
|
||||
//
|
||||
int32 favorite = 1;
|
||||
//
|
||||
int32 like = 2;
|
||||
//
|
||||
int32 coin = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message StoryEntrance {
|
||||
//
|
||||
bool arc_play_story = 1;
|
||||
//
|
||||
string story_icon = 2;
|
||||
//
|
||||
bool arc_landscape_story = 3;
|
||||
//
|
||||
string landscape_icon = 4;
|
||||
//
|
||||
bool play_story = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message Tab {
|
||||
//
|
||||
repeated TabModule tab_module = 1;
|
||||
//
|
||||
string tab_bg = 2;
|
||||
//
|
||||
TabControl danmaku_entrance = 3;
|
||||
}
|
||||
|
||||
// 评论区/弹幕 Tab 控制
|
||||
message TabControl {
|
||||
//
|
||||
bool limit = 1;
|
||||
//
|
||||
bool disable = 2;
|
||||
//
|
||||
string disable_click_tip = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message TabModule {
|
||||
//
|
||||
TabType tab_type = 1;
|
||||
//
|
||||
oneof tab {
|
||||
//
|
||||
IntroductionTab introduction = 2;
|
||||
//
|
||||
ReplyTab reply = 3;
|
||||
//
|
||||
bilibili.app.viewunite.common.ActivityTab activity_tab = 4;
|
||||
}
|
||||
}
|
||||
|
||||
enum TabType {
|
||||
//
|
||||
TAB_NONE = 0;
|
||||
// 详情 Tab
|
||||
TAB_INTRODUCTION = 1;
|
||||
// 评论区 Tab
|
||||
TAB_REPLY = 2;
|
||||
// OGV 活动信息 Tab
|
||||
TAB_OGV_ACTIVITY = 3;
|
||||
}
|
||||
|
||||
//
|
||||
enum UnionType {
|
||||
//
|
||||
@ -478,6 +746,24 @@ message ViewBase {
|
||||
UnionType union_type = 1;
|
||||
//
|
||||
PageType page_type = 2;
|
||||
//
|
||||
PageControl control = 3;
|
||||
//
|
||||
ActivityResource activity_resource = 4;
|
||||
//
|
||||
Config config = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message ViewProgressReply {
|
||||
//
|
||||
VideoGuide video_guide = 1;
|
||||
//
|
||||
Chronos chronos = 2;
|
||||
//
|
||||
VideoShot arc_shot = 3;
|
||||
//
|
||||
DmResource dm = 4;
|
||||
}
|
||||
|
||||
//
|
||||
@ -495,15 +781,27 @@ message ViewProgressReq {
|
||||
}
|
||||
|
||||
//
|
||||
message ViewProgressReply {
|
||||
message ViewReply {
|
||||
//
|
||||
VideoGuide video_guide = 1;
|
||||
ViewBase view_base = 1;
|
||||
//
|
||||
Chronos chronos = 2;
|
||||
Arc arc = 2;
|
||||
//
|
||||
VideoShot arc_shot = 3;
|
||||
ReqUser req_user = 3;
|
||||
//
|
||||
DmResource dm = 4;
|
||||
bilibili.app.viewunite.common.Owner owner = 4;
|
||||
//
|
||||
Tab tab = 5;
|
||||
//
|
||||
google.protobuf.Any supplement = 6;
|
||||
//
|
||||
CM cm = 7;
|
||||
//
|
||||
ECode ecode = 8;
|
||||
//
|
||||
ECodeConfig ecode_config = 9;
|
||||
//
|
||||
map<string, string> report = 10;
|
||||
}
|
||||
|
||||
//
|
||||
@ -526,14 +824,12 @@ message ViewReq {
|
||||
string track_id = 8;
|
||||
//
|
||||
map<string, string> extra_content = 9;
|
||||
//
|
||||
string play_mode = 10;
|
||||
//
|
||||
Relate relate = 11;
|
||||
//
|
||||
string biz_extra = 12;
|
||||
//
|
||||
string ad_extra = 13;
|
||||
}
|
||||
|
||||
//
|
||||
message ViewReply {
|
||||
//
|
||||
ViewBase view_base = 1;
|
||||
//
|
||||
SelectionModule selection_module = 3;
|
||||
// 使用 pgcanymodel / ugcanymodel 进行proto any转换成对应业务码结构体
|
||||
google.protobuf.Any supplement = 4;
|
||||
}
|
@ -22,6 +22,52 @@ enum ArcType {
|
||||
ARC_TYPE_INTERACT = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message BackgroundInfo {
|
||||
//
|
||||
string drawable_color = 1;
|
||||
//
|
||||
string drawable_bitmap_url = 2;
|
||||
//
|
||||
int32 effects = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message BadgeInfo {
|
||||
//
|
||||
string text = 1;
|
||||
//
|
||||
string bg_color = 2;
|
||||
//
|
||||
string bg_color_night = 3;
|
||||
//
|
||||
string text_color = 4;
|
||||
//
|
||||
GradientColor bg_gradient_color = 5;
|
||||
//
|
||||
string img = 6;
|
||||
}
|
||||
|
||||
//
|
||||
enum BizType {
|
||||
//
|
||||
BIZ_TYPE_UNKNOWN = 0;
|
||||
//
|
||||
BIZ_TYPE_UGC = 1;
|
||||
//
|
||||
BIZ_TYPE_PGC = 2;
|
||||
//
|
||||
BIZ_TYPE_PUGV = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message BottomDisplay {
|
||||
//
|
||||
TextInfo title = 1;
|
||||
//
|
||||
string icon = 2;
|
||||
}
|
||||
|
||||
// 按钮组件
|
||||
message Button {
|
||||
// 按钮文本
|
||||
@ -32,6 +78,79 @@ message Button {
|
||||
map<string, string> report_params = 3;
|
||||
}
|
||||
|
||||
enum ButtonAction {
|
||||
//
|
||||
BUTTON_UNKNOWN = 0;
|
||||
//
|
||||
PAY = 1;
|
||||
//
|
||||
VIP = 2;
|
||||
//
|
||||
PACK = 3;
|
||||
//
|
||||
LINK = 4;
|
||||
//
|
||||
COUPON = 5;
|
||||
//
|
||||
DEMAND = 6;
|
||||
//
|
||||
DEMAND_PACK = 7;
|
||||
//
|
||||
FOLLOW = 8;
|
||||
//
|
||||
APPOINTMENT = 9;
|
||||
//
|
||||
VIP_FREE = 10;
|
||||
//
|
||||
TASK = 11;
|
||||
//
|
||||
CHARGINGPLUS = 12;
|
||||
//
|
||||
BP = 13;
|
||||
//
|
||||
PRE_SELL = 14;
|
||||
}
|
||||
|
||||
//
|
||||
message ButtonInfo {
|
||||
//
|
||||
string text = 1;
|
||||
//
|
||||
string text_color = 2;
|
||||
//
|
||||
string text_color_night = 3;
|
||||
//
|
||||
string bg_color = 4;
|
||||
//
|
||||
string bg_color_night = 5;
|
||||
//
|
||||
string link = 6;
|
||||
//
|
||||
ButtonAction action_type = 7;
|
||||
//
|
||||
BadgeInfo badge_info = 8;
|
||||
//
|
||||
Report report = 9;
|
||||
//
|
||||
string left_strikethrough_text = 10;
|
||||
//
|
||||
TextInfo simple_text_info = 11;
|
||||
//
|
||||
string simple_bg_color = 12;
|
||||
//
|
||||
string simple_bg_color_night = 13;
|
||||
//
|
||||
GradientColor bg_gradient_color = 14;
|
||||
//
|
||||
map<string, string> order_report_params = 15;
|
||||
//
|
||||
TaskParam task_param = 16;
|
||||
//
|
||||
string frame_color = 17;
|
||||
//
|
||||
string icon = 18;
|
||||
}
|
||||
|
||||
// 视频编码
|
||||
enum CodeType {
|
||||
NOCODE = 0; // 不指定
|
||||
@ -40,6 +159,24 @@ enum CodeType {
|
||||
CODEAV1 = 3; // AV1
|
||||
}
|
||||
|
||||
//
|
||||
message ComprehensiveToast {
|
||||
//
|
||||
int32 type = 1;
|
||||
//
|
||||
ButtonInfo button = 2;
|
||||
//
|
||||
int32 show_style_type = 3;
|
||||
//
|
||||
string icon = 4;
|
||||
//
|
||||
TextInfo toast_text = 5;
|
||||
//
|
||||
Report report = 6;
|
||||
//
|
||||
map<string, string> order_report_params = 7;
|
||||
}
|
||||
|
||||
// 功能类型
|
||||
enum ConfType {
|
||||
NoType = 0;
|
||||
@ -146,6 +283,37 @@ message DeviceConf {
|
||||
ConfValue conf_value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message Dialog {
|
||||
//
|
||||
int32 style_type = 1;
|
||||
//
|
||||
BackgroundInfo background_info = 2;
|
||||
//
|
||||
TextInfo title = 3;
|
||||
//
|
||||
TextInfo subtitle = 4;
|
||||
//
|
||||
ImageInfo image = 5;
|
||||
//
|
||||
repeated ButtonInfo button = 6;
|
||||
//
|
||||
ButtonInfo bottom_desc = 7;
|
||||
//
|
||||
Report report = 8;
|
||||
//
|
||||
int32 count_down_sec = 9;
|
||||
//
|
||||
TextInfo right_bottom_desc = 10;
|
||||
//
|
||||
repeated BottomDisplay bottom_display = 11;
|
||||
//
|
||||
ExtData ext_data = 12;
|
||||
//
|
||||
int32 limit_action_type = 13;
|
||||
}
|
||||
|
||||
|
||||
// 当前分辨率信息
|
||||
message Dimension {
|
||||
// 宽
|
||||
@ -182,12 +350,38 @@ enum DrmTechType {
|
||||
BILI_DRM = 3;
|
||||
}
|
||||
|
||||
enum Effects {
|
||||
//
|
||||
EFFECTS_UNKNOWN = 0;
|
||||
//
|
||||
GAUSSIAN_BLUR = 1;
|
||||
//
|
||||
HALF_ALPHA = 2;
|
||||
}
|
||||
|
||||
// 事件
|
||||
message Event {
|
||||
// 震动
|
||||
Shake shake = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message ExtData {
|
||||
//
|
||||
ExtDataType type = 1;
|
||||
//
|
||||
oneof data {
|
||||
PlayListInfo play_list_info = 2;
|
||||
}
|
||||
}
|
||||
|
||||
enum ExtDataType {
|
||||
//
|
||||
EXT_DATA_TYPE_UNKNOWN = 0;
|
||||
//
|
||||
PLAY_LIST = 1;
|
||||
}
|
||||
|
||||
// ? 错误码补充信息
|
||||
message ExtraContent {
|
||||
//
|
||||
@ -196,6 +390,28 @@ message ExtraContent {
|
||||
int64 disable_code = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message GradientColor {
|
||||
//
|
||||
string start_color = 1;
|
||||
//
|
||||
string end_color = 2;
|
||||
}
|
||||
|
||||
//
|
||||
enum GuideStyle {
|
||||
//
|
||||
STYLE_UNKNOWN = 0;
|
||||
//
|
||||
HORIZONTAL_IMAGE = 1;
|
||||
//
|
||||
VERTICAL_TEXT = 2;
|
||||
//
|
||||
SIMPLE_TEXT = 3;
|
||||
//
|
||||
CHARGING_TEXT = 4;
|
||||
}
|
||||
|
||||
// 播放历史
|
||||
message History {
|
||||
//
|
||||
@ -218,6 +434,13 @@ message HistoryInfo {
|
||||
int64 last_play_aid = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message ImageInfo {
|
||||
//
|
||||
string url = 1;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
message Interaction {
|
||||
//
|
||||
@ -230,6 +453,16 @@ message Interaction {
|
||||
int64 mark = 4;
|
||||
}
|
||||
|
||||
//
|
||||
enum LimitActionType {
|
||||
//
|
||||
LAT_UNKNOWN = 0;
|
||||
//
|
||||
SHOW_LIMIT_DIALOG = 1;
|
||||
//
|
||||
SKIP_CURRENT_EP = 2;
|
||||
}
|
||||
|
||||
// HIRES伴音流信息
|
||||
message LossLessItem {
|
||||
// 是否为hires
|
||||
@ -253,7 +486,7 @@ message Node {
|
||||
//
|
||||
message PlayArc {
|
||||
//
|
||||
VideoType video_type = 1;
|
||||
BizType video_type = 1;
|
||||
//
|
||||
uint64 aid = 2;
|
||||
//
|
||||
@ -266,6 +499,10 @@ message PlayArc {
|
||||
Interaction interaction = 6;
|
||||
//
|
||||
Dimension dimension = 7;
|
||||
//
|
||||
int64 duration = 8;
|
||||
//
|
||||
bool is_preview = 9;
|
||||
}
|
||||
|
||||
// 播放页信息-响应: PlayArcConf
|
||||
@ -285,6 +522,49 @@ enum PlayErr {
|
||||
WithMultiDeviceLoginErr = 1; // 管控类型的错误码
|
||||
}
|
||||
|
||||
//
|
||||
message PlayList {
|
||||
//
|
||||
int64 season_id = 1;
|
||||
//
|
||||
string title = 2;
|
||||
//
|
||||
string cover = 3;
|
||||
//
|
||||
string link = 4;
|
||||
//
|
||||
BadgeInfo badge_info = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayListInfo {
|
||||
//
|
||||
repeated PlayList play_list = 2;
|
||||
}
|
||||
|
||||
// 视频下方广告 Banner
|
||||
message PromptBar {
|
||||
//
|
||||
TextInfo title = 1;
|
||||
//
|
||||
TextInfo subtitle = 2;
|
||||
//
|
||||
string sub_title_icon = 3;
|
||||
//
|
||||
string bg_image = 4;
|
||||
//
|
||||
GradientColor bg_gradient_color = 5;
|
||||
//
|
||||
repeated ButtonInfo button = 6;
|
||||
//
|
||||
Report report = 7;
|
||||
//
|
||||
string full_screen_ip_icon = 8;
|
||||
//
|
||||
GradientColor full_screen_bg_gradient_color = 9;
|
||||
}
|
||||
|
||||
|
||||
// 播放页信息-响应: 高画质试看信息
|
||||
message QnTrialInfo {
|
||||
// 能否试看高画质
|
||||
@ -303,6 +583,16 @@ message QnTrialInfo {
|
||||
Button quality_open_tip_btn = 8;
|
||||
}
|
||||
|
||||
//
|
||||
message Report {
|
||||
//
|
||||
string show_event_id = 1;
|
||||
//
|
||||
string click_event_id = 2;
|
||||
//
|
||||
string extends = 3;
|
||||
}
|
||||
|
||||
// Dash Response, 未使用
|
||||
message ResponseDash {
|
||||
repeated DashItem video = 1;
|
||||
@ -348,6 +638,16 @@ message Shake {
|
||||
string file = 1;
|
||||
}
|
||||
|
||||
//
|
||||
enum ShowStyleType {
|
||||
//
|
||||
SHOW_STYLE_TYPE_UNKNOWN = 0;
|
||||
//
|
||||
SHOW_STYLE_TYPE_ORDINARY = 1;
|
||||
//
|
||||
SHOW_STYLE_TYPE_RESIDENT = 2;
|
||||
}
|
||||
|
||||
// 视频流信息
|
||||
message Stream {
|
||||
// 元数据
|
||||
@ -409,6 +709,27 @@ message StreamLimit {
|
||||
string msg = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message TaskParam {
|
||||
//
|
||||
string task_type = 1;
|
||||
//
|
||||
int64 activity_id = 2;
|
||||
//
|
||||
int64 tips_id = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message TextInfo {
|
||||
//
|
||||
string text = 1;
|
||||
//
|
||||
string text_color = 2;
|
||||
//
|
||||
string text_color_night = 3;
|
||||
}
|
||||
|
||||
|
||||
// Toast信息
|
||||
message Toast {
|
||||
// toast文案
|
||||
@ -417,6 +738,21 @@ message Toast {
|
||||
Button button = 2;
|
||||
}
|
||||
|
||||
enum ToastType {
|
||||
//
|
||||
TOAST_TYPE_UNKNOWN = 0;
|
||||
//
|
||||
VIP_CONTENT_REMIND = 1;
|
||||
//
|
||||
VIP_DEFINITION_REMIND = 2;
|
||||
//
|
||||
VIP_DEFINITION_GUIDE = 3;
|
||||
//
|
||||
OGV_VIDEO_START_TOAST = 4;
|
||||
//
|
||||
CHARGING_TOAST = 5;
|
||||
}
|
||||
|
||||
//
|
||||
enum UnsupportScene {
|
||||
//
|
||||
@ -425,15 +761,6 @@ enum UnsupportScene {
|
||||
PREMIERE = 1;
|
||||
}
|
||||
|
||||
// 视频类型
|
||||
enum VideoType {
|
||||
UNKNOWN = 0;
|
||||
// 用户生成内容
|
||||
UGC = 1;
|
||||
// 专业生产内容
|
||||
PGC = 2;
|
||||
}
|
||||
|
||||
// 播放页信息-请求: 音视频VOD
|
||||
message VideoVod {
|
||||
// 视频aid
|
||||
@ -460,6 +787,16 @@ message VideoVod {
|
||||
uint64 voice_balance = 10;
|
||||
}
|
||||
|
||||
//
|
||||
message ViewInfo {
|
||||
//
|
||||
map<string, Dialog> dialog_map = 1;
|
||||
//
|
||||
PromptBar prompt_bar = 2;
|
||||
//
|
||||
repeated ComprehensiveToast toasts = 3;
|
||||
}
|
||||
|
||||
// 播放页信息-响应: VOD音视频信息
|
||||
message VodInfo {
|
||||
// 视频清晰度
|
||||
|
Loading…
Reference in New Issue
Block a user