Stop iPod music by NSTimer on background mode - iphone

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.

Related

How to make AVAudioPlayer stop playing background music after 30 minutes even when in background?

I use AVAudioPlayer to play music for children to fall asleep.
The music also plays when the screen is locked or when the app is in the background.
When it plays too long the children wake up again. A developer friend said iOS suspends scheduled NSTimer in background so it is not reliable.
What other option do I have to to make music stop after 30 minutes even if device is in background?
You could take a look at these:
http://developer.apple.com/library/ios/DOCUMENTATION/iPhone/Conceptual/iPhoneOSProgrammingGuide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html#//apple_ref/doc/uid/TP40007072-CH4-SW3
How to run the timer in background of the application?

How can we make the NSTimer to run in background for my audio player in iOS

I am making a audio player in iOS and i have made the audio player,and i am updating the duration of currently playing song using NSTimer,but the thing is that if my app goes in background the timer stops .
Is there any way by which i can run my NSTimer in background ,in order to update the currently playing song current duration.
How apple is running their Audio player in background?
MPMediaPlayer and AVQueuePlayer progress slider, with time left and time elapsed.
If your app is in the background, nobody will see the update anyway.
Just make sure you start the timer again when the app is coming into the foreground, and you'll be fine.

Monitor iPhone's mic level without pausing iPod

I'm using AVAudioRecorder to get the current level of the microphone, but it pauses any iPod music that's playing and won't let the user unpause it. Is there a way of getting the two to work together?

Launching my app causes iPod music to stop

I'm compiling using iOS4. When I launch my application that uses UIImagePickerController and iAds the iPod music halts and doesn't continue in the background? Any settings I have to add to my app?
Thanks
Are you playing any music or sounds from your app? If so, it will mute the iPod.

Can a iPhone voice Recorder App always run in Background recording the Sounds and Play them?

Can a App record the Voice in the surroundings even when it runs in the background and play the recorded audio? Is it possible?
Multitasking doesn't allow audio recording to be in the background, so no.