Allow user music when application starts - Cocos2d

I'm not quite sure that this is used with Cocos2d, but I would like to know how I can let the user play their music from their playlists or if my application can accidentally select a song from my playlist.

Is it possible?

thank

+3
source share
1 answer

You can check if other music is playing using the Singleton CDAudioManager. Use the function isOtherAudioPlaying. http://www.cocos2d-iphone.org/api-ref/0.99.5/interface_c_d_audio_manager.html#ab664b34e99f6f3e2158f2df910cf3a95

+3
source

All Articles