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.
----------
![alt text][1]
----------
also I'm using MPNowPlayingInfoCenter to set the info of the current audio but that doesn't work either.
[1]: /storage/temp/109016-img-0001.jpg
↧