Skip to content

New Architecture 新的弹幕抽象化

Choose a tag to compare

@jabbany jabbany released this 26 Sep 21:46
· 191 commits to master since this release

This version introduces a new abstraction layer to our danmaku objects. Now we can support multiple render planes, a wide variety of CommentSpaceAllocators all with minimal code changes. It also fixes some old bugs and adds many new features including better conformation to the future API.

New Features & Bugfixes:

  • Support Bilibili Path follow format
  • Support changing danmaku display type
  • Support AcFun comments better
  • Better abstraction
  • Support most of the new API including events

新版本增加了一系列的对于弹幕和空间管理器的抽象层。现在支持新的显示渲染媒介(如 canvas 或 css)变得容易很多,支持新的空间规划器也变得非常容易,只需微小代码变动。同时我们修复了一些旧的BUG,增加了一些新功能。

功能和修正:

  • 支持B站的轨迹跟随弹幕
  • 支持弹幕样式的灵活化
  • 更好的支持Acfun的高级弹幕
  • 更好的抽象化,节约代码
  • 支持了更多的新API规范(保持兼容性的前提下)