Stopping playback on an AVAudioSession on screen lock

Posted by sunshineDev on Stack Overflow See other posts from Stack Overflow or by sunshineDev
Published on 2010-01-28T16:10:13Z Indexed on 2010/06/11 18:13 UTC
Read the original article Hit count: 160

Filed under:
|

Hi everyone,

I have an AVAudioSession under a AVAudioSessionCategoryPlayback category. I need to be able to stop or pause playback when the screen is locked. Is there any way to achieve this?

So far the only thing that produces an interruption to my audio session is an incoming call.

Thanks in advance!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about avaudioplayer