AVAudioPlayer pause problem.
Hi,
I am facing a problem with the AVAudioPlayer which seems to be played automatically after pressing the home button and returning to the app again.
After playing the avaudioplayer with the "play" method, I press a button in my app to pause the music using the "pause" method, which is working. But if I press the home button while the audio player is paused, and then I return to the app, the music is being played automatically without me calling the "play" method.
Could any body help me on how to solve this.
I will really appreciate you help.
Thank you very much.
|