feat: new send danmaku panel

Closes #98

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-04 21:48:07 +08:00
parent 58fd373e8c
commit 27e39d4de5
6 changed files with 656 additions and 97 deletions

View File

@@ -29,8 +29,8 @@ class DanmakaHttp {
int type = 1, //弹幕类选择(1视频弹幕 2漫画弹幕)
required int oid, // 视频cid
required String msg, //弹幕文本(长度小于 100 字符)
int mode =
1, // 弹幕类型(1滚动弹幕 4底端弹幕 5顶端弹幕 6逆向弹幕(不能使用) 7高级弹幕 8代码弹幕不能使用 9BAS弹幕pool必须为2)
// 弹幕类型(1滚动弹幕 4底端弹幕 5顶端弹幕 6逆向弹幕(不能使用) 7高级弹幕 8代码弹幕不能使用 9BAS弹幕pool必须为2)
int mode = 1,
// String? aid,// 稿件avid
// String? bvid,// bvid与aid必须有一个
required String bvid,
@@ -47,7 +47,6 @@ class DanmakaHttp {
// 构建参数对象
// assert(aid != null || bvid != null);
// assert(csrf != null || access_key != null);
assert(msg.length < 100);
// 构建参数对象
var params = <String, dynamic>{
'type': type,