Background Music Stops after Call Interruption in iOS 8 - iphone

thanks in advance.
I have to play music in background using AVAudioPlayer but my background music not working after call interruption. Please tell me any solution for that.
Thanks

Related

Flutter Just Audio background Package

When play any song then close the app with background playing after that start the app then recent playing song activity show, this good but i wanna that when start the app then app reload, how's possible?
Just audio dont work in background use this just audio background or audio_service is too much advanced or audio player ;
dont forget to add background mode in Xcode :
Hope it work for you ; Good luck

Background music closes on taking picture from camera UIImagePicker

When I take picture from camera using UIImagePicker, background music (from ipod app, pandora app) stops. It's not happening for facebook app. Is there a separate delegate for this? Please help
This might be due to your Audio Session policy. Taking a picture makes a "click" noise. Perhaps this is causing all other sound to be stopped because of your Audio Session.

Play audio in background

I want my app will play music when she is in the background too,
there is any way to do it? i try to use apple documentation but it didn't work.
it is possible that because i am now using the avplayer i cant play audio in background?
i play the music with
ExtAudioFileSeek(mExtAFRef, finalFrames);
I think playing audio in background is possible only for streaming audio. For normal audio we can only play when screen is locked.
You should look at documentation of using background tasks like:
http://developer.apple.com/library/ios/#DOCUMENTATION/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html
and specially the:
http://developer.apple.com/library/ios/#DOCUMENTATION/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html#//apple_ref/doc/uid/TP40007072-CH5-SW14

MPMoviePlayerController playback problem

I'm having trouble with playing audio stream using MPMoviePlayerController in the background. On the foreground it's playing the audio just fine, but when the application goes to the background, sound disappears and the time keeps going. I have initialized the AVAudioSession with AVAudioSessionCategoryPlayback and have put the required background modes to audio in info.plist file. Also I have set player.useApplicationAudioSession = YES;. What could be the possible problem here? Thanks in advance :)
This ios background link indicates that the useApplicationAudioSession property value should be set to NO for iOS 3.2 and newer. (I have an app that does this and it works fine in background mode.

Stop iPod music by NSTimer on background mode

I'm planning to create an application that plays the ipod Music Library, then the app sets a NSTimer that will stop the ipod Music player on a certain time. My question does my timer will still run when I entered the background mode. Is it possible to stop the ipod Music player on background Mode?
Thanks
[timer invalidate]
use this in your code.