mattgallagher / AudioStreamer

A streaming audio player class (AudioStreamer) for Mac OS X and iPhone.
http://cocoawithlove.com
1.94k stars 554 forks source link

Pause and Background issue with iOS 6 (using storyboards) #51

Open coanag opened 12 years ago

coanag commented 12 years ago

Hi,

i have implemented a demo app with the Audio streamer and after upgrading to ios 6 , the app runs ok. If press stop , put it to background and the bring it back to the foreground , the play button doesn't respond and does not play the stream. By the way , it runs great on iOS 5.1.

Any suggestions?

I should mention that i use storyboards and as far as i see in the original code , when implement with xib everything is ok, but when implement with storyboards something is wrong.

I came across iOS 6 new feature restoration ID and im wondering if it has to do with this.

Mark-Kennedy commented 12 years ago

Hi,

Was wondering if you'd found a fix or solution for this, am having the same problem. The streamer works wonderfully in iOS 5.1 but when stopping and restoring to foreground in iOS6 it refuses to play. Have put an NSlog in on the button and the button press is definitely being picked up so not sure what the fault is.

The .xib version also works great on both iOS5 & 6.

Thanks in advance :-)

coanag commented 12 years ago

I have incorporated the latest audiostreamer into my demo and problem solved. I used a old version of the code. To be honest, after several hours, i didnt manage to find where the problem was.

Mark-Kennedy commented 12 years ago

Tried Matt's latest version, imported into a storyboard and it worked perfectly :-) - thanks for the tip !