Search code examples
iphoneobjective-caudioaudio-streamingaudiostreamer

How to identify AudioStreamer isBuffering state or As_Waiting_for_queue_to_start state?


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


Solution

  • 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