Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

GD-OpenBlive

An asset by Fantety
The page banner background of a mountain and forest
GD-OpenBlive hero image

Quick Information

0 ratings
GD-OpenBlive icon image
Fantety
GD-OpenBlive

bilibili直播开放平台Godot插件

Supported Engine Version
4.2
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

GD-OpenBLive

bilibili直播开放平台Godot插件,仅支持Godot4.2+版本

README

新节点

节点 描述
BLive 用于启动服务的节点,可以通过它连接至弹幕服务器,必须identity_code属性中填入你的身份码,必须在app_id中填入项目ID
WssClient 与websocket相关的节点,必须作为BLive的子节点使用,其中包含了不同弹幕种类相关的信号
ApiClient 与API鉴权相关的节点,必须作为BLive的子节点使用,属性access_key_secret和access_key_id为必填项
BiliAudience 处理danmaku_received信号的数据,加入了头像图片获取等功能

详细说明

Blive
  • connect_to_room() 只需执行此函数即可连接至对应的主播房间
WssClient
  • signal danmaku_received(data)

    接收到弹幕后会发送此信号,data为原始json数据

  • signal gift_received(data)

    接收到礼物幕后会发送此信号,data为原始json数据

  • signal superchat_added(data)

    收到superchat后会发送此信号,data为原始json数据

  • signal superchat_removed(data)

    superchat移除后会发送此信号,data为原始json数据

  • signal guard_hired(data)

    收到舰长后会发送此信号,data为原始json数据

  • signal like(data)

    收到点赞后会发送此信号,data为原始json数据

BiliAudience
  • init_audience_from_json(json)

    传入danmaku_received信号的参数以初始化该节点

bilibili直播开放平台Godot插件

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
GD-OpenBlive icon image
Fantety
GD-OpenBlive

bilibili直播开放平台Godot插件

Supported Engine Version
4.2
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers