OrdinaryRoad-Project / ordinaryroad-live-chat-client

(2024最新版) 一个基于Netty的通用直播间弹幕客户端,支持网络代理,支持弹幕发送*、为主播点赞*,已支持B站、斗鱼、虎牙、抖音、快手;BarrageFly——让弹幕飞,基于该项目的一个弹幕转发、过滤、处理平台;支持多平台直播间弹幕监听
https://barragefly.ordinaryroad.tech
MIT License
205 stars 41 forks source link

message结构发生改变 #139

Closed YYYet closed 3 months ago

YYYet commented 3 months ago

{
    "protover": 0,
    "cmd": "DANMU_MSG:4:0:2:2:2:0",
    "id": null,
    "name": null,
    "full": null,
    "half": null,
    "side": null,
    "data": null,
    "info": [
        [
            0,
            1,
            25,
            5566168,
            1717551698527,
            575348325,
            0,
            "556eb8dc",
            0,
            0,
            0,
            "",
            0,
            "{}",
            "{}",
            {
                "extra": "{\"send_from_me\":false,\"mode\":0,\"color\":5566168,\"dm_type\":0,\"font_size\":25,\"player_mode\":1,\"show_player_type\":0,\"content\":\"[比心][比心][比心][比心][比心]\",\"user_hash\":\"143331964114\",\"emoticon_unique\":\"\",\"bulge_display\":0,\"recommend_score\":8,\"main_state_dm_color\":\"\",\"objective_state_dm_color\":\"\",\"direction\":0,\"pk_direction\":0,\"quartet_direction\":0,\"anniversary_crowd\":0,\"yeah_space_type\":\"\",\"yeah_space_url\":\"\",\"jump_to_url\":\"\",\"space_type\":\"\",\"space_url\":\"\",\"animation\":{},\"emots\":{\"[比心]\":{\"count\":5,\"descript\":\"[比心]\",\"emoji\":\"[比心]\",\"emoticon_id\":217,\"emoticon_unique\":\"emoji_217\",\"height\":20,\"url\":\"http://i0.hdslb.com/bfs/live/4e029593562283f00d39b99e055787812c4199c71d.png\",\"width\":20}},\"is_audited\":false,\"id_str\":\"5037c9b66121234c0e54b49532150665fc243\",\"icon\":null,\"show_reply\":true,\"reply_mid\":0,\"reply_uname\":\"\",\"reply_uname_color\":\"\",\"reply_is_mystery\":false,\"hit_combo\":0}",
                "mode": 0,
                "show_player_type": 0,
                "user": {
                    "base": {
                        "face": "用户头像直链",
                        "is_mystery": false,
                        "name": "这里是用户名",
                        "name_color": 0,
                        "name_color_str": "",
                        "official_info": {
                            "desc": "",
                            "role": 0,
                            "title": "",
                            "type": -1
                        },
                        "origin_info": {
                            "face": "用户头像直链",
                            "name": "这里是用户名"
                        },
                        "risk_ctrl_info": null
                    },
                    "guard": null,
                    "guard_leader": {
                        "is_guard_leader": false
                    },
                    "medal": null,
                    "title": {
                        "old_title_css_id": "",
                        "title_css_id": ""
                    },
                    "uhead_frame": null,
                    "uid": 这里是uid,
                    "wealth": null
                }
            },
            {
                "activity_identity": "",
                "activity_source": 0,
                "not_show": 0
            },
            0
        ],
        "[比心][比心][比心][比心][比心]",
        [
            这里是uid,
            "这里是用户名",
            0,
            0,
            0,
            10000,
            1,
            ""
        ],
        [

        ],
        [
            30,
            0,
            58051790,
            ">50000",
            0
        ],
        [
            "",
            ""
        ],
        0,
        0,
        null,
        {
            "ct": "CA33198EC",
            "ts": 17175151698
        },
        0,
        0,
        null,
        null,
        0,
        440,
        [
            37
        ],
        null
    ],
    "msg_common": null,
    "msg_self": null,
    "link_url": null,
    "msg_type": null,
    "shield_uid": null,
    "business_id": null,
    "scatter": null,
    "roomid": 0,
    "real_roomid": 0,
    "cmdEnum": null,
    "dm_v2": ""
}
YYYet commented 3 months ago

b站原message的cmd可能发生了改变,现在onDanmuMsg无法正常获取弹幕,我目前是在onUnknownCmd接受并单独做的处理