• 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: Playing to a device when users switch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Playing to a device when users switch (From: Tim Hewett <email@hidden>)
 >Re: Playing to a device when users switch (From: Aran Mulholland <email@hidden>)

  • Prev by Date: Fwd: Report level in AudioUnit to parameter
  • Next by Date: Re: Buffer overrun management with TPCircularBuffer.. best way to do so?
  • Previous by thread: Re: Playing to a device when users switch
  • Next by thread: Security exceptions while accessing USB HID devices from AudioServer Plugins
  • Index(es):
    • Date
    • Thread