PDA

View Full Version : iPod music should continue when app launches




sneha
Nov 16, 2009, 02:51 AM
I have seen many application in which the ipod music keeps playing the background.Does anyone have idea how to do it ???

I know how to play the tracks present in the ipods music library from the application.



xsmasher
Nov 16, 2009, 09:04 PM
You need to start an audio session with the right profile - one that allows mixing. Google for "iPhone audio sessions"

sneha
Nov 16, 2009, 10:35 PM
You need to start an audio session with the right profile - one that allows mixing. Google for "iPhone audio sessions"

what does audio session with the right profile means ??:confused:

xsmasher
Nov 16, 2009, 11:51 PM
what does audio session with the right profile means ??:confused:

An audio session sets up how your app handles audio. You choose a "Category" for your session that defines its behavior.

Here's Apple's docs on Audio Sessions.
http://developer.apple.com/iPhone/library/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007875-CH1-SW1