-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 fix: support festival link and fix web view proto (#341)
- Loading branch information
Showing
8 changed files
with
93 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// From https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/danmaku/danmaku_view_proto.md | ||
|
||
syntax = "proto3"; | ||
|
||
package danmaku_view; | ||
|
||
//分段弹幕包信息? | ||
message DmSegConfig { | ||
int64 pageSize = 1; //分段时间? | ||
int64 total = 2; //最大分页数? | ||
} | ||
|
||
// | ||
message DanmakuFlagConfig { | ||
int32 recFlag = 1; // | ||
string recText = 2; // | ||
int32 recSwitch = 3; // | ||
} | ||
|
||
// 互动弹幕条目 | ||
message CommandDm { | ||
int64 id = 1; //弹幕dmid | ||
int64 oid = 2; //视频cid | ||
int64 mid = 3; //发送者mid | ||
string command = 4; //弹幕指令 | ||
string content = 5; //弹幕文字 | ||
int32 progress = 6; //弹幕出现时间 | ||
string ctime = 7; // | ||
string mtime = 8; // | ||
string extra = 9; //弹幕负载数据 | ||
string idStr = 10; //弹幕dmid(字串形式) | ||
} | ||
|
||
//弹幕个人配置 | ||
message DanmuWebPlayerConfig{ | ||
bool dmSwitch=1; //弹幕开关 | ||
bool aiSwitch=2; //智能云屏蔽 | ||
int32 aiLevel=3; //智能云屏蔽级别 | ||
bool blocktop=4; //屏蔽类型-顶部 | ||
bool blockscroll=5; //屏蔽类型-滚动 | ||
bool blockbottom=6; //屏蔽类型-底部 | ||
bool blockcolor=7; //屏蔽类型-彩色 | ||
bool blockspecial=8; //屏蔽类型-特殊 | ||
bool preventshade=9; //防挡弹幕(底部15%) | ||
bool dmask=10; //智能防挡弹幕(人像蒙版) | ||
float opacity=11; //弹幕不透明度 | ||
int32 dmarea=12; //弹幕显示区域 | ||
float speedplus=13; //弹幕速度 | ||
float fontsize=14; //字体大小 | ||
bool screensync=15; //跟随屏幕缩放比例 | ||
bool speedsync=16; //根据播放倍速调整速度 | ||
string fontfamily=17; //字体类型? | ||
bool bold=18; //粗体? | ||
int32 fontborder=19; //描边类型 | ||
string drawType=20; //渲染类型? | ||
} | ||
|
||
message DmWebViewReply { | ||
int32 state = 1; //弹幕开放状态 | ||
string text = 2; // | ||
string textSide = 3; // | ||
DmSegConfig dmSge = 4; //分段弹幕包信息? | ||
DanmakuFlagConfig flag = 5; // | ||
repeated string specialDms = 6; //BAS(代码)弹幕专包url | ||
bool checkBox = 7; // | ||
int64 count = 8; //实际弹幕总数 | ||
repeated CommandDm commandDms = 9; //互动弹幕条目 | ||
DanmuWebPlayerConfig dmSetting = 10; //弹幕个人配置 | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#![allow(clippy::all)] | ||
include!(concat!(env!("OUT_DIR"), "/danmaku_view.rs")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pub mod danmaku; | ||
pub mod danmaku_view; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters