Re: Playing to a device when users switch
Re: Playing to a device when users switch
- Subject: Re: Playing to a device when users switch
- From: Tim Hewett <email@hidden>
- Date: Mon, 12 May 2014 18:08:40 +0100
Thanks for this information. The API I am using is the AudioObjectGetProperty() and AudioObjectSetProperty() one, but there don’t appear to be any related properties for those calls to use.
Further tests have shown that if the audio is set playing with no user logged in then it keeps playing even when a user logs in and also when users switch. It is only when playback is started from within one of the login sessions that audio stops when switching users. When that is reproduced, if both users are logged out then audio keeps playing and then if both users are logged back in again and switched between, it still keeps playing. I’m not quite sure which is the intended behaviour but it doesn’t appear to be consistent at present.
Maybe it is related to detection of terminal session or process group...
On 12 May 2014, at 03:02, Aran Mulholland <email@hidden> wrote:
> Have you done this:
>
> https://developer.apple.com/library/ios/qa/qa1668/_index.html
>
>
> On Mon, May 12, 2014 at 7:34 AM, Tim Hewett <email@hidden> wrote:
> I have an app which needs to keep playing to a device even when switching between users with fast user switching. At present it keeps playing in that it doesn’t pause but the device goes silent regardless of the volume and mute settings, the only audio the device will play is that of the new user.
>
> Is there a property which can be set on the device or globally to allow the app to keep playing audio regardless of the user logged in? The kAudioHardwarePropertyUserSessionIsActiveOrHeadless property has been investigated but is a read-only property rather than a way to allow an app to detach from being associated with a user (i.e. headless).
> _______________________________________________
> 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