I’m trying to control the audio playing in unity using the built in controls of iOS.
I’ve managed to get the audio playing when the app is running in the background and have made the controls visible using MPRemoteComandCenter.
the problem I have is that the play button is always disabled and I can’t change the info of the audio that is currently playing.
I’ve tried this command to enable the play button but it doesn’t work
[MPRemoteCommandCenter sharedCommandCenter].playCommand.enabled = YES
I’m able to enable and disable the previous and next buttons but the play button is always disabled.
also I’m using MPNowPlayingInfoCenter to set the info of the current audio but that doesn’t work either.
I would really appreciate some help on this, I’ve been trying to get it working for a couple of weeks with no luck.