I am making an online radio station application. The app works well.
My radio does not resume after the call ends. And I have to restart it again.
Here is my code:
void MyAudioSessionInterruptionListener(void *inClientData, UInt32 inInterruptionState) { ShoutcastAudioStreamer *radio = (ShoutcastAudioStreamer*)inClientData; if (inInterruptionState == kAudioSessionBeginInterruption) { [radio stop]; NSLog(@"kAudioSessionBeginInterruption"); } else if (inInterruptionState == kAudioSessionEndInterruption) {
Can anyone help?
source share