Re: sleep silences music in iPhone OS 2.2?
Re: sleep silences music in iPhone OS 2.2?
- Subject: Re: sleep silences music in iPhone OS 2.2?
- From: Allan Schaffer <email@hidden>
- Date: Fri, 28 Nov 2008 20:18:47 -0800
Hi John,
The default audio session category was changed in iPhone OS 2.2 from MediaPlayback to SoloAmbientSound. SoloAmbientSound has a number of behaviors that differ from MediaPlayback -- it "obeys" the ringer switch, and it does not continue playback after the display locks.
To change back to MediaPlayback (or another category) you can use the Audio Session API.
See the Audio Session programming guide (especially "Why a Default Audio Session Usually Isn’t What You Want"):
and also Technical Q&A 1626 - "Ensuring audio playback continues when screen is locked":
Allan ___________
Allan Schaffer Graphics Evangelist Worldwide Developer Relations On Nov 28, 2008, at 2:07 PM, John Zorko wrote:
Hello, all ...
Since updating to iPhone OS 2.2, my app stops playing audio when the iPhone display goes to sleep. Pressing the top button on the device awakens audio as well as the iPhone. My app did not exhibit this behavior in OS 2.1. How can I enable my app to keep playing even when the display goes to sleep? I'm aware of the sleep timeout, but I don't want to disable the display from sleeping -- I just want to make my app keep playing music when the display goes to sleep.
Regards,
John
Falling You - exploring the beauty of voice and sound
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden