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

【Bug】在调用DanmakuView.pause()之后,DanmakuView.isPaused返回结果还是false #448

Open
AwaiTYu opened this issue Mar 4, 2020 · 7 comments

Comments

@AwaiTYu
Copy link

AwaiTYu commented Mar 4, 2020

  1. 在调用DanmakuView.pause()之后,DanmakuView.isPaused返回结果还是false
    2.Demo,在Acticity onpause和onresume切换的时候,有时候,弹幕会卡死在屏幕上
@qinweiforandroid
Copy link

我也遇到了这个问题

@AwaiTYu
Copy link
Author

AwaiTYu commented Mar 27, 2020

你怎么解决的啊?我现在也不知道该咋整,好慌的

@AwaiTYu
Copy link
Author

AwaiTYu commented Mar 30, 2020

我也遇到了这个问题

朋友,解决了吗?有啥好的解决方式吗?

@qinweiforandroid
Copy link

感觉跟activity 生命周期有关系,activity onResume 状态 DanmakuView.pause 后DanmakuView.isPaused返回的是true 具体要看DanmakuView内部逻辑了, 我没过里面的源码, 你这边可以避免在activity非onResume 去操作DanmakuView.pause 可以绕过这个问题

@qq88892
Copy link

qq88892 commented Oct 20, 2020

做个延时器轮询一下DanmakuView.isPaused即可解决,不过可能不是最优解

@qinweiforandroid
Copy link

不需要判断DanmakuView.isPaused 直接resume即可

@tribbianiwang
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

4 participants