tumtumtum / StreamingKit

A fast and extensible gapless AudioPlayer/AudioStreamer for OSX and iOS (iPhone, iPad)
Other
2.43k stars 525 forks source link

Playing remote mp3/mp4 on low battery on iOS7 causes unexpectedError 3/4 or premature dataSourceEof #193

Open ghost opened 9 years ago

ghost commented 9 years ago

Playing a stream on <10% battery on an iPhone 4/iOS7.1.2 from a remote mp3/m4a/mp4 causes the audio file to not actually play back and give an unexpected error with STKAudioPlayerErrorCode 3 or 4, or a premature dataSourceEof depending on unknown conditions. Has testing been done in low-battery conditions on iOS7?

akatkov7 commented 9 years ago

+1

kvaillancourt commented 9 years ago

+2

lukaslozovski commented 9 years ago

+3

tumtumtum commented 9 years ago

I imagine this is because the ViewController that owns the player gets destroyed. Are you guys wanting a callback before this happens?

ghost commented 9 years ago

Thanks for the response. Could you elaborate more on that? There is a strong reference to the player in both the app delegate and the ViewController owning it, and the view controller's logic continues to execute even after the player starts behaving unexpectedly, so I do not believe the ViewController is destroyed.

ghost commented 9 years ago

@tumtumtum the main reason I raise this as an issue is that AVFoundation operates normally under these conditions and I am not familiar enough with StreamingKit's internals to know why it might act differently.

syrakozz commented 9 years ago

+1

marius-serban commented 9 years ago

+2