Stopping playback on an AVAudioSession on screen lock
- by sunshineDev
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!