From 89564e96bbbcd04f0fcc7a609a7721fe6da89d24 Mon Sep 17 00:00:00 2001 From: Jannchie Date: Sun, 13 Feb 2022 16:27:59 +0900 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=BC=B9=E5=B9=95?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=9A=84=E7=A4=BA=E4=BE=8B=20(#321)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- live/message_stream.md | 92 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/live/message_stream.md b/live/message_stream.md index 908be18..9e7fb1f 100644 --- a/live/message_stream.md +++ b/live/message_stream.md @@ -415,6 +415,98 @@ data字段 + +json格式 + +| 字段 | 类型 | 内容 | 备注 | +| ---- | ---- | ------ | --------- | +| cmd | string | "DANMU_MSG" | 如果是弹幕消息,内容则是"DANMU_MSG" | +| info | list | 单条弹幕的用户、内容、粉丝勋章等各种信息 | 待补 | + +
+查看消息示例: + +``` json +{ + "cmd": "DANMU_MSG", + "info": [ + [ + 0, + 4, + 25, + 5566168, + 1644559560263, + 1644558747, + 0, + "998a531f", + 0, + 0, + 5, + "#1453BAFF,#4C2263A2,#3353BAFF", + 0, + "{}", + "{}", + { + "mode": 0, + "show_player_type": 0, + "extra": "" + } + ], + "测试文本", + [ + 1850091, + "Jannchie见齐", + 0, + 0, + 0, + 10000, + 1, + "#00D1F1" + ], + [ + 21, + "観測者", + "Jannchie见齐", + 422915, + 1725515, + "", + 0, + 6809855, + 1725515, + 5414290, + 3, + 1, + 1850091 + ], + [ + 20, + 0, + 6406234, + "u003e50000", + 3 + ], + [ + "", + "" + ], + 0, + 3, + null, + { + "ts": 1644559560, + "ct": "59DEA791" + }, + 0, + 0, + null, + null, + 0, + 210 + ] +} +``` +
+ #### 送礼