Re: Keeping the background music going during my audio session (iOS)
Re: Keeping the background music going during my audio session (iOS)
- Subject: Re: Keeping the background music going during my audio session (iOS)
- From: Greg Chapman <email@hidden>
- Date: Fri, 04 Feb 2011 09:26:19 -0800
On Feb 3, 2011, at 9:32 PM, Shaun Guth wrote: Thanks, I wrote up a report. If a repro application will help, I can work on factoring that out as well.
That would be very helpful. What's the (8xxxxxx) bug number, so I can make sure it gets to the right place?
Greg
-- Shaun On Thu, Feb 3, 2011 at 9:09 PM, Greg Chapman <email@hidden> wrote:
On Feb 3, 2011, at 9:00 PM, Shaun Guth wrote:
I have background music (pandora or ipod, etc) playing music on my iOS4.0 device, and I would like it to continue playing while my application is running.
My application initializes an audio session using kAudioSessionCategory_PlayAndRecord and kAudioSessionProperty_OverrideCategoryMixWithOthers.
When the application starts, the music continues to play (albeit through the receiver instead of the speakers...). All is well.
However, if I introduce either of the following two properties:
kAudioSessionProperty_OverrideCategoryDefaultToSpeaker
kAudioSessionProperty_OverrideCategoryEnableBluetoothInput
Then the music stops playing as soon as the AudioSessionSetProperty function is called...
Can someone here enlighten me as to what's going on? Is there a best practice for how to always keep the user's music playing, no matter what my audio session might be doing?
This seems like a bug to me. Can you write it up at bugreporter.apple.com, please?
Greg
|
_______________________________________________
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