ZOYKU火线榜

bilibili/DanmakuFlameMaster技术文档

bilibili/DanmakuFlameMaster open-source repository on GitHub

目录大纲 (TOC) (5 章节)▾
多语言回退提示:当前仓库原作者暂未发布本地化文档,已为您无缝切换至官方英文原版(English),排版及代码实例完整保真。
极速安装
git clone https://github.com/bilibili/DanmakuFlameMaster.git

DanmakuFlameMaster

android上开源弹幕解析绘制引擎项目。Build Status

DFM Inside:

bili

Features

  • 使用多种方式(View/SurfaceView/TextureView)实现高效绘制

  • B站xml弹幕格式解析

  • 基础弹幕精确还原绘制

  • 支持mode7特殊弹幕

  • 多核机型优化,高效的预缓存机制

  • 支持多种显示效果选项实时切换

  • 实时弹幕显示支持

  • 换行弹幕支持/运动弹幕支持

  • 支持自定义字体

  • 支持多种弹幕参数设置

  • 支持多种方式的弹幕屏蔽

TODO:

  • 增加OpenGL ES绘制方式

Download

Download the latest version or grab via Maven:

<dependency>
  <groupId>com.github.ctiao</groupId>
  <artifactId>dfm</artifactId>
  <version>0.9.25</version>
</dependency>

or Gradle:

repositories {
    jcenter()
}

dependencies {
    compile 'com.github.ctiao:DanmakuFlameMaster:0.9.25'
    compile 'com.github.ctiao:ndkbitmap-armv7a:0.9.21'

    # Other ABIs: optional
    compile 'com.github.ctiao:ndkbitmap-armv5:0.9.21'
    compile 'com.github.ctiao:ndkbitmap-x86:0.9.21'
}

Snapshots of the development version are available in Sonatype's snapshots repository.

License

Copyright (C) 2013-2015 Chen Hui <[email protected]>
Licensed under the Apache License, Version 2.0 (the "License");
文档镜像归档自 GitHub 官方源路径 · 访问原项目 GitHub
最后同步快照:2026-11-09