Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Using iOS audio controls to control the audio in Unity

$
0
0
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

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>