更新部分proto结构体文件

This commit is contained in:
社会易姐QwQ
2021-06-14 01:33:41 +08:00
parent 3acd3e2167
commit 396a571570
21 changed files with 6664 additions and 5424 deletions

View File

@@ -1,29 +1,75 @@
//APP端视频播放v1接口
syntax = "proto3";
package bilibili.app.playurl.v1;
//url
service PlayURL {
//
//https://app.bilibili.com/bilibili.app.playurl.v1.PlayURL/PlayConf
rpc PlayConf (PlayConfReq) returns (PlayConfReply);
//
//
rpc PlayConfEdit (PlayConfEditReq) returns (PlayConfEditReply);
//url
//
// url
rpc PlayURL (PlayURLReq) returns (PlayURLReply);
//
//https://app.bilibili.com/bilibili.app.playurl.v1.PlayURL/PlayView
rpc PlayView (PlayViewReq) returns (PlayViewReply);
//
//
// url
rpc Project (ProjectReq) returns (ProjectReply);
// url及播放界面配置
rpc PlayView (PlayViewReq) returns (PlayViewReply);
//
rpc PlayConfEdit (PlayConfEditReq) returns (PlayConfEditReply);
//
rpc PlayConf (PlayConfReq) returns (PlayConfReply);
}
// url-
message PlayURLReq {
// 稿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 forceHost = 7;
// 4K
bool fourk = 8;
// spm
string spmid = 9;
// spm
string fromSpmid = 10;
}
// url-
message PlayURLReply {
//
uint32 quality = 1;
//
string format = 2;
// (ms)
uint64 timelength = 3;
// id
uint32 videoCodecid = 4;
//
uint32 fnver = 5;
//
uint32 fnval = 6;
//
bool videoProject = 7;
//
repeated ResponseUrl durl = 8;
// dash视频流
ResponseDash dash = 9;
//
int32 noRexcode = 10;
//
UpgradeLimit upgradeLimit = 11;
//
repeated FormatDescription supportFormats = 12;
//
VideoType type = 13;
}
//-
@@ -48,82 +94,9 @@ message PlayConfEditReply {
}
//url-
message PlayURLReq {
//稿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 forceHost = 7;
//4K
bool fourk = 8;
//
string spmid = 9;
//
string fromSpmid = 10;
}
//url-
message PlayURLReply {
//
uint32 quality = 1;
//
string format = 2;
//
uint64 timelength = 3;
//
uint32 videoCodecid = 4;
//
uint32 fnver = 5;
//
uint32 fnval = 6;
//
bool videoProject = 7;
//
repeated ResponseUrl durl = 8;
//
ResponseDash dash = 9;
//
int32 noRexcode = 10;
//
UpgradeLimit upgradeLimit = 11;
//
repeated FormatDescription supportFormats = 12;
//
VideoType type = 13;
}
//-
message PlayViewReq {
@@ -261,15 +234,13 @@ message CloudConf {
FieldValue fieldValue = 3;
}
//
//
enum CodeType {
//
//
NOCODE = 0;
//H.264
// H.264
CODE264 = 1;
//H.265
// H.265
CODE265 = 2;
}
@@ -277,88 +248,60 @@ enum CodeType {
enum ConfType {
//
NoType_VALUE = 0;
//
FLIPCONF_VALUE = 1;
//
CASTCONF_VALUE = 2;
//
FEEDBACK_VALUE = 3;
//
SUBTITLE_VALUE = 4;
//
PLAYBACKRATE_VALUE = 5;
//
TIMEUP_VALUE = 6;
//
PLAYBACKMODE_VALUE = 7;
//
SCALEMODE_VALUE = 8;
//
BACKGROUNDPLAY_VALUE = 9;
//
LIKE_VALUE = 10;
//
DISLIKE_VALUE = 11;
//
COIN_VALUE = 12;
//
ELEC_VALUE = 13;
//
SHARE_VALUE = 14;
//
SCREENSHOT_VALUE = 15;
//
LOCKSCREEN_VALUE = 16;
//
RECOMMEND_VALUE = 17;
//
PLAYBACKSPEED_VALUE = 18;
//
DEFINITION_VALUE = 19;
//
SELECTIONS_VALUE = 20;
//
NEXT_VALUE = 21;
//
EDITDM_VALUE = 22;
//
SMALLWINDOW_VALUE = 23;
//
SHAKE_VALUE = 24;
//
OUTERDM_VALUE = 25;
//
INNERDM_VALUE = 26;
//
PANORAMA_VALUE = 27;
//
DOLBY_VALUE = 28;
}
@@ -367,22 +310,16 @@ enum ConfType {
message DashItem {
//
uint32 id=1;
//线
string baseUrl=2;
//
repeated string backupUrl=3;
//
uint32 bandwidth=4;
//
uint32 codecid=5;
//md5
string md5=6;
//
uint64 size=7;
}
@@ -550,85 +487,58 @@ message PlayAbilityConf {
message PlayArcConf {
//
ArcConf backgroundPlayConf=1;
//
ArcConf flipConf=2;
//
ArcConf castConf=3;
//
ArcConf feedbackConf=4;
//
ArcConf subtitleConf=5;
//
ArcConf playbackRateConf=6;
//
ArcConf timeUpConf=7;
//
ArcConf playbackModeConf=8;
//
ArcConf scaleModeConf=9;
//
ArcConf likeConf=10;
//
ArcConf dislikeConf=11;
//
ArcConf coinConf=12;
//
ArcConf elecConf=13;
//
ArcConf shareConf=14;
//
ArcConf screenShotConf=15;
//
ArcConf lockScreenConf=16;
//
ArcConf recommendConf=17;
//
ArcConf playbackSpeedConf=18;
//
ArcConf definitionConf=19;
//
ArcConf selectionsConf=20;
//
ArcConf nextConf=21;
//
ArcConf editDmConf=22;
//
ArcConf smallWindowConf=23;
//
ArcConf shakeConf=24;
//
ArcConf outerDmConf=25;
//
ArcConf innerDmConf=26;
//
ArcConf freyaEnterConf=27;
//
ArcConf dolbyConf=28;
}
@@ -730,40 +640,28 @@ message Stream {
message StreamInfo {
// qn
uint32 quality=1;
//
string format=2;
//
string description=3;
//
uint32 errCode=4;
//
Limit limit=5;
//vip
bool needVip=6;
//
bool needLogin=7;
//
bool intact=8;
//
bool noRexcode=9;
//
int64 attribute=10;
//
string newDescription=11;
//
string displayDesc=12;
//
string superscript=13;
}
@@ -828,17 +726,14 @@ message VideoInfo {
DolbyItem dolby=7;
}
//
//
enum VideoType {
//
Unknown_VALUE = 0;
//
// flv格式
FLV_VALUE = 1;
//
// dash格式
DASH_VALUE = 2;
//
// mp4格式
MP4_VALUE = 3;
}