-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Comments
我也遇到了这个问题 |
你怎么解决的啊?我现在也不知道该咋整,好慌的 |
朋友,解决了吗?有啥好的解决方式吗? |
感觉跟activity 生命周期有关系,activity onResume 状态 DanmakuView.pause 后DanmakuView.isPaused返回的是true 具体要看DanmakuView内部逻辑了, 我没过里面的源码, 你这边可以避免在activity非onResume 去操作DanmakuView.pause 可以绕过这个问题 |
做个延时器轮询一下DanmakuView.isPaused即可解决,不过可能不是最优解 |
不需要判断DanmakuView.isPaused 直接resume即可 |
我也遇到了这个问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2.Demo,在Acticity onpause和onresume切换的时候,有时候,弹幕会卡死在屏幕上
The text was updated successfully, but these errors were encountered: