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

Feature Request: sync multiple computers screen savers #783

Closed
simneu opened this issue May 21, 2019 · 9 comments
Closed

Feature Request: sync multiple computers screen savers #783

simneu opened this issue May 21, 2019 · 9 comments

Comments

@simneu
Copy link

simneu commented May 21, 2019

Hi,

First of all, thank you for the hard work on Aerial, great piece of software !

I have a pretty particular setup: 2 iMacs (one using the iMac screen + a secondary screen, the other using just the iMac screen). I can't use target display mode on one of the iMac (because target display mode is no longer supported on 5k iMacs) so I'm using Barrier, a fork of Synergy, to use the same mouse and keyboard for the two iMacs.

With barrier, I managed to launch the screensaver on both computers at the same time, but sadly they load each a random video, and I would love to have both synced up.

A possible solution might be to include the current timestamp into how the "random" video is selected.

What do you think ?

@glouel
Copy link
Collaborator

glouel commented May 21, 2019

Hi @simneu

Now that's a pretty particular setup you have... I use the swift library shuffled() right now to shuffle the the list of videos, it can be seeded. I'll see what I can do but I have no setup to test this. You'll have to give me feedback on builds :p

@simneu
Copy link
Author

simneu commented May 21, 2019

I could help testing of course !

Maybe another possible solution would be to be able to enter a "custom seed" (a string) used for the random. And if entered on both computers, you'll have the exact same "random" behaviour on both computers. That might be easier to test too, because not related to time.

Maybe there's cleaner ways to achieve this, that's what I can think for now. 😄

@glouel
Copy link
Collaborator

glouel commented May 21, 2019

I just published beta5 with this : https://github.com/JohnCoates/Aerial/releases/download/v1.4.99beta5/Aerial.saver.zip

You need to explicitly enable "Synchronized mode" in video panel :

Capture d’écran 2019-05-21 à 17 41 05

I use the current number of minutes as a random seed, this should work 99.999% of the time and still give you a different sequence each time you launch Aerial (assuming a minute has elapsed since). Let me know how that goes.

@simneu
Copy link
Author

simneu commented May 21, 2019

Well, it works very nicely ! Thanks a lot, that was fast ! 😄
I still have a little "sync" issue (my main mac is starting the video like one second before the second mac) but that could come from multiple things and shouldn't be related to Aerial at all.

My second mac is older (no SSD), using wifi when first mac is using ethernet, and also has to wait for Barrier to send the "signal" to show the screen saver I guess. A bit of all of that could explain that it's not perfectly sync.

Thanks again, I'll stay available if you want to do more tests, and will report if I find issue using it.

@glouel
Copy link
Collaborator

glouel commented May 21, 2019

Loading the video on a SSD will always start faster than a HDD, yes, not much I can do about that ;)

@glouel glouel added this to the 1.5.0 milestone May 21, 2019
@glouel
Copy link
Collaborator

glouel commented May 22, 2019

@simneu how long would you say the delay is on each screen, from the moment you go into the hot corner to the moment you see an image on each ?

The only hackish fix I could fix of would be to have something like wait for the next secondes%5==0 where secondes is at least 2 sec away, that could lead to a 5/7 sec starting delay (maybe 4 instead of 5 would work but still) with a black screen though. That still may be better than unsynced.

As of right now there's nothing in Aerial to do some sort of delayed start, but I could add something like that to the mayyybe list ;)

@simneu
Copy link
Author

simneu commented May 22, 2019

@glouel The delay seems to depend on the video which is chosen. I've managed to have a synced launch on the "Africa Night", but having around 1sec of delay on "Approaching Burj Khalifa". Maybe it depends from the size of the video ?

I don't think this hackish fix is needed (because with this fix, that means the screen saver could start only when you're already away from the computers, which is sad).

@glouel
Copy link
Collaborator

glouel commented May 22, 2019

@glouel The delay seems to depend on the video which is chosen. I've managed to have a synced launch on the "Africa Night", but having around 1sec of delay on "Approaching Burj Khalifa". Maybe it depends from the size of the video ?

Yes it does, some files are much larger than others, there's an issue about this here : #780 (comment)

But that wasn't my question. My question was, time from hot corner to video on each screen ?

I don't think this hackish fix is needed (because with this fix, that means the screen saver could start only when you're already away from the computers, which is sad).

I don't get what you mean here ? Maybe I wasn't clear about what I was proposing, I only proposed a slight synchronized delay when launching the screensaver on each machine, of a few seconds.

@glouel
Copy link
Collaborator

glouel commented May 31, 2019

Closed as implemented with the release of 1.5.0

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

No branches or pull requests

2 participants