• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: New AVAudioSession iOS 6 notifications?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New AVAudioSession iOS 6 notifications?


  • Subject: Re: New AVAudioSession iOS 6 notifications?
  • From: Douglas Scott <email@hidden>
  • Date: Thu, 21 Feb 2013 13:27:06 -0800

#import <AVFoundation/AVAudioSession.h> ?

On Feb 21, 2013, at 12:56 PM, Dave Fernandes <email@hidden> wrote:

> Yes, these notifications don't seem to exist in the header files. I filed a documentation bug on this. WWDC12 Session 505 goes over how to use the notifications. My understanding is that you should handle the following:
> AVAudioSessionInterruptionNotification
> AVAudioSessionMediaServicesWereResetNotification
> AVAudioSessionRouteChangeNotification
>
> For AVAudioSessionInterruptionNotification, you can check the userInfo dictionary for the AVAudioSessionInterruptionTypeKey key to determine whether it is the beginning or end of an interruption.
>
> Also, the docs say that the first two notifications are delivered on the main thread; but no such claim is made for AVAudioSessionRouteChangeNotification in the docs.
>
> Dave
>
> On 2013-02-21, at 2:58 PM, Dean Reyburn <email@hidden> wrote:
>
>> Is anyone using the new notifications as a replacement for AVAudioSessionDelegate callbacks? With success? I can't find any example code which would sure help.
>>
>> For instance AVAudioSessionDidBeginInterruptionNotification & AVAudioSessionDidEndInterruptionNotification and three others.
>>
>> The [AVAudioSessionDelegate setDelegate] method is deprecated in iOS 6. Sigh.
>>
>> Just starting to test these new notifications. Thankfully iOS 6.1 fixed interruption bug which caused resume audio recording failure in iOS 6.0x on iPhone 4.
>>
>> I'd like to keep up-to-date on this stuff, but the delegate callbacks are still working fine in iOS 6. Suggestions?
>>
>> -Dean Reyburn
>>
>> http://www.reyburn.com
>>
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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


 _______________________________________________
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

  • Follow-Ups:
    • Re: New AVAudioSession iOS 6 notifications?
      • From: Dave Fernandes <email@hidden>
    • Re: New AVAudioSession iOS 6 notifications?
      • From: Kyle Sluder <email@hidden>
References: 
 >New AVAudioSession iOS 6 notifications? (From: Dean Reyburn <email@hidden>)
 >Re: New AVAudioSession iOS 6 notifications? (From: Dave Fernandes <email@hidden>)

  • Prev by Date: Re: New AVAudioSession iOS 6 notifications?
  • Next by Date: Re: New AVAudioSession iOS 6 notifications?
  • Previous by thread: Re: New AVAudioSession iOS 6 notifications?
  • Next by thread: Re: New AVAudioSession iOS 6 notifications?
  • Index(es):
    • Date
    • Thread