Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

弹幕冲突 #85

Open
zxzinder opened this issue Jan 29, 2018 · 9 comments
Open

弹幕冲突 #85

zxzinder opened this issue Jan 29, 2018 · 9 comments

Comments

@zxzinder
Copy link

zxzinder commented Jan 29, 2018

本来预先load了已经存在的弹幕,再发送自己的弹幕时,会存在弹幕冲突,请问下该怎么解决呢

@unash
Copy link
Owner

unash commented Jan 30, 2018

如果是弹幕量大导致的冲突,可以通过过滤减少弹幕量优化;
如果不是,提供一下截图看看情况。

@zxzinder
Copy link
Author

zxzinder commented Jan 30, 2018

不是大量的 是预先load了50条弹幕,比如,1,2,3,4....
可能到第7条的时候,我又自己输入一条弹幕,这时候,我输入的和即将出来的第8条就有可能重合
这个有没有什么方法可以控制下啊?
还有个问题,这个load是必须使用delay吗。我发现如果没有加delay属性,就不会预先加载弹幕呀?
感谢感谢

@zxzinder
Copy link
Author

zxzinder commented Jan 30, 2018

如图,英文的就是预先加载,数字就是输入的
设计就是这么小一个地方展示弹幕,从下往上加载
image

@unash
Copy link
Owner

unash commented Jan 30, 2018

这个是自定义的弹幕吗?
这里设置了 trackNumber 参数了吗?

@zxzinder
Copy link
Author

没有自定义哈 就是用的BarrageWalkTextSprite
因为view比较小,trackNumber我试了1,5 都没什么用样

@unash
Copy link
Owner

unash commented Jan 31, 2018

trackNumber 不要设置
试试。

@zxzinder
Copy link
Author

zxzinder commented Feb 1, 2018

如果都不设置会出现如图所示呀,有没有啥子好的办法呀
image

@unash
Copy link
Owner

unash commented Feb 1, 2018

通过 spritesNumberWithName 获取当前显示的弹幕数量,然后做些过滤试试。

@juefeiyechen
Copy link

后续呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants