普通的DanmakuView
, 支持右至左滚动, 左至右滚动, 顶部, 底部弹幕, 高级弹幕(关键帧弹幕), 可自定义弹幕(继承Danmaku
类或LineDanmaku
类), 比没得用好
也可以看看 duzhaokun123/fl_danmaku_widget 这是一个使用几乎相同逻辑的 flutter 版本
见 sample
github 不能内联 video 标签 也不能引用存储库的视频资源
所以 自己看 art/sample.mp4
- 二次改变大小后不重绘
- Add it in your root
build.gradle
at the end of repositories:
allprojects {
repositories {
//...
maven { url 'https://jitpack.io' }
}
}
- Add the dependency
dependencies {
implementation 'com.github.duzhaokun123:DanmakuView:$LastVersion'
}
nuck 在点击事件上的帮助