How to display the control center on iOS without AVAudioPlayer?

60 Views Asked by At

In my iOS app, I use a third party library to play music (I use the JUCE framework).

Now I would like to show my users the control center like the one below, so they can interact with the music player from the lock screen:

Remote control center

To achieve that, I use the MPRemoteCommandCenter, as explained here.

My problem is: that control center displays correctly only if I use the AVAudioPlayer class (or similar) to play music…

Is it possible then to display and use that control center to control music played with a third party library?

Thanks.

0

There are 0 best solutions below