ap4y / OrigamiEngine

Lightweight audio engine for iOS and OSX with flac, cue, mp3, m4a, m3u support.
http://ap4y.github.com/OrigamiEngine/
MIT License
545 stars 118 forks source link

Can not pause playback in the beginning #56

Open daria-kopaliani opened 9 years ago

daria-kopaliani commented 9 years ago

I came across this issue when implementing AVAudioSessionInterruptionNotification notification handlers. It turns out "pause" command is ignored for a certain amount of time after playUrl: method is invoked (and in case of http streaming and slow internet it might be quite a while). This potentially can result in music playing in the background of your phone call :) Nothing we can't fix with a few workarounds on the client but it would be great to have this taken care of in OrigamiEngine. (Perhaps this is another argument in favour of introducing buffering state as suggested in one of issues).

Thank you in advance.

diogobalseiro commented 9 years ago

How did you work around this issue?