更新【proto文件】
This commit is contained in:
@@ -10,46 +10,8 @@ service PlayURL {
|
||||
rpc PlayView (playViewReq) returns (PlayViewReply);
|
||||
}
|
||||
|
||||
enum CodeType{
|
||||
NOCODE = 0;
|
||||
CODE264 = 1;
|
||||
CODE265 = 2;
|
||||
}
|
||||
|
||||
message PlayAbilityConf{
|
||||
bool backgroundPlayDisable=1;
|
||||
bool flipDisable=2;
|
||||
bool castDisable=3;
|
||||
bool feedbackDisable=4;
|
||||
bool subtitleDisable=5;
|
||||
bool playbackRateDisable=6;
|
||||
bool timeUpDisable=7;
|
||||
bool playbackModeDisable=8;
|
||||
bool scaleModeDisable=9;
|
||||
bool likeDisable=10;
|
||||
bool dislikeDisable=11;
|
||||
bool coinDisable=12;
|
||||
bool elecDisable=13;
|
||||
bool shareDisable=14;
|
||||
bool screenShotDisable=15;
|
||||
bool lockScreenDisable=16;
|
||||
bool recommendDisable=17;
|
||||
bool playbackSpeedDisable=18;
|
||||
bool definitionDisable=19;
|
||||
bool selectionsDisable=20;
|
||||
bool nextDisable=21;
|
||||
bool editDmDisable=22;
|
||||
bool smallWindowDisable=23;
|
||||
bool shakeDisable=24;
|
||||
bool outerDmDisable=25;
|
||||
bool innerDmDisable=26;
|
||||
bool freyaEnterDisable=27;
|
||||
bool dolbyDisable=28;
|
||||
}
|
||||
|
||||
//获取播放url
|
||||
//请求
|
||||
message playViewReq{
|
||||
//获取播放url-请求
|
||||
message playViewReq {
|
||||
//目标课程epid
|
||||
int64 epid = 1;
|
||||
|
||||
@@ -59,10 +21,10 @@ message playViewReq{
|
||||
//清晰度
|
||||
int64 qn = 3;
|
||||
|
||||
//
|
||||
//视频流版本
|
||||
int32 fnver = 4;
|
||||
|
||||
//流类型
|
||||
//视频流功能
|
||||
int32 fnval = 5;
|
||||
|
||||
//下载模式
|
||||
@@ -82,7 +44,7 @@ message playViewReq{
|
||||
//
|
||||
string fromSpmid = 10;
|
||||
|
||||
//
|
||||
//青少年模式
|
||||
int32 teenagersMode = 11;
|
||||
|
||||
//编码类型
|
||||
@@ -91,11 +53,111 @@ message playViewReq{
|
||||
//是否强制请求预览视频
|
||||
bool isPreview = 13;
|
||||
}
|
||||
//回复
|
||||
message PlayViewReply{
|
||||
|
||||
//获取播放url-回复
|
||||
message PlayViewReply {
|
||||
//视频信息
|
||||
bilibili.app.playurl.v1.VideoInfo info = 1;
|
||||
|
||||
//播放界面配置
|
||||
PlayAbilityConf PlayConf = 2;
|
||||
}
|
||||
|
||||
//编码类型
|
||||
enum CodeType {
|
||||
//默认
|
||||
NOCODE = 0;
|
||||
|
||||
//H.264
|
||||
CODE264 = 1;
|
||||
|
||||
//H.265
|
||||
CODE265 = 2;
|
||||
}
|
||||
|
||||
//禁用功能配置
|
||||
message PlayAbilityConf {
|
||||
//后台播放
|
||||
bool backgroundPlayDisable=1;
|
||||
|
||||
//镜像反转
|
||||
bool flipDisable=2;
|
||||
|
||||
//投屏
|
||||
bool castDisable=3;
|
||||
|
||||
//反馈
|
||||
bool feedbackDisable=4;
|
||||
|
||||
//字幕
|
||||
bool subtitleDisable=5;
|
||||
|
||||
//播放速度
|
||||
bool playbackRateDisable=6;
|
||||
|
||||
//定时停止
|
||||
bool timeUpDisable=7;
|
||||
|
||||
//播放方式
|
||||
bool playbackModeDisable=8;
|
||||
|
||||
//画面尺寸
|
||||
bool scaleModeDisable=9;
|
||||
|
||||
//赞
|
||||
bool likeDisable=10;
|
||||
|
||||
//踩
|
||||
bool dislikeDisable=11;
|
||||
|
||||
//投币
|
||||
bool coinDisable=12;
|
||||
|
||||
//充电
|
||||
bool elecDisable=13;
|
||||
|
||||
//分享
|
||||
bool shareDisable=14;
|
||||
|
||||
//截图
|
||||
bool screenShotDisable=15;
|
||||
|
||||
//锁定
|
||||
bool lockScreenDisable=16;
|
||||
|
||||
//相关推荐
|
||||
bool recommendDisable=17;
|
||||
|
||||
//播放速度
|
||||
bool playbackSpeedDisable=18;
|
||||
|
||||
//清晰度
|
||||
bool definitionDisable=19;
|
||||
|
||||
//选集
|
||||
bool selectionsDisable=20;
|
||||
|
||||
//下一集
|
||||
bool nextDisable=21;
|
||||
|
||||
//编辑弹幕
|
||||
bool editDmDisable=22;
|
||||
|
||||
//小窗
|
||||
bool smallWindowDisable=23;
|
||||
|
||||
//震动
|
||||
bool shakeDisable=24;
|
||||
|
||||
//
|
||||
bool outerDmDisable=25;
|
||||
|
||||
//
|
||||
bool innerDmDisable=26;
|
||||
|
||||
//
|
||||
bool freyaEnterDisable=27;
|
||||
|
||||
//杜比音效
|
||||
bool dolbyDisable=28;
|
||||
}
|
||||
Reference in New Issue
Block a user