如何识别AudioStreamer Isbuffering状态或AS_WAITING_FOR_QUEUE_TO_START状态?
但实际上,一个新线程在 AudioStreamer 类内部启动,并具有 isBuffering 或 As_WAITING_FOR_QUEUE_TO_START 状态。
我的问题是,如何识别此状态,以便当我单击“下一步”按钮两次时,只有 1 首歌曲开始并且其他请求被拒绝?
请在这方面提供帮助..谢谢
Continue from previous question
I found that when I am having slow streaming from internet and I click next and Previous buttons then two or more song starts because when a new instance of AudioStreamer is created and State of AudioStreamer is neither of isPause, isIdle or isStop.
But actually a new Thread starts inside AudioStreamer class and has isBuffering or As_WAITING_FOR_QUEUE_TO_START state.
My question is how can i identify this states so that when I click Next button twice then only 1 song starts and other request is rejected?
Please help in this regards.. thanx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到的实际问题是,当我的歌曲正在播放时,我单击“下一步”,然后 2 首歌曲同时开始。
所以我发现这是 AudioStreamer 类中的一个错误,解决方案可能是 上给出的链接github
Actual problem i was having is when my song is being stream and i click next then 2 songs started toghther.
So I found that this is a bug in AudioStreamer Class and the solution to this could be something as link given on gitHub