Just a quick question.
I’ve set up my program to be able to play AVAudioPlayer and AVPlayer in the background, which is working fine. I can play a song, lock my screen and the sound will continue to play.
What I’m having trouble with is calling [AVPlayer play] whilst my screen is ALREADY locked. This ultimately results in no music being played.
You need to tell your player to listen for control events:
Then you can act on them like so: