Re: Interrupted by SIRI before registering interruption callback.
Re: Interrupted by SIRI before registering interruption callback.
- Subject: Re: Interrupted by SIRI before registering interruption callback.
- From: Beinan Li <email@hidden>
- Date: Tue, 28 Oct 2014 15:35:26 -0400
Ok, I got it. If SIRI kicks in during audio session initialization, some
AVAudioSession methods will return an error code 'siri' or
AVAudioSessionErrorCodeSiriIsRecording. If the session is initialized with
success, then I can rely on the interruption notification.
Sorry for the fuss.
Thanks,
Beinan
On Tue, Oct 28, 2014 at 3:28 PM, Beinan Li <email@hidden> wrote:
> Hello CocoaDev:
>
> My app can be interrupted by SIRI before registering an interruption
> notification using AVAudioSession. The route-change notification is not
> registered at the time either.
>
> The app needs to tell the difference between waking up from SIRI's
> interruption
> and something else. So I need an indicator or notification related to
> SIRI.
>
> According to Xcode doc, there is only an error code:
> AVAudioSessionErrorCodeSiriIsRecording related to SIRI in the AudioSession
> support. And I don't even know how to retrieve it.
>
> Is there a way get more info on the SIRI status at runtime?
>
> Thanks,
> Beinan
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden