Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple AirPlay Sources Simultaneously #16

Open
dippnerd opened this issue Aug 19, 2016 · 1 comment
Open

Multiple AirPlay Sources Simultaneously #16

dippnerd opened this issue Aug 19, 2016 · 1 comment

Comments

@dippnerd
Copy link

In iTunes you can select to either use a Single AirPlay source or Multiple (which provides multiple choices to play at the same time), but with this plugin I'm finding if I have 3 selected, while their states do show up, choosing to turn on any source (even turning one of those 3 off then back on, or adding a 4th) turns all of them off except the one selected. Is there a way to change this behavior so toggling a single switch only changes that source and leaves the others in their On state?

@SphtKr
Copy link
Owner

SphtKr commented Apr 18, 2017

Hi @dippnerd ,

First, do try the latest version, 0.2.0-alpha1, and see if it improves things for you.

That said, you may see the same behavior. So, what you've asked for is already supported--mostly. I think you are seeing some of the edge cases because you have exactly three devices. The thing is, via the AppleScript layer, if you activate an AirPlay destination and currently only the "Computer" destination is currently active, it assumes you want to switch to the new destination. Similarly, if you have only one external destination enabled and you turn it off, it assumes you want to switch *back * to the "Computer" source. Last, I added logic to the plugin to ensure that if you turned on a single airplay destination when the music is not already playing it will turn off all other destinations but that one--which make sense in many scenarios...but perhaps not yours. Since you have three devices, you're probably very often switching one of these edge scenarios. I think that you'd find if you have:

  • Computer => off
  • External 1 => on
  • External 2 => off

And you switch on External 2 while the music is already playing, you would get--as you'd expect--

  • Computer => off
  • External 1 => on
  • External 2 => on

Anyway, I think I can improve this, but it'll take some work. However, it goes hand in hand with fixing another annoying behavior, which is that turning on devices or the "playing state" makes iTunes mess with the various speaker volumes...for some reason. Seems to be another "feature" of the AppleScript interface to iTunes that I don't totally understand why. Point being, I need to take a snapshot of the state before such a change and then set everything the way I think it should be when

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants