更新【proto文件】
This commit is contained in:
@@ -2,6 +2,181 @@ syntax = "proto3";
|
||||
|
||||
package bilibili.community.service.dm.v1;
|
||||
|
||||
//弹幕
|
||||
service DM {
|
||||
//修改弹幕配置
|
||||
//https://app.bilibili.com/bilibili.community.service.dm.v1.DM/DmPlayerConfig
|
||||
rpc DmPlayerConfig (DmPlayerConfigReq) returns (Response);
|
||||
|
||||
//获取分段弹幕
|
||||
//
|
||||
rpc DmSegMobile (DmSegMobileReq) returns (DmSegMobileReply);
|
||||
|
||||
//获取弹幕元数据
|
||||
//https://app.bilibili.com/bilibili.community.service.dm.v1.DM/DmView
|
||||
rpc DmView (DmViewReq) returns (DmViewReply);
|
||||
}
|
||||
|
||||
//修改弹幕配置-请求
|
||||
message DmPlayerConfigReq{
|
||||
//
|
||||
int64 ts = 1;
|
||||
|
||||
//
|
||||
PlayerDanmakuSwitch switch = 2;
|
||||
|
||||
//
|
||||
PlayerDanmakuSwitchSave switchSave = 3;
|
||||
|
||||
//
|
||||
PlayerDanmakuUseDefaultConfig useDefaultConfig = 4;
|
||||
|
||||
//
|
||||
PlayerDanmakuAiRecommendedSwitch aiRecommendedSwitch = 5;
|
||||
|
||||
//
|
||||
PlayerDanmakuAiRecommendedLevel aiRecommendedLevel = 6;
|
||||
|
||||
//
|
||||
PlayerDanmakuBlocktop blocktop = 7;
|
||||
|
||||
//
|
||||
PlayerDanmakuBlockscroll blockscroll = 8;
|
||||
|
||||
//
|
||||
PlayerDanmakuBlockbottom blockbottom = 9;
|
||||
|
||||
//
|
||||
PlayerDanmakuBlockcolorful blockcolorful = 10;
|
||||
|
||||
//
|
||||
PlayerDanmakuBlockrepeat blockrepeat = 11;
|
||||
|
||||
//
|
||||
PlayerDanmakuBlockspecial blockspecial = 12;
|
||||
|
||||
//
|
||||
PlayerDanmakuOpacity opacity = 13;
|
||||
|
||||
//
|
||||
PlayerDanmakuScalingfactor scalingfactor = 14;
|
||||
|
||||
//
|
||||
PlayerDanmakuDomain domain = 15;
|
||||
|
||||
//
|
||||
PlayerDanmakuSpeed speed = 16;
|
||||
|
||||
//
|
||||
PlayerDanmakuEnableblocklist enableblocklist = 17;
|
||||
|
||||
//
|
||||
InlinePlayerDanmakuSwitch inlinePlayerDanmakuSwitch = 18;
|
||||
}
|
||||
|
||||
//修改弹幕配置-回复
|
||||
message Response{
|
||||
//
|
||||
int32 code = 1;
|
||||
|
||||
//
|
||||
string message = 2;
|
||||
}
|
||||
|
||||
//获取分段弹幕-请求
|
||||
message DmSegMobileReq{
|
||||
//稿件avid/漫画epid
|
||||
int64 pid = 1;
|
||||
|
||||
//视频cid/漫画cid
|
||||
int64 oid = 2;
|
||||
|
||||
//弹幕类型
|
||||
//1:视频 2:漫画
|
||||
int32 type = 3;
|
||||
|
||||
//分段序号
|
||||
int64 segmentIndex = 4;
|
||||
|
||||
//是否青少年模式
|
||||
int32 teenagersMode = 5;
|
||||
}
|
||||
|
||||
//获取分段弹幕-回复
|
||||
message DmSegMobileReply{
|
||||
//弹幕条目
|
||||
repeated DanmakuElem elems = 1;
|
||||
|
||||
//是否已关闭弹幕
|
||||
//0:未关闭 1:已关闭
|
||||
int32 state = 2;
|
||||
|
||||
//
|
||||
DanmakuAIFlag aiFlag = 3;
|
||||
}
|
||||
|
||||
//获取弹幕元数据-请求
|
||||
message DmViewReq{
|
||||
//稿件avid/漫画epid
|
||||
int64 pid = 1;
|
||||
|
||||
//视频cid/漫画cid
|
||||
int64 oid = 2;
|
||||
|
||||
//弹幕类型
|
||||
//1:视频 2:漫画
|
||||
int32 type = 3;
|
||||
|
||||
//页面spm
|
||||
string spmid = 4;
|
||||
|
||||
//是否冷启
|
||||
int32 isHardBoot = 5;
|
||||
}
|
||||
|
||||
//获取弹幕元数据-回复
|
||||
message DmViewReply{
|
||||
//是否已关闭弹幕
|
||||
//0:未关闭 1:已关闭
|
||||
bool closed = 1;
|
||||
|
||||
//智能防挡弹幕蒙版信息
|
||||
VideoMask mask = 2;
|
||||
|
||||
//视频字幕信息
|
||||
VideoSubtitle subtitle = 3;
|
||||
|
||||
//高级弹幕专包url
|
||||
repeated string specialDms = 4;
|
||||
|
||||
//云屏蔽配置信息
|
||||
DanmakuFlagConfig aiFlag = 5;
|
||||
|
||||
//
|
||||
DanmuPlayerViewConfig playerConfig = 6;
|
||||
|
||||
//
|
||||
int32 sendBoxStyle = 7;
|
||||
|
||||
//是否允许
|
||||
bool allow = 8;
|
||||
|
||||
//
|
||||
string checkBox = 9;
|
||||
|
||||
//
|
||||
string checkBoxShowMsg = 10;
|
||||
|
||||
//
|
||||
string textPlaceholder = 11;
|
||||
|
||||
//弹幕输入框文案
|
||||
string inputPlaceholder = 12;
|
||||
|
||||
//
|
||||
repeated string reportFilterContent = 13;
|
||||
}
|
||||
|
||||
//
|
||||
message DanmakuAIFlag{
|
||||
//
|
||||
@@ -72,128 +247,231 @@ message DanmakuFlagConfig{
|
||||
int32 recSwitch = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message DanmuDefaultPlayerConfig{
|
||||
//
|
||||
bool playerDanmakuUseDefaultConfig = 1;
|
||||
|
||||
//
|
||||
bool playerDanmakuAiRecommendedSwitch = 4;
|
||||
|
||||
//
|
||||
int32 playerDanmakuAiRecommendedLevel = 5;
|
||||
|
||||
//
|
||||
bool playerDanmakuBlocktop = 6;
|
||||
|
||||
//
|
||||
bool playerDanmakuBlockscroll = 7;
|
||||
|
||||
//
|
||||
bool playerDanmakuBlockbottom = 8;
|
||||
|
||||
//
|
||||
bool playerDanmakuBlockcolorful = 9;
|
||||
|
||||
//
|
||||
bool playerDanmakuBlockrepeat = 10;
|
||||
|
||||
//
|
||||
bool playerDanmakuBlockspecial = 11;
|
||||
|
||||
//
|
||||
float playerDanmakuOpacity = 12;
|
||||
|
||||
//
|
||||
float playerDanmakuScalingfactor = 13;
|
||||
|
||||
//
|
||||
float playerDanmakuDomain = 14;
|
||||
|
||||
//
|
||||
int32 playerDanmakuSpeed = 15;
|
||||
|
||||
//
|
||||
bool inlinePlayerDanmakuSwitch = 16;
|
||||
}
|
||||
|
||||
//
|
||||
message DanmuPlayerConfig{
|
||||
//
|
||||
bool playerDanmakuSwitch = 1;
|
||||
|
||||
//
|
||||
bool playerDanmakuSwitchSave = 2;
|
||||
|
||||
//
|
||||
bool playerDanmakuUseDefaultConfig = 3;
|
||||
|
||||
//
|
||||
bool playerDanmakuAiRecommendedSwitch = 4;
|
||||
|
||||
//
|
||||
int32 playerDanmakuAiRecommendedLevel = 5;
|
||||
|
||||
//
|
||||
bool playerDanmakuBlocktop = 6;
|
||||
|
||||
//
|
||||
bool playerDanmakuBlockscroll = 7;
|
||||
|
||||
//
|
||||
bool playerDanmakuBlockbottom = 8;
|
||||
|
||||
//
|
||||
bool playerDanmakuBlockcolorful = 9;
|
||||
|
||||
//
|
||||
bool playerDanmakuBlockrepeat = 10;
|
||||
|
||||
//
|
||||
bool playerDanmakuBlockspecial = 11;
|
||||
|
||||
//
|
||||
float playerDanmakuOpacity = 12;
|
||||
|
||||
//
|
||||
float playerDanmakuScalingfactor = 13;
|
||||
|
||||
//
|
||||
float playerDanmakuDomain = 14;
|
||||
|
||||
//
|
||||
int32 playerDanmakuSpeed = 15;
|
||||
|
||||
//
|
||||
bool playerDanmakuEnableblocklist = 16;
|
||||
|
||||
//
|
||||
bool inlinePlayerDanmakuSwitch = 17;
|
||||
|
||||
//
|
||||
int32 inlinePlayerDanmakuConfig = 18;
|
||||
}
|
||||
|
||||
//
|
||||
message DanmuPlayerDynamicConfig{
|
||||
//
|
||||
int32 progress = 1;
|
||||
|
||||
//
|
||||
float playerDanmakuDomain = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message DanmuPlayerViewConfig{
|
||||
//
|
||||
DanmuDefaultPlayerConfig danmukuDefaultPlayerConfig = 1;
|
||||
|
||||
//
|
||||
DanmuPlayerConfig danmukuPlayerConfig = 2;
|
||||
|
||||
//
|
||||
repeated DanmuPlayerDynamicConfig danmukuPlayerDynamicConfig = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message InlinePlayerDanmakuSwitch{
|
||||
//
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuAiRecommendedLevel{
|
||||
//
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuAiRecommendedSwitch{
|
||||
//
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuBlockbottom{
|
||||
//
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuBlockcolorful{
|
||||
//
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuBlockrepeat{
|
||||
//
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuBlockscroll{
|
||||
//
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuBlockspecial{
|
||||
//
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuBlocktop{
|
||||
//
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuDomain{
|
||||
//
|
||||
float value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuEnableblocklist{
|
||||
//
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuOpacity{
|
||||
//
|
||||
float value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuScalingfactor{
|
||||
//
|
||||
float value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuSpeed{
|
||||
//
|
||||
int32 value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuSwitch{
|
||||
//
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuSwitchSave{
|
||||
//
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayerDanmakuUseDefaultConfig{
|
||||
//
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
message Response{
|
||||
int32 code = 1;
|
||||
string message = 2;
|
||||
}
|
||||
|
||||
//单个字幕信息
|
||||
message SubtitleItem{
|
||||
//字幕id
|
||||
@@ -265,123 +543,4 @@ message VideoSubtitle{
|
||||
|
||||
//视频字幕列表
|
||||
repeated SubtitleItem subtitles = 3;
|
||||
}
|
||||
|
||||
//修改弹幕配置
|
||||
//https://app.bilibili.com/bilibili.community.service.dm.v1.DM/DmPlayerConfig
|
||||
//请求
|
||||
message DmPlayerConfigReq{
|
||||
int64 ts = 1;
|
||||
PlayerDanmakuSwitch switch = 2;
|
||||
PlayerDanmakuSwitchSave switchSave = 3;
|
||||
PlayerDanmakuUseDefaultConfig useDefaultConfig = 4;
|
||||
PlayerDanmakuAiRecommendedSwitch aiRecommendedSwitch = 5;
|
||||
PlayerDanmakuAiRecommendedLevel aiRecommendedLevel = 6;
|
||||
PlayerDanmakuBlocktop blocktop = 7;
|
||||
PlayerDanmakuBlockscroll blockscroll = 8;
|
||||
PlayerDanmakuBlockbottom blockbottom = 9;
|
||||
PlayerDanmakuBlockcolorful blockcolorful = 10;
|
||||
PlayerDanmakuBlockrepeat blockrepeat = 11;
|
||||
PlayerDanmakuBlockspecial blockspecial = 12;
|
||||
PlayerDanmakuOpacity opacity = 13;
|
||||
PlayerDanmakuScalingfactor scalingfactor = 14;
|
||||
PlayerDanmakuDomain domain = 15;
|
||||
PlayerDanmakuSpeed speed = 16;
|
||||
PlayerDanmakuEnableblocklist enableblocklist = 17;
|
||||
InlinePlayerDanmakuSwitch inlinePlayerDanmakuSwitch = 18;
|
||||
}
|
||||
|
||||
//获取分段弹幕
|
||||
//请求
|
||||
message DmSegMobileReq{
|
||||
//稿件avid/漫画epid
|
||||
int64 pid = 1;
|
||||
|
||||
//视频cid/漫画cid
|
||||
int64 oid = 2;
|
||||
|
||||
//弹幕类型
|
||||
//1:视频 2:漫画
|
||||
int32 type = 3;
|
||||
|
||||
//分段序号
|
||||
int64 segmentIndex = 4;
|
||||
|
||||
//是否青少年模式
|
||||
int32 teenagersMode = 5;
|
||||
}
|
||||
//回复
|
||||
message DmSegMobileReply{
|
||||
//弹幕条目
|
||||
repeated DanmakuElem elems = 1;
|
||||
|
||||
//是否已关闭弹幕
|
||||
//0:未关闭 1:已关闭
|
||||
int32 state = 2;
|
||||
|
||||
//
|
||||
DanmakuAIFlag aiFlag = 3;
|
||||
}
|
||||
|
||||
//获取弹幕元数据
|
||||
//https://app.bilibili.com/bilibili.community.service.dm.v1.DM/DmView
|
||||
//请求
|
||||
message DmViewReq{
|
||||
//稿件avid/漫画epid
|
||||
int64 pid = 1;
|
||||
|
||||
//视频cid/漫画cid
|
||||
int64 oid = 2;
|
||||
|
||||
//弹幕类型
|
||||
//1:视频 2:漫画
|
||||
int32 type = 3;
|
||||
|
||||
//页面spm
|
||||
string spmid = 4;
|
||||
|
||||
//是否冷启
|
||||
int32 isHardBoot = 5;
|
||||
}
|
||||
//回复
|
||||
message DmViewReply{
|
||||
//是否已关闭弹幕
|
||||
//0:未关闭 1:已关闭
|
||||
bool closed = 1;
|
||||
|
||||
//智能防挡弹幕蒙版信息
|
||||
VideoMask mask = 2;
|
||||
|
||||
//视频字幕信息
|
||||
VideoSubtitle subtitle = 3;
|
||||
|
||||
//高级弹幕专包url
|
||||
repeated string specialDms = 4;
|
||||
|
||||
//云屏蔽配置信息
|
||||
DanmakuFlagConfig aiFlag = 5;
|
||||
|
||||
//
|
||||
DanmuPlayerViewConfig playerConfig = 6;
|
||||
|
||||
//
|
||||
int32 sendBoxStyle = 7;
|
||||
|
||||
//是否允许
|
||||
bool allow = 8;
|
||||
|
||||
//
|
||||
string checkBox = 9;
|
||||
|
||||
//
|
||||
string checkBoxShowMsg = 10;
|
||||
|
||||
//
|
||||
string textPlaceholder = 11;
|
||||
|
||||
//弹幕输入框文案
|
||||
string inputPlaceholder = 12;
|
||||
|
||||
//
|
||||
repeated string reportFilterContent = 13;
|
||||
}
|
||||
Reference in New Issue
Block a user