Search code examples
iphoneobjective-caudiostreamer

AudioStreamer stops when switching between cellular and wifi


I'm using AudioStreamer and everything works fine, except when I switch between cellular and wifi network. It imediately stopps.

I tested it without leaving the app by switching off the wifi network, so i can proof the problem is not caused when the app is in the background.

So, did anyone have problems with AudioStreamer when switching between networks ?

cheers Simon


Solution

  • It makes sense as the network change is an interruption in data flow… Put a breakpoint in the stop and pause methods to see what is calling it. My suspicion is that it is being called in the handleInterruptionChangeToState method (line 1924)