update grpc_api from 7.26.0 (#728)
* update package bilibili.pgc.gateway.player.v2 from 7.26.0 * update package bilibili.app.viewunite.v1 from 7.26.0 * delete some unused grpc package based on 7.26.0 * update package bilibili.playershared from 7.26.0 * update package bilibili.polymer.app.search.v1 from 7.26.0 * redir package bilibili.polymer.contract.v1 * update package bilibili.app.dynamic.v2 from 7.26.0 * add package bilibili.app.search.v2 from 7.26.0 * fix: typo
This commit is contained in:
22
grpc_api/bilibili/app/dynamic/common/dynamic.proto
Normal file
22
grpc_api/bilibili/app/dynamic/common/dynamic.proto
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package bilibili.app.dynamic.common;
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
message ItemWHRatio {
|
||||||
|
//
|
||||||
|
int32 ratio = 1;
|
||||||
|
//
|
||||||
|
int32 width = 2;
|
||||||
|
//
|
||||||
|
int32 height = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
enum WHRatio {
|
||||||
|
W_H_RATIO_1_1 = 0;
|
||||||
|
W_H_RATIO_16_9 = 1;
|
||||||
|
W_H_RATIO_3_4 = 2;
|
||||||
|
W_H_RATIO_CUSTOM = 3;
|
||||||
|
}
|
||||||
66
grpc_api/bilibili/app/dynamic/v2/campus.proto
Normal file
66
grpc_api/bilibili/app/dynamic/v2/campus.proto
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package bilibili.app.dynamic.v2;
|
||||||
|
|
||||||
|
import "bilibili/app/archive/middleware/v1/preload.proto";
|
||||||
|
import "bilibili/pagination/pagination.proto";
|
||||||
|
import "bilibili/app/dynamic/common/dynamic.proto";
|
||||||
|
import "bilibili/app/dynamic/v2/dynamic.proto";
|
||||||
|
|
||||||
|
service Campus {
|
||||||
|
//
|
||||||
|
rpc WaterFlowRcmd (WaterFlowRcmdReq) returns (WaterFlowRcmdReply);
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message CampusWaterFlowItem {
|
||||||
|
//
|
||||||
|
int32 item_type = 1;
|
||||||
|
//
|
||||||
|
bilibili.app.dynamic.common.ItemWHRatio wh_ratio = 2;
|
||||||
|
//
|
||||||
|
oneof item {
|
||||||
|
WFItemDefault item_default = 3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message WaterFlowRcmdReq {
|
||||||
|
//
|
||||||
|
int64 campus_id = 1;
|
||||||
|
//
|
||||||
|
int32 page = 2;
|
||||||
|
//
|
||||||
|
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3;
|
||||||
|
//
|
||||||
|
CampusRcmdReqFrom from = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message WaterFlowRcmdResp {
|
||||||
|
//
|
||||||
|
repeated CampusWaterFlowItem items = 1;
|
||||||
|
//
|
||||||
|
bilibili.pagination.FeedPaginationReply offset = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message WFItemDefault {
|
||||||
|
//
|
||||||
|
string title = 1;
|
||||||
|
//
|
||||||
|
string cover = 2;
|
||||||
|
//
|
||||||
|
CoverIconWithText bottom_left_1 = 3;
|
||||||
|
//
|
||||||
|
CoverIconWithText bottom_left_2 = 4;
|
||||||
|
//
|
||||||
|
CoverIconWithText bottom_right_1 = 5;
|
||||||
|
//
|
||||||
|
string uri = 6;
|
||||||
|
//
|
||||||
|
RcmdReason rcmd_reason = 7;
|
||||||
|
//
|
||||||
|
map<string, string> annotations = 8;
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
59
grpc_api/bilibili/app/dynamic/v2/opus.proto
Normal file
59
grpc_api/bilibili/app/dynamic/v2/opus.proto
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package bilibili.app.dynamic.v2;
|
||||||
|
|
||||||
|
import "bilibili/app/archive/middleware/v1/preload.proto";
|
||||||
|
import "bilibili/app/dynamic/v2/dynamic.proto";
|
||||||
|
|
||||||
|
service Opus {
|
||||||
|
//
|
||||||
|
rpc OpusDetail (OpusDetailReq) returns (OpusDetailResp);
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message OpusDetailReq {
|
||||||
|
//
|
||||||
|
OpusType opus_type = 1;
|
||||||
|
//
|
||||||
|
int64 oid = 2;
|
||||||
|
//
|
||||||
|
int64 dyn_type = 3;
|
||||||
|
//
|
||||||
|
string share_id = 4;
|
||||||
|
//
|
||||||
|
int32 share_mode = 9;
|
||||||
|
//
|
||||||
|
int32 local_time = 10;
|
||||||
|
//
|
||||||
|
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 11;
|
||||||
|
//
|
||||||
|
Config config = 12;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message OpusDetailResp {
|
||||||
|
//
|
||||||
|
OpusItem opus_item = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message OpusItem {
|
||||||
|
//
|
||||||
|
int64 opus_id = 1;
|
||||||
|
//
|
||||||
|
OpusType opus_type = 2;
|
||||||
|
//
|
||||||
|
int64 oid = 3;
|
||||||
|
//
|
||||||
|
repeated Module modules = 4;
|
||||||
|
//
|
||||||
|
Extend extend = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
enum OpusType {
|
||||||
|
OPUS_TYPE_DYN = 0;
|
||||||
|
OPUS_TYPE_ARTICLE = 1;
|
||||||
|
OPUS_TYPE_NOTE = 2;
|
||||||
|
OPUS_TYPE_WORD = 3;
|
||||||
|
}
|
||||||
110
grpc_api/bilibili/app/search/v2/search.proto
Normal file
110
grpc_api/bilibili/app/search/v2/search.proto
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package bilibili.app.search.v2;
|
||||||
|
|
||||||
|
import "bilibili/broadcast/message/main/search.proto";
|
||||||
|
|
||||||
|
service Search {
|
||||||
|
//
|
||||||
|
rpc CancelChatTask (CancelChatTaskReq) returns (CancelChatTaskReply);
|
||||||
|
//
|
||||||
|
rpc GetChatResult (GetChatResultReq) returns (bilibili.broadcast.message.main.ChatResult);
|
||||||
|
//
|
||||||
|
rpc SearchEgg (SearchEggReq) returns (SearchEggReply);
|
||||||
|
//
|
||||||
|
rpc SubmitChatTask (SubmitChatTaskReq) returns (SubmitChatTaskReply);
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message CancelChatTaskReq {
|
||||||
|
//
|
||||||
|
string session_id = 1;
|
||||||
|
//
|
||||||
|
string from_source = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message CancelChatTaskReply {
|
||||||
|
//
|
||||||
|
int32 code = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message GetChatResultReq {
|
||||||
|
//
|
||||||
|
string query = 1;
|
||||||
|
//
|
||||||
|
string session_id = 2;
|
||||||
|
//
|
||||||
|
string from_source = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message SearchEggInfo {
|
||||||
|
//
|
||||||
|
int32 egg_type = 1;
|
||||||
|
//
|
||||||
|
int64 id = 2;
|
||||||
|
//
|
||||||
|
int32 is_commercial = 3;
|
||||||
|
//
|
||||||
|
string mask_color = 4;
|
||||||
|
//
|
||||||
|
int64 mask_transparency = 5;
|
||||||
|
//
|
||||||
|
string md5 = 6;
|
||||||
|
//
|
||||||
|
int32 re_type = 7;
|
||||||
|
//
|
||||||
|
string re_url = 8;
|
||||||
|
//
|
||||||
|
string re_value = 9;
|
||||||
|
//
|
||||||
|
int32 show_count = 10;
|
||||||
|
//
|
||||||
|
int64 size = 11;
|
||||||
|
//
|
||||||
|
int64 source = 12;
|
||||||
|
//
|
||||||
|
string url = 13;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message SearchEggInfos {
|
||||||
|
//
|
||||||
|
repeated SearchEggInfo egg_info = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message SearchEggReply {
|
||||||
|
//
|
||||||
|
int32 code = 1;
|
||||||
|
//
|
||||||
|
string seid = 2;
|
||||||
|
//
|
||||||
|
SearchEggInfos result = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message SearchEggReq {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message SubmitChatTaskReply {
|
||||||
|
//
|
||||||
|
int32 code = 1;
|
||||||
|
//
|
||||||
|
string session_id = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message SubmitChatTaskReq {
|
||||||
|
//
|
||||||
|
string query = 1;
|
||||||
|
//
|
||||||
|
string track_id = 2;
|
||||||
|
//
|
||||||
|
string from_source = 3;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -9,9 +9,9 @@ import "google/protobuf/any.proto";
|
|||||||
// 统一视频信息接口(7.23启用)
|
// 统一视频信息接口(7.23启用)
|
||||||
service View {
|
service View {
|
||||||
//
|
//
|
||||||
rpc View(ViewRequest) returns (ViewReply);
|
rpc View(ViewReq) returns (ViewReply);
|
||||||
//
|
//
|
||||||
rpc ViewProgress(ViewProgressRequest) returns (ViewProgressReply);
|
rpc ViewProgress(ViewProgressReq) returns (ViewProgressReply);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 业务类型
|
// 业务类型
|
||||||
@@ -255,7 +255,7 @@ enum MaterialBizType {
|
|||||||
// 素材来源
|
// 素材来源
|
||||||
enum MaterialSource {
|
enum MaterialSource {
|
||||||
//
|
//
|
||||||
UNKNOWN = 0;
|
DEFAULT = 0;
|
||||||
// 必剪素材
|
// 必剪素材
|
||||||
BIJIAN = 1;
|
BIJIAN = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
29
grpc_api/bilibili/broadcast/message/main/search.proto
Normal file
29
grpc_api/bilibili/broadcast/message/main/search.proto
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package bilibili.broadcast.message.main;
|
||||||
|
|
||||||
|
import "google/protobuf/empty.proto";
|
||||||
|
import "bilibili/app/dynamic/v2/dynamic.proto";
|
||||||
|
|
||||||
|
service Search {
|
||||||
|
rpc ChatResultPush (google.protobuf.Empty) returns (stream ChatResult);
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message Bubble {
|
||||||
|
repeated bilibili.app.dynamic.v2.Paragraph paragraphs = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message ChatResult {
|
||||||
|
//
|
||||||
|
int32 code = 1;
|
||||||
|
//
|
||||||
|
string session_id = 2;
|
||||||
|
//
|
||||||
|
repeated Bubble bubble = 3;
|
||||||
|
//
|
||||||
|
string rewrite_word = 4;
|
||||||
|
//
|
||||||
|
string title = 5;
|
||||||
|
}
|
||||||
@@ -12,6 +12,30 @@ service PlayURL {
|
|||||||
rpc PlayViewComic(PlayViewReq) returns (PlayViewReply);
|
rpc PlayViewComic(PlayViewReq) returns (PlayViewReply);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message Animation {
|
||||||
|
//
|
||||||
|
map<string, string> qn_svga_animation_map = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message AudioMaterialProto {
|
||||||
|
//
|
||||||
|
string audio_id = 1;
|
||||||
|
//
|
||||||
|
string title = 2;
|
||||||
|
//
|
||||||
|
string edition = 3;
|
||||||
|
//
|
||||||
|
uint64 person_id = 4;
|
||||||
|
//
|
||||||
|
string person_name = 5;
|
||||||
|
//
|
||||||
|
string person_avatar = 6;
|
||||||
|
//
|
||||||
|
repeated DashItem audio = 7;
|
||||||
|
}
|
||||||
|
|
||||||
// 角标信息
|
// 角标信息
|
||||||
message BadgeInfo {
|
message BadgeInfo {
|
||||||
// 角标文案
|
// 角标文案
|
||||||
@@ -24,6 +48,8 @@ message BadgeInfo {
|
|||||||
string text_color = 4;
|
string text_color = 4;
|
||||||
// ? 新版本客户端已弃用此项
|
// ? 新版本客户端已弃用此项
|
||||||
GradientColor bg_gradient_color = 5;
|
GradientColor bg_gradient_color = 5;
|
||||||
|
//
|
||||||
|
string img = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dialog组件: 底部显示
|
// Dialog组件: 底部显示
|
||||||
@@ -66,6 +92,10 @@ message ButtonInfo {
|
|||||||
GradientColor bg_gradient_color = 14;
|
GradientColor bg_gradient_color = 14;
|
||||||
//
|
//
|
||||||
map<string, string> order_report_params = 15;
|
map<string, string> order_report_params = 15;
|
||||||
|
//
|
||||||
|
TaskParam task_param = 16;
|
||||||
|
//
|
||||||
|
string pc_link = 17;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 投屏限制. code = 0 时为无限制, 否则表示不不允许投屏并提示message
|
// 投屏限制. code = 0 时为无限制, 否则表示不不允许投屏并提示message
|
||||||
@@ -99,6 +129,7 @@ enum ClipType {
|
|||||||
CLIP_TYPE_ED = 2; // 跳过ED
|
CLIP_TYPE_ED = 2; // 跳过ED
|
||||||
CLIP_TYPE_HE = 3; //
|
CLIP_TYPE_HE = 3; //
|
||||||
CLIP_TYPE_MULTI_VIEW = 4; //
|
CLIP_TYPE_MULTI_VIEW = 4; //
|
||||||
|
CLIP_TYPE_AD = 5; //
|
||||||
}
|
}
|
||||||
|
|
||||||
// 编码类型
|
// 编码类型
|
||||||
@@ -137,6 +168,10 @@ message Coupon {
|
|||||||
string real_amount = 9;
|
string real_amount = 9;
|
||||||
// 使用过期时间
|
// 使用过期时间
|
||||||
google.protobuf.Timestamp expire_time = 10;
|
google.protobuf.Timestamp expire_time = 10;
|
||||||
|
//
|
||||||
|
int64 otype = 11;
|
||||||
|
//
|
||||||
|
string amount = 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 优惠券信息
|
// 优惠券信息
|
||||||
@@ -181,6 +216,8 @@ message DashItem {
|
|||||||
uint64 size = 7;
|
uint64 size = 7;
|
||||||
// 帧率
|
// 帧率
|
||||||
string frame_rate = 8;
|
string frame_rate = 8;
|
||||||
|
// DRM widevine 密钥
|
||||||
|
string widevine_pssh = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
// dash视频流
|
// dash视频流
|
||||||
@@ -207,6 +244,14 @@ message DashVideo {
|
|||||||
int32 width = 10;
|
int32 width = 10;
|
||||||
// 高
|
// 高
|
||||||
int32 height = 11;
|
int32 height = 11;
|
||||||
|
// DRM 密钥
|
||||||
|
string widevine_pssh = 12;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message DataControl {
|
||||||
|
//
|
||||||
|
bool need_watch_progress = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 鉴权浮层
|
// 鉴权浮层
|
||||||
@@ -239,6 +284,8 @@ message Dialog {
|
|||||||
TextInfo right_bottom_desc = 13;
|
TextInfo right_bottom_desc = 13;
|
||||||
//
|
//
|
||||||
repeated BottomDisplay bottom_display = 14;
|
repeated BottomDisplay bottom_display = 14;
|
||||||
|
//
|
||||||
|
repeated PlayList play_list = 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 鉴权浮层配置
|
// 鉴权浮层配置
|
||||||
@@ -251,6 +298,8 @@ message DialogConfig {
|
|||||||
bool is_nested_scroll_enable = 3;
|
bool is_nested_scroll_enable = 3;
|
||||||
// 是否强制竖屏
|
// 是否强制竖屏
|
||||||
bool is_force_halfscreen_enable = 4;
|
bool is_force_halfscreen_enable = 4;
|
||||||
|
// 是否启用背景半透明
|
||||||
|
bool is_background_translucent_enable = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 当前分辨率信息
|
// 当前分辨率信息
|
||||||
@@ -281,23 +330,114 @@ message DolbyItem {
|
|||||||
enum DrmTechType {
|
enum DrmTechType {
|
||||||
NON = 0; //
|
NON = 0; //
|
||||||
FAIR_PLAY = 1; //
|
FAIR_PLAY = 1; //
|
||||||
|
WIDE_VINE = 2; //
|
||||||
|
BILI_DRM = 3; //
|
||||||
}
|
}
|
||||||
|
|
||||||
// 播放结束页
|
// 播放结束后的尾页Dialog
|
||||||
message EndPage {
|
message EndPage {
|
||||||
// 鉴权浮层
|
//
|
||||||
Dialog dialog = 1;
|
Dialog dialog = 1;
|
||||||
// 播放完后是否隐藏end_page
|
//
|
||||||
bool hide = 2;
|
bool hide = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message EpInlineVideo {
|
||||||
|
//
|
||||||
|
int64 material_no = 1;
|
||||||
|
//
|
||||||
|
int64 aid = 2;
|
||||||
|
//
|
||||||
|
int64 cid = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 剧集广告信息
|
||||||
|
message EpisodeAdvertisementInfo {
|
||||||
|
//
|
||||||
|
int64 aid = 1;
|
||||||
|
//
|
||||||
|
string title = 2;
|
||||||
|
//
|
||||||
|
string link = 3;
|
||||||
|
//
|
||||||
|
int32 follow_video_bnt_flag = 4;
|
||||||
|
//
|
||||||
|
string next_video_title = 5;
|
||||||
|
//
|
||||||
|
string next_video_link = 6;
|
||||||
|
//
|
||||||
|
int64 cid = 7;
|
||||||
|
//
|
||||||
|
int32 season_id = 8;
|
||||||
|
//
|
||||||
|
int32 follow = 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
// EP信息
|
||||||
|
message EpisodeInfo {
|
||||||
|
//
|
||||||
|
int32 ep_id = 1;
|
||||||
|
//
|
||||||
|
int64 cid = 2;
|
||||||
|
//
|
||||||
|
int64 aid = 3;
|
||||||
|
//
|
||||||
|
int64 ep_status = 4;
|
||||||
|
//
|
||||||
|
SeasonInfo season_info = 5;
|
||||||
|
//
|
||||||
|
string cover = 6;
|
||||||
|
//
|
||||||
|
string title = 7;
|
||||||
|
//
|
||||||
|
Interaction interaction = 8;
|
||||||
|
//
|
||||||
|
string long_title = 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message EpPreVideo {
|
||||||
|
//
|
||||||
|
int64 aid = 1;
|
||||||
|
//
|
||||||
|
int64 cid = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message EpPublicityVideo {
|
||||||
|
//
|
||||||
|
enum Type {
|
||||||
|
DATA_NOT_SET = 0;
|
||||||
|
EP_PRE_VIDEO = 2;
|
||||||
|
EP_INLINE = 3;
|
||||||
|
}
|
||||||
|
//
|
||||||
|
Type type = 1;
|
||||||
|
//
|
||||||
|
oneof data {
|
||||||
|
//
|
||||||
|
EpPreVideo ep_pre_video = 2;
|
||||||
|
//
|
||||||
|
EpInlineVideo ep_inline_video = 3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
enum EpPublicityVideoType {
|
||||||
|
//
|
||||||
|
PRE = 0;
|
||||||
|
//
|
||||||
|
INLINE = 1;
|
||||||
|
}
|
||||||
|
|
||||||
// 事件
|
// 事件
|
||||||
message Event {
|
message Event {
|
||||||
// 震动
|
// 震动
|
||||||
Shake shake = 1;
|
Shake shake = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ? 放映室提示语
|
// 放映室提示语
|
||||||
message FreyaConfig {
|
message FreyaConfig {
|
||||||
//
|
//
|
||||||
string desc = 1;
|
string desc = 1;
|
||||||
@@ -343,6 +483,16 @@ message HighDefinitionTrialInfo {
|
|||||||
ButtonInfo no_longer_trial_btn = 9;
|
ButtonInfo no_longer_trial_btn = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 历史记录节点
|
||||||
|
message HistoryNode {
|
||||||
|
// 节点ID
|
||||||
|
int64 node_id = 1;
|
||||||
|
// 节点标题
|
||||||
|
string title = 2;
|
||||||
|
// 对应CID
|
||||||
|
int64 cid = 3;
|
||||||
|
}
|
||||||
|
|
||||||
// 图片信息
|
// 图片信息
|
||||||
message ImageInfo {
|
message ImageInfo {
|
||||||
// 图片链接
|
// 图片链接
|
||||||
@@ -365,6 +515,28 @@ enum InlineType {
|
|||||||
TYPE_PREVIEW = 3; //
|
TYPE_PREVIEW = 3; //
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 交互信息
|
||||||
|
message Interaction {
|
||||||
|
// 历史节点
|
||||||
|
HistoryNode history_node = 1;
|
||||||
|
// 版本
|
||||||
|
int64 graph_version = 2;
|
||||||
|
// 交互消息
|
||||||
|
string msg = 3;
|
||||||
|
// 是否为交互
|
||||||
|
bool is_interaction = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 限制操作类型
|
||||||
|
enum LimitActionType {
|
||||||
|
//
|
||||||
|
LAT_UNKNOWN = 0;
|
||||||
|
//
|
||||||
|
SHOW_LIMIT_DIALOG = 1;
|
||||||
|
//
|
||||||
|
SKIP_CURRENT_EP = 2;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
message MultiView {
|
message MultiView {
|
||||||
//
|
//
|
||||||
@@ -379,44 +551,46 @@ message MultiView {
|
|||||||
|
|
||||||
// 大会员广告: 支付提示信息
|
// 大会员广告: 支付提示信息
|
||||||
message PayTip {
|
message PayTip {
|
||||||
//
|
// 标题
|
||||||
string title = 1;
|
string title = 1;
|
||||||
//
|
// 跳转链接
|
||||||
string url = 2;
|
string url = 2;
|
||||||
//
|
// 图标
|
||||||
string icon = 3;
|
string icon = 3;
|
||||||
//
|
// 浮层类型
|
||||||
int32 type = 4;
|
int32 type = 4;
|
||||||
//
|
// 显示类型
|
||||||
int32 show_type = 5;
|
int32 show_type = 5;
|
||||||
//
|
// 图片信息
|
||||||
string img = 6;
|
string img = 6;
|
||||||
//
|
// 白天背景颜色
|
||||||
string bg_day_color = 7;
|
string bg_day_color = 7;
|
||||||
//
|
// 夜间背景颜色
|
||||||
string bg_night_color = 8;
|
string bg_night_color = 8;
|
||||||
//
|
// 白天线条颜色
|
||||||
string bg_line_color = 9;
|
string bg_line_color = 9;
|
||||||
//
|
// 夜间线条颜色
|
||||||
string bg_night_line_color = 10;
|
string bg_night_line_color = 10;
|
||||||
//
|
// 文字颜色
|
||||||
string text_color = 11;
|
string text_color = 11;
|
||||||
//
|
// 夜间文字颜色
|
||||||
string text_night_color = 12;
|
string text_night_color = 12;
|
||||||
//
|
// 视图展示起始时间
|
||||||
int64 view_start_time = 13;
|
int64 view_start_time = 13;
|
||||||
//
|
// 按钮列表
|
||||||
repeated ButtonInfo button = 14;
|
repeated ButtonInfo button = 14;
|
||||||
//
|
// 跳转链接打开方式
|
||||||
int32 url_open_type = 15;
|
int32 url_open_type = 15;
|
||||||
//
|
// 埋点上报信息
|
||||||
Report report = 16;
|
Report report = 16;
|
||||||
//
|
// 角度样式
|
||||||
int32 angle_style = 17;
|
int32 angle_style = 17;
|
||||||
//
|
// 埋点上报类型
|
||||||
int32 report_type = 18;
|
int32 report_type = 18;
|
||||||
//
|
// 订单埋点上报参数
|
||||||
map<string, string> order_report_params = 19;
|
map<string, string> order_report_params = 19;
|
||||||
|
// 巨屏图片信息
|
||||||
|
string giant_screen_img = 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 禁用功能配置
|
// 禁用功能配置
|
||||||
@@ -450,14 +624,15 @@ message PlayAbilityConf {
|
|||||||
bool freya_enter_disable = 27; // 一起看入口
|
bool freya_enter_disable = 27; // 一起看入口
|
||||||
bool dolby_disable = 28; // 杜比音效
|
bool dolby_disable = 28; // 杜比音效
|
||||||
bool freya_full_disable = 29; // 全屏一起看入口
|
bool freya_full_disable = 29; // 全屏一起看入口
|
||||||
bool skip_oped_switch_disable = 30; //
|
bool skip_oped_switch_disable = 30; // 跳过片头片尾
|
||||||
bool record_screen_disable = 31; //
|
bool record_screen_disable = 31; // 录屏
|
||||||
bool color_optimize_disable = 32; //
|
bool color_optimize_disable = 32; // 色觉优化
|
||||||
|
bool dubbing_disable = 33; // 配音
|
||||||
}
|
}
|
||||||
|
|
||||||
// 云控扩展配置信息
|
// 云控扩展配置信息
|
||||||
message PlayAbilityExtConf {
|
message PlayAbilityExtConf {
|
||||||
// 自定义配置扩展信息
|
//
|
||||||
bool allow_close_subtitle = 1;
|
bool allow_close_subtitle = 1;
|
||||||
//
|
//
|
||||||
FreyaConfig freya_config = 2;
|
FreyaConfig freya_config = 2;
|
||||||
@@ -465,12 +640,43 @@ message PlayAbilityExtConf {
|
|||||||
CastTips cast_tips = 3;
|
CastTips cast_tips = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 播放配音信息
|
||||||
|
message PlayDubbingInfo {
|
||||||
|
// 背景音频
|
||||||
|
AudioMaterialProto background_audio = 1;
|
||||||
|
// 角色音频列表
|
||||||
|
repeated RoleAudioProto role_audio_list = 2;
|
||||||
|
// 引导文本
|
||||||
|
string guide_text = 3;
|
||||||
|
}
|
||||||
|
|
||||||
// 错误码
|
// 错误码
|
||||||
enum PlayErr {
|
enum PlayErr {
|
||||||
NoErr = 0; //
|
NoErr = 0; //
|
||||||
WithMultiDeviceLoginErr = 1; // 管控类型的错误码
|
WithMultiDeviceLoginErr = 1; // 管控类型的错误码
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 播放扩展信息
|
||||||
|
message PlayExtInfo {
|
||||||
|
// 播放配音信息
|
||||||
|
PlayDubbingInfo play_dubbing_info = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message PlayList {
|
||||||
|
//
|
||||||
|
int32 season_id = 1;
|
||||||
|
//
|
||||||
|
string title = 2;
|
||||||
|
//
|
||||||
|
string cover = 3;
|
||||||
|
//
|
||||||
|
string link = 4;
|
||||||
|
//
|
||||||
|
BadgeInfo badge_info = 5;
|
||||||
|
}
|
||||||
|
|
||||||
// 其他业务信息
|
// 其他业务信息
|
||||||
message PlayViewBusinessInfo {
|
message PlayViewBusinessInfo {
|
||||||
// 当前视频是否是预览
|
// 当前视频是否是预览
|
||||||
@@ -497,6 +703,22 @@ message PlayViewBusinessInfo {
|
|||||||
map<string, int32> exp_map = 11;
|
map<string, int32> exp_map = 11;
|
||||||
// DRM技术类型
|
// DRM技术类型
|
||||||
DrmTechType drm_tech_type = 12;
|
DrmTechType drm_tech_type = 12;
|
||||||
|
//
|
||||||
|
int32 limit_action_type = 13;
|
||||||
|
//
|
||||||
|
bool is_drm = 14;
|
||||||
|
//
|
||||||
|
RecordInfo record_info = 15;
|
||||||
|
//
|
||||||
|
int32 vip_status = 16;
|
||||||
|
//
|
||||||
|
bool is_live_pre = 17;
|
||||||
|
//
|
||||||
|
EpisodeInfo episode_info = 18;
|
||||||
|
//
|
||||||
|
EpisodeAdvertisementInfo episode_advertisement_info = 19;
|
||||||
|
//
|
||||||
|
UserStatus user_status = 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 播放页信息-响应
|
// 播放页信息-响应
|
||||||
@@ -513,6 +735,8 @@ message PlayViewReply {
|
|||||||
ViewInfo view_info = 5;
|
ViewInfo view_info = 5;
|
||||||
// 自定义配置扩展信息
|
// 自定义配置扩展信息
|
||||||
PlayAbilityExtConf play_ext_conf = 6;
|
PlayAbilityExtConf play_ext_conf = 6;
|
||||||
|
// 播放扩展信息
|
||||||
|
PlayExtInfo play_ext_info = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 播放页信息-请求
|
// 播放页信息-请求
|
||||||
@@ -555,6 +779,12 @@ message PlayViewReq {
|
|||||||
InlineScene inline_scene = 17;
|
InlineScene inline_scene = 17;
|
||||||
//
|
//
|
||||||
int64 material_no = 18;
|
int64 material_no = 18;
|
||||||
|
// DRM 安全等级
|
||||||
|
int32 security_level = 19;
|
||||||
|
//
|
||||||
|
int64 season_id = 20;
|
||||||
|
//
|
||||||
|
DataControl data_control = 21;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 弹窗信息
|
// 弹窗信息
|
||||||
@@ -607,6 +837,14 @@ message QualityExtInfo {
|
|||||||
bool trial_support = 1;
|
bool trial_support = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 备案信息
|
||||||
|
message RecordInfo {
|
||||||
|
// 记录
|
||||||
|
string record = 1;
|
||||||
|
// 记录图标
|
||||||
|
string record_icon = 2;
|
||||||
|
}
|
||||||
|
|
||||||
// 埋点上报信息
|
// 埋点上报信息
|
||||||
message Report {
|
message Report {
|
||||||
// 曝光事件
|
// 曝光事件
|
||||||
@@ -633,6 +871,24 @@ message ResponseUrl {
|
|||||||
string md5 = 6;
|
string md5 = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 权限信息
|
||||||
|
message Rights {
|
||||||
|
// 是否可以观看
|
||||||
|
int32 can_watch = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 角色配音信息
|
||||||
|
message RoleAudioProto {
|
||||||
|
// 角色ID
|
||||||
|
int64 role_id = 1;
|
||||||
|
// 角色名称
|
||||||
|
string role_name = 2;
|
||||||
|
// 角色头像
|
||||||
|
string role_avatar = 3;
|
||||||
|
// 音频素材列表
|
||||||
|
repeated AudioMaterialProto audio_material_list = 4;
|
||||||
|
}
|
||||||
|
|
||||||
// 场景控制
|
// 场景控制
|
||||||
message SceneControl {
|
message SceneControl {
|
||||||
// 是否收藏播单
|
// 是否收藏播单
|
||||||
@@ -647,6 +903,44 @@ message SceneControl {
|
|||||||
bool is_need_trial = 5;
|
bool is_need_trial = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 方案
|
||||||
|
message Scheme {
|
||||||
|
enum ActionType {
|
||||||
|
UNKNOWN = 0;
|
||||||
|
SHOW_TOAST = 1;
|
||||||
|
}
|
||||||
|
//
|
||||||
|
ActionType action_type = 1;
|
||||||
|
//
|
||||||
|
string toast = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// PGC SEASON 信息
|
||||||
|
message SeasonInfo {
|
||||||
|
// PGC SEASON ID
|
||||||
|
int32 season_id = 1;
|
||||||
|
// PGC SEASON 类型
|
||||||
|
int32 season_type = 2;
|
||||||
|
// PGC SEASON 状态
|
||||||
|
int32 season_status = 3;
|
||||||
|
// 封面
|
||||||
|
string cover = 4;
|
||||||
|
// 标题
|
||||||
|
string title = 5;
|
||||||
|
// 权限信息
|
||||||
|
Rights rights = 6;
|
||||||
|
// 模式
|
||||||
|
int32 mode = 7;
|
||||||
|
}
|
||||||
|
|
||||||
|
// DRM 安全等级
|
||||||
|
enum SecurityLevel {
|
||||||
|
LEVEL_UNKNOWN = 0; //
|
||||||
|
LEVEL_L1 = 1; //
|
||||||
|
LEVEL_L2 = 2; //
|
||||||
|
LEVEL_L3 = 3; //
|
||||||
|
}
|
||||||
|
|
||||||
// 分段视频流
|
// 分段视频流
|
||||||
message SegmentVideo {
|
message SegmentVideo {
|
||||||
//分段视频流列表
|
//分段视频流列表
|
||||||
@@ -674,32 +968,36 @@ message Stream {
|
|||||||
|
|
||||||
// 流媒体元数据
|
// 流媒体元数据
|
||||||
message StreamInfo {
|
message StreamInfo {
|
||||||
// 清晰度
|
// 视频质量
|
||||||
uint32 quality = 1;
|
int32 quality = 1;
|
||||||
// 格式
|
// 视频格式
|
||||||
string format = 2;
|
string format = 2;
|
||||||
// 格式描述
|
// 描述信息
|
||||||
string description = 3;
|
string description = 3;
|
||||||
// 错误码
|
// 错误码
|
||||||
uint32 err_code = 4;
|
int32 err_code = 4;
|
||||||
// 不满足条件信息
|
// 流限制信息
|
||||||
StreamLimit limit = 5;
|
StreamLimit limit = 5;
|
||||||
// 是否需要vip
|
// 是否需要VIP
|
||||||
bool need_vip = 6;
|
bool need_vip = 6;
|
||||||
// 是否需要登录
|
// 是否需要登录
|
||||||
bool need_login = 7;
|
bool need_login = 7;
|
||||||
// 是否完整
|
// 是否完整
|
||||||
bool intact = 8;
|
bool intact = 8;
|
||||||
// 是否非全二压
|
// 权限信息
|
||||||
bool no_rexcode = 9;
|
|
||||||
// 清晰度属性位
|
|
||||||
int64 attribute = 10;
|
int64 attribute = 10;
|
||||||
// 新版格式描述
|
// 新版描述信息
|
||||||
string new_description = 11;
|
string new_description = 11;
|
||||||
// 格式文字
|
// 显示描述信息
|
||||||
string display_desc = 12;
|
string display_desc = 12;
|
||||||
// 新版格式描述备注
|
// 上标
|
||||||
string superscript = 13;
|
string superscript = 13;
|
||||||
|
// 方案信息
|
||||||
|
Scheme scheme = 14;
|
||||||
|
// 是否支持DRM
|
||||||
|
bool support_drm = 15;
|
||||||
|
// 字幕信息
|
||||||
|
string subtitle = 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 清晰度不满足条件信息
|
// 清晰度不满足条件信息
|
||||||
@@ -712,14 +1010,24 @@ message StreamLimit {
|
|||||||
string msg = 3;
|
string msg = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 任务参数信息
|
||||||
|
message TaskParam {
|
||||||
|
// 任务类型
|
||||||
|
string task_type = 1;
|
||||||
|
// 活动ID
|
||||||
|
int64 activity_id = 2;
|
||||||
|
// 提示ID
|
||||||
|
int64 tips_id = 3;
|
||||||
|
}
|
||||||
|
|
||||||
// 文案信息
|
// 文案信息
|
||||||
message TextInfo {
|
message TextInfo {
|
||||||
// 文案
|
// 文案
|
||||||
string text = 1;
|
string text = 1;
|
||||||
// 字体色值
|
// 字体色值
|
||||||
string textColor = 2;
|
string text_color = 2;
|
||||||
// 字体色值-夜间模式
|
// 字体色值-夜间模式
|
||||||
string textColorNight = 3;
|
string text_color_night = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// toast
|
// toast
|
||||||
@@ -740,6 +1048,18 @@ message Toast {
|
|||||||
map<string, string> order_report_params = 7;
|
map<string, string> order_report_params = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 用户状态信息
|
||||||
|
message UserStatus {
|
||||||
|
// 是否支付
|
||||||
|
bool pay_check = 1;
|
||||||
|
// 是否承包
|
||||||
|
bool sponsor = 2;
|
||||||
|
// 观看进度
|
||||||
|
WatchProgress watch_progress = 3;
|
||||||
|
// 系列观看进度
|
||||||
|
WatchProgress aid_watch_progress = 4;
|
||||||
|
}
|
||||||
|
|
||||||
// 视频url信息
|
// 视频url信息
|
||||||
message VideoInfo {
|
message VideoInfo {
|
||||||
// 视频清晰度
|
// 视频清晰度
|
||||||
@@ -760,26 +1080,48 @@ message VideoInfo {
|
|||||||
|
|
||||||
// 展示信息
|
// 展示信息
|
||||||
message ViewInfo {
|
message ViewInfo {
|
||||||
// 鉴权浮层
|
// 弹窗
|
||||||
Dialog dialog = 1;
|
Dialog dialog = 1;
|
||||||
// toast
|
// Toast
|
||||||
Toast toast = 2;
|
Toast toast = 2;
|
||||||
// 优惠券信息
|
// 优惠券信息
|
||||||
CouponInfo coupon_info = 3;
|
CouponInfo coupon_info = 3;
|
||||||
// 未购买的超前点播ep列表
|
// 未支付剧集ID列表
|
||||||
repeated int64 demand_no_pay_epids = 4;
|
repeated int64 demand_no_pay_epids = 4;
|
||||||
// 播放结束页
|
// 结束页
|
||||||
EndPage end_page = 5;
|
EndPage end_page = 5;
|
||||||
//
|
// 扩展配置
|
||||||
map<string, bool> exp_config = 6;
|
map<string, bool> exp_config = 6;
|
||||||
// 弹窗
|
// 弹窗
|
||||||
PopWin pop_win = 7;
|
PopWin pop_win = 7;
|
||||||
//
|
// 试看提示栏
|
||||||
PromptBar try_watch_prompt_bar = 8;
|
PromptBar try_watch_prompt_bar = 8;
|
||||||
//
|
// 支付提示信息
|
||||||
PayTip pay_tip = 9;
|
PayTip pay_tip = 9;
|
||||||
//
|
// 高清试看提示信息
|
||||||
HighDefinitionTrialInfo high_definition_trial_info = 10;
|
HighDefinitionTrialInfo high_definition_trial_info = 10;
|
||||||
//
|
// 弹窗扩展
|
||||||
map<string, Dialog> ext_dialog = 11;
|
map<string, Dialog> ext_dialog = 11;
|
||||||
|
// 动画
|
||||||
|
Animation animation = 12;
|
||||||
|
// Toast扩展
|
||||||
|
map<string, Toast> ext_toast = 13;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 观看进度信息
|
||||||
|
message WatchProgress {
|
||||||
|
// 上次观看的 EP ID
|
||||||
|
int32 last_ep_id = 1;
|
||||||
|
// 上次观看到的EP INDEX
|
||||||
|
string last_ep_index = 2;
|
||||||
|
// 上次观看的进度
|
||||||
|
int64 progress = 3;
|
||||||
|
// 上次观看的 CID
|
||||||
|
int64 last_play_cid = 4;
|
||||||
|
// 带时间的提示信息
|
||||||
|
Toast toast = 5;
|
||||||
|
// 不带时间的提示信息
|
||||||
|
Toast toast_without_time = 6;
|
||||||
|
// 上次观看的 AID
|
||||||
|
int64 last_play_aid = 7;
|
||||||
}
|
}
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
syntax = "proto3";
|
|
||||||
|
|
||||||
package bilibili.pgc.gateway.player.v3;
|
|
||||||
|
|
||||||
import "bilibili/playershared/playershared.proto";
|
|
||||||
|
|
||||||
import "google/protobuf/any.proto";
|
|
||||||
|
|
||||||
// 播放页信息-请求
|
|
||||||
message PlayViewReq {
|
|
||||||
// 视频信息
|
|
||||||
bilibili.playershared.VideoVod vod = 1;
|
|
||||||
// 当前页spm
|
|
||||||
string spmid = 2;
|
|
||||||
// 上一页spm
|
|
||||||
string from_spmid = 3;
|
|
||||||
// 青少年模式
|
|
||||||
int32 teenagers_mode = 4;
|
|
||||||
//
|
|
||||||
map<string, string> extra_content = 5;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// 播放页信息-响应
|
|
||||||
message PlayViewReply {
|
|
||||||
bilibili.playershared.VodInfo vod_info = 1;
|
|
||||||
bilibili.playershared.PlayArcConf play_arc_conf = 2;
|
|
||||||
google.protobuf.Any supplement = 3;
|
|
||||||
bilibili.playershared.PlayArc play_arc = 4;
|
|
||||||
bilibili.playershared.QnTrialInfo qn_trial_info = 5;
|
|
||||||
bilibili.playershared.Event event = 6;
|
|
||||||
}
|
|
||||||
@@ -2,14 +2,26 @@ syntax = "proto3";
|
|||||||
|
|
||||||
package bilibili.playershared;
|
package bilibili.playershared;
|
||||||
|
|
||||||
//
|
// ArcConf消息
|
||||||
message ArcConf {
|
message ArcConf {
|
||||||
|
// 是否支持
|
||||||
bool is_support = 1;
|
bool is_support = 1;
|
||||||
bool disable = 2;
|
// 是否禁用
|
||||||
|
bool disabled = 2;
|
||||||
|
// 额外内容
|
||||||
ExtraContent extra_content = 3;
|
ExtraContent extra_content = 3;
|
||||||
|
// 不支持场景列表
|
||||||
repeated int32 unsupport_scene = 4;
|
repeated int32 unsupport_scene = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
enum ArcType {
|
||||||
|
//
|
||||||
|
ARC_TYPE_NORMAL = 0;
|
||||||
|
//
|
||||||
|
ARC_TYPE_INTERACT = 1;
|
||||||
|
}
|
||||||
|
|
||||||
// 按钮组件
|
// 按钮组件
|
||||||
message Button {
|
message Button {
|
||||||
// 按钮文本
|
// 按钮文本
|
||||||
@@ -72,18 +84,92 @@ enum ConfType {
|
|||||||
//
|
//
|
||||||
message ConfValue {
|
message ConfValue {
|
||||||
oneof value {
|
oneof value {
|
||||||
// DASH流
|
//
|
||||||
int32 switch_val = 1;
|
int32 switch_val = 1;
|
||||||
// 分段流
|
//
|
||||||
int32 selected_val = 2;
|
int32 selected_val = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dash条目
|
||||||
|
message DashItem {
|
||||||
|
// 清晰度
|
||||||
|
uint32 id = 1;
|
||||||
|
// 主线流
|
||||||
|
string base_url = 2;
|
||||||
|
// 备用流
|
||||||
|
repeated string backup_url = 3;
|
||||||
|
// 带宽
|
||||||
|
uint32 bandwidth = 4;
|
||||||
|
// 编码id
|
||||||
|
uint32 codecid = 5;
|
||||||
|
// md5
|
||||||
|
string md5 = 6;
|
||||||
|
// 大小
|
||||||
|
uint64 size = 7;
|
||||||
|
// 帧率
|
||||||
|
string frame_rate = 8;
|
||||||
|
// DRM密钥
|
||||||
|
string widevine_pssh = 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 视频流信息: 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 audio_id = 7;
|
||||||
|
// 是否非全二压
|
||||||
|
bool no_rexcode = 8;
|
||||||
|
// 帧率
|
||||||
|
string frame_rate = 9;
|
||||||
|
// 宽
|
||||||
|
int32 width = 10;
|
||||||
|
// 高
|
||||||
|
int32 height = 11;
|
||||||
|
// DRM密钥
|
||||||
|
string widevine_pssh = 12;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
message DeviceConf {
|
message DeviceConf {
|
||||||
ConfValue conf_value = 1;
|
ConfValue conf_value = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 当前分辨率信息
|
||||||
|
message Dimension {
|
||||||
|
// 宽
|
||||||
|
int32 width = 1;
|
||||||
|
// 长
|
||||||
|
int32 height = 2;
|
||||||
|
// 旋转角度
|
||||||
|
int32 rotate = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 杜比伴音流信息
|
||||||
|
message DolbyItem {
|
||||||
|
// 杜比类型
|
||||||
|
enum Type {
|
||||||
|
NONE = 0; // NONE
|
||||||
|
COMMON = 1; // 普通杜比音效
|
||||||
|
ATMOS = 2; // 全景杜比音效
|
||||||
|
}
|
||||||
|
// 杜比类型
|
||||||
|
Type type = 1;
|
||||||
|
// 音频流
|
||||||
|
repeated DashItem audio = 2;
|
||||||
|
}
|
||||||
|
|
||||||
// DRM类型
|
// DRM类型
|
||||||
enum DrmTechType {
|
enum DrmTechType {
|
||||||
//
|
//
|
||||||
@@ -96,12 +182,18 @@ enum DrmTechType {
|
|||||||
BILI_DRM = 3;
|
BILI_DRM = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 事件
|
||||||
|
message Event {
|
||||||
|
// 震动
|
||||||
|
Shake shake = 1;
|
||||||
|
}
|
||||||
|
|
||||||
// ? 错误码补充信息
|
// ? 错误码补充信息
|
||||||
message ExtraContent {
|
message ExtraContent {
|
||||||
//
|
//
|
||||||
string disable_reason = 1;
|
string disable_reason = 1;
|
||||||
//
|
//
|
||||||
uint64 disable_code = 2;
|
int64 disable_code = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 播放历史
|
// 播放历史
|
||||||
@@ -112,17 +204,79 @@ message History {
|
|||||||
HistoryInfo related_video = 2;
|
HistoryInfo related_video = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
message HistoryInfo {
|
message HistoryInfo {
|
||||||
//
|
//
|
||||||
int64 progress = 1;
|
int64 progress = 1;
|
||||||
//
|
//
|
||||||
int64 last_play_cid = 2;
|
int64 last_play_cid = 2;
|
||||||
|
//
|
||||||
|
Toast toast = 3;
|
||||||
|
//
|
||||||
|
Toast toast_without_time = 4;
|
||||||
|
//
|
||||||
|
int64 last_play_aid = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message Interaction {
|
||||||
|
//
|
||||||
|
Node history_node = 1;
|
||||||
|
//
|
||||||
|
int64 graph_version = 2;
|
||||||
|
//
|
||||||
|
string msg = 3;
|
||||||
|
//
|
||||||
|
int64 mark = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
// HIRES伴音流信息
|
||||||
|
message LossLessItem {
|
||||||
|
// 是否为hires
|
||||||
|
bool is_lossless_audio = 1;
|
||||||
|
// 音频流信息
|
||||||
|
DashItem audio = 2;
|
||||||
|
// 是否需要大会员
|
||||||
|
bool need_vip = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message Node {
|
||||||
|
//
|
||||||
|
int64 node_id = 1;
|
||||||
|
//
|
||||||
|
string title = 2;
|
||||||
|
//
|
||||||
|
int64 cid = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message PlayArc {
|
||||||
|
//
|
||||||
|
VideoType video_type = 1;
|
||||||
|
//
|
||||||
|
uint64 aid = 2;
|
||||||
|
//
|
||||||
|
uint64 cid = 3;
|
||||||
|
//
|
||||||
|
DrmTechType drm_tech_type = 4;
|
||||||
|
//
|
||||||
|
ArcType arc_type = 5;
|
||||||
|
//
|
||||||
|
Interaction interaction = 6;
|
||||||
|
//
|
||||||
|
Dimension dimension = 7;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 播放页信息-响应: PlayArcConf
|
||||||
|
message PlayArcConf {
|
||||||
|
map<int32, ArcConf> arc_confs = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
message PlayDeviceConf {
|
message PlayDeviceConf {
|
||||||
//
|
//
|
||||||
map<int32, DeviceConf> arc_confs = 1;
|
map<int32, DeviceConf> device_confs = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 错误码
|
// 错误码
|
||||||
@@ -131,6 +285,46 @@ enum PlayErr {
|
|||||||
WithMultiDeviceLoginErr = 1; // 管控类型的错误码
|
WithMultiDeviceLoginErr = 1; // 管控类型的错误码
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 播放页信息-响应: 高画质试看信息
|
||||||
|
message QnTrialInfo {
|
||||||
|
// 能否试看高画质
|
||||||
|
bool trial_able = 1;
|
||||||
|
//
|
||||||
|
int32 remaining_times = 2;
|
||||||
|
//
|
||||||
|
int32 start = 3;
|
||||||
|
//
|
||||||
|
int32 time_length = 4;
|
||||||
|
//
|
||||||
|
Toast start_toast = 5;
|
||||||
|
//
|
||||||
|
Toast end_toast = 6;
|
||||||
|
//
|
||||||
|
Button quality_open_tip_btn = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dash Response, 未使用
|
||||||
|
message ResponseDash {
|
||||||
|
repeated DashItem video = 1;
|
||||||
|
repeated DashItem audio = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 分段流条目
|
||||||
|
message ResponseUrl {
|
||||||
|
// 分段序号
|
||||||
|
uint32 order = 1;
|
||||||
|
// 分段时长
|
||||||
|
uint64 length = 2;
|
||||||
|
// 分段大小
|
||||||
|
uint64 size = 3;
|
||||||
|
// 主线流
|
||||||
|
string url = 4;
|
||||||
|
// 备用流
|
||||||
|
repeated string backup_url = 5;
|
||||||
|
// md5
|
||||||
|
string md5 = 6;
|
||||||
|
}
|
||||||
|
|
||||||
// 方案
|
// 方案
|
||||||
message Scheme {
|
message Scheme {
|
||||||
enum ActionType {
|
enum ActionType {
|
||||||
@@ -143,21 +337,15 @@ message Scheme {
|
|||||||
string toast = 2;
|
string toast = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
// 视频流信息: 分段流
|
||||||
enum UnsupportScene {
|
message SegmentVideo {
|
||||||
//
|
repeated ResponseUrl segment = 1;
|
||||||
UNKNOWN_SCENE = 0;
|
|
||||||
//
|
|
||||||
PREMIERE = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 视频类型
|
// 震动
|
||||||
enum VideoType {
|
message Shake {
|
||||||
UNKNOWN = 0;
|
//
|
||||||
// 用户生成内容
|
string file = 1;
|
||||||
UGC = 1;
|
|
||||||
// 专业生产内容
|
|
||||||
PGC = 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 视频流信息
|
// 视频流信息
|
||||||
@@ -211,83 +399,6 @@ message StreamInfo {
|
|||||||
bool support_drm = 17;
|
bool support_drm = 17;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dash条目
|
|
||||||
message DashItem {
|
|
||||||
// 清晰度
|
|
||||||
uint32 id = 1;
|
|
||||||
// 主线流
|
|
||||||
string base_url = 2;
|
|
||||||
// 备用流
|
|
||||||
repeated string backup_url = 3;
|
|
||||||
// 带宽
|
|
||||||
uint32 bandwidth = 4;
|
|
||||||
// 编码id
|
|
||||||
uint32 codecid = 5;
|
|
||||||
// md5
|
|
||||||
string md5 = 6;
|
|
||||||
// 大小
|
|
||||||
uint64 size = 7;
|
|
||||||
// 帧率
|
|
||||||
string frame_rate = 8;
|
|
||||||
// DRM密钥
|
|
||||||
string widevine_pssh = 9;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 视频流信息: 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 audio_id = 7;
|
|
||||||
// 是否非全二压
|
|
||||||
bool no_rexcode = 8;
|
|
||||||
// 帧率
|
|
||||||
string frame_rate = 9;
|
|
||||||
// 宽
|
|
||||||
int32 width = 10;
|
|
||||||
// 高
|
|
||||||
int32 height = 11;
|
|
||||||
// DRM密钥
|
|
||||||
string widevine_pssh = 12;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 视频流信息: 分段流
|
|
||||||
message SegmentVideo {
|
|
||||||
repeated ResponseUrl segment = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 分段流条目
|
|
||||||
message ResponseUrl {
|
|
||||||
// 分段序号
|
|
||||||
uint32 order = 1;
|
|
||||||
// 分段时长
|
|
||||||
uint64 length = 2;
|
|
||||||
// 分段大小
|
|
||||||
uint64 size = 3;
|
|
||||||
// 主线流
|
|
||||||
string url = 4;
|
|
||||||
// 备用流
|
|
||||||
repeated string backup_url = 5;
|
|
||||||
// md5
|
|
||||||
string md5 = 6;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Dash Response, 未使用
|
|
||||||
message ResponseDash {
|
|
||||||
repeated DashItem video = 1;
|
|
||||||
repeated DashItem audio = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 视频流信息: 流媒体元数据: 清晰度不满足条件信息
|
// 视频流信息: 流媒体元数据: 清晰度不满足条件信息
|
||||||
message StreamLimit {
|
message StreamLimit {
|
||||||
// 标题
|
// 标题
|
||||||
@@ -298,6 +409,30 @@ message StreamLimit {
|
|||||||
string msg = 3;
|
string msg = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Toast信息
|
||||||
|
message Toast {
|
||||||
|
// toast文案
|
||||||
|
string text = 1;
|
||||||
|
// toast按钮
|
||||||
|
Button button = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
enum UnsupportScene {
|
||||||
|
//
|
||||||
|
UNKNOWN_SCENE = 0;
|
||||||
|
//
|
||||||
|
PREMIERE = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 视频类型
|
||||||
|
enum VideoType {
|
||||||
|
UNKNOWN = 0;
|
||||||
|
// 用户生成内容
|
||||||
|
UGC = 1;
|
||||||
|
// 专业生产内容
|
||||||
|
PGC = 2;
|
||||||
|
}
|
||||||
|
|
||||||
// 播放页信息-请求: 音视频VOD
|
// 播放页信息-请求: 音视频VOD
|
||||||
message VideoVod {
|
message VideoVod {
|
||||||
@@ -345,30 +480,8 @@ message VodInfo {
|
|||||||
VolumeInfo volume = 8;
|
VolumeInfo volume = 8;
|
||||||
// HIRES伴音流信息
|
// HIRES伴音流信息
|
||||||
LossLessItem loss_less_item = 9;
|
LossLessItem loss_less_item = 9;
|
||||||
}
|
// 是否支持投屏
|
||||||
|
bool support_project = 10;
|
||||||
// 杜比伴音流信息
|
|
||||||
message DolbyItem {
|
|
||||||
// 杜比类型
|
|
||||||
enum Type {
|
|
||||||
NONE = 0; // NONE
|
|
||||||
COMMON = 1; // 普通杜比音效
|
|
||||||
ATMOS = 2; // 全景杜比音效
|
|
||||||
}
|
|
||||||
// 杜比类型
|
|
||||||
Type type = 1;
|
|
||||||
// 音频流
|
|
||||||
repeated DashItem audio = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// HIRES伴音流信息
|
|
||||||
message LossLessItem {
|
|
||||||
// 是否为hires
|
|
||||||
bool is_lossless_audio = 1;
|
|
||||||
// 音频流信息
|
|
||||||
DashItem audio = 2;
|
|
||||||
// 是否需要大会员
|
|
||||||
bool need_vip = 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 响度均衡操作信息
|
// 响度均衡操作信息
|
||||||
@@ -388,58 +501,3 @@ message VolumeInfo {
|
|||||||
// Target true peak 目标响度真峰值
|
// Target true peak 目标响度真峰值
|
||||||
double target_tp = 7;
|
double target_tp = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
message PlayArc {
|
|
||||||
//
|
|
||||||
VideoType video_type = 1;
|
|
||||||
//
|
|
||||||
uint64 aid = 2;
|
|
||||||
//
|
|
||||||
uint64 cid = 3;
|
|
||||||
//
|
|
||||||
DrmTechType drm_tech_type = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 播放页信息-响应: PlayArcConf
|
|
||||||
message PlayArcConf {
|
|
||||||
map<int32, ArcConf> arc_confs = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 播放页信息-响应: 高画质试看信息
|
|
||||||
message QnTrialInfo {
|
|
||||||
// 能否试看高画质
|
|
||||||
bool trial_able = 1;
|
|
||||||
//
|
|
||||||
int32 remaining_times = 2;
|
|
||||||
//
|
|
||||||
int32 start = 3;
|
|
||||||
//
|
|
||||||
int32 time_length = 4;
|
|
||||||
//
|
|
||||||
Toast start_toast = 5;
|
|
||||||
//
|
|
||||||
Toast end_toast = 6;
|
|
||||||
//
|
|
||||||
Button quality_open_tip_btn = 8;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Toast信息
|
|
||||||
message Toast {
|
|
||||||
// toast文案
|
|
||||||
string text = 1;
|
|
||||||
// toast按钮
|
|
||||||
Button button = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 事件
|
|
||||||
message Event {
|
|
||||||
// 震动
|
|
||||||
Shake shake = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 震动
|
|
||||||
message Shake {
|
|
||||||
//
|
|
||||||
string file = 1;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1098,18 +1098,38 @@ message SearchBannerCard {
|
|||||||
|
|
||||||
//
|
//
|
||||||
message SearchByTypeRequest {
|
message SearchByTypeRequest {
|
||||||
|
enum CategorySort {
|
||||||
|
CATEGORY_SORT_DEFAULT = 0;
|
||||||
|
CATEGORY_SORT_PUBLISH_TIME = 1;
|
||||||
|
CATEGORY_SORT_CLICK_COUNT = 2;
|
||||||
|
CATEGORY_SORT_COMMENT_COUNT = 3;
|
||||||
|
CATEGORY_SORT_LIKE_COUNT = 4;
|
||||||
|
}
|
||||||
|
enum UserType {
|
||||||
|
ALL = 0;
|
||||||
|
UP = 1;
|
||||||
|
NORMAL_USER = 2;
|
||||||
|
AUTHENTICATED_USER = 3;
|
||||||
|
}
|
||||||
|
enum UserSort {
|
||||||
|
USER_SORT_DEFAULT = 0;
|
||||||
|
USER_SORT_FANS_DESCEND = 1;
|
||||||
|
USER_SORT_FANS_ASCEND = 2;
|
||||||
|
USER_SORT_LEVEL_DESCEND = 3;
|
||||||
|
USER_SORT_LEVEL_ASCEND = 4;
|
||||||
|
}
|
||||||
// 搜索目标类型, 番剧为7
|
// 搜索目标类型, 番剧为7
|
||||||
int32 type = 1;
|
int32 type = 1;
|
||||||
// 关键词
|
// 关键词
|
||||||
string keyword = 2;
|
string keyword = 2;
|
||||||
//
|
//
|
||||||
int32 category_sort = 3;
|
CategorySort category_sort = 3;
|
||||||
//
|
//
|
||||||
int64 category_id = 4;
|
int64 category_id = 4;
|
||||||
//
|
//
|
||||||
int32 user_type = 5;
|
UserType user_type = 5;
|
||||||
//
|
//
|
||||||
int32 user_sort = 6;
|
UserSort user_sort = 6;
|
||||||
//
|
//
|
||||||
bilibili.pagination.Pagination pagination = 7;
|
bilibili.pagination.Pagination pagination = 7;
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
package bilibili.polymer.contract;
|
package bilibili.polymer.contract.v1;
|
||||||
|
|
||||||
import "google/protobuf/empty.proto";
|
import "google/protobuf/empty.proto";
|
||||||
|
|
||||||
Reference in New Issue
Block a user