Comments (1)
@jtyang
1、目前每条弹幕选择弹道是随机的(比如你有3条弹道,新添加的弹幕可能是在这三条弹道中的任一条上)。
2、你说的那种情况是存在的,不过目前我没有好的思路去解决它。
3、我有考虑过的:在添加一条弹幕到弹道上之前,先判断下每条弹道上的弹幕数量,之后选择弹幕数量少的弹道,将新的弹幕添加上去,但是每条弹幕的长度是不确定,所以这种思路我试了之后,放弃了。
4、你可以下载源码,按你的思路优化下。
在源码中找DanMuDispatcher这个类中的dispatch(DanMuModel danMuView, DanMuChannel[] danMuChannels) 方法,你可以修改dispatch方法中的具体实现
from danmukulight.
Related Issues (20)
- 如何实现弹幕暂停和继续 HOT 1
- 大神,这个 弹幕用户头像周围需要闪星星的动画效果 怎么处理这个动画
- 你好 这个循环播放怎么处理 HOT 1
- 用的DanMuSurfaceView 设置透明之后的问题
- 关于DanmuModel方法setspeed的问题 HOT 2
- 弹幕切换横屏后 弹出位置异常 HOT 2
- 如何修改弹道的间距 HOT 1
- 事件问题 HOT 2
- 弹幕出现的弹道问题,本来三条道,跑着跑着会变成一条道 HOT 2
- bug
- 有缓存吗,感觉太耗电了
- 没有加入循环滚动,希望加入
- 请尽快完成弹幕速度设置谢谢 HOT 1
- 能支持添加自定义view的弹幕展示吗
- bintray关闭,能否上传到gitpack
- 关于view和surfaceView选择的问题 HOT 1
- 作者您好,我想把高度改高,应该怎么操作?
- 引用报错
- 如何清空所有弹幕添加新的呢?需求是根据条件筛选弹幕,需要立刻清空当前的弹幕并显示筛选出来的弹幕。。
- 大佬还维护吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from danmukulight.