Coder Social home page Coder Social logo

Comments (4)

rocksdanister avatar rocksdanister commented on August 17, 2024

The current duplicate behavior is startup is synced and if pausing is turned off or Display pause rule set to All screen(s) videos should stay synced.

What are you asking for is cloning I think, making it identical (even webpages) but I haven't figured out how to do that yet.

from lively.

Msprg avatar Msprg commented on August 17, 2024

I see, the wallpaper however often starts not in sync on my screens whether it's on boot or when switching between video wallpapers. It however might be an issue on my system only.

I have tried

Display pause rule set to All screen(s)

And it seems to me the videos now start much more in sync as well. Due to the observed behavior, I believe there might be something 'stealing focus' for a short period of time when the wallpapers are being launched in mpv on my system, causing ~1sec sync difference between them.

What are you asking for is cloning I think, making it identical (even webpages) but I haven't figured out how to do that yet.

This would be indeed a much more general approach. While I am unfortunately unable to provide concrete suggestions, maybe there's a way to wrap any content (mpv/webpage renderer) into some window frame with duplicated view. Although this is just a pure speculation on my part as I do not have experience dealing with this.

I guess I'll try to solve my particular case by either disabling pausing or always pausing on all screens, as you have suggested. Still, to conserve resources it'd be great to be able to have pause-per-screen rule enabled, while lively would use some mpv controls to make the wallpapers be synced even after being paused for a while. I'm not sure, however, how difficult would this be to implement, so I'll just compromise for now, I think.

Thank you for the lightning-fast response, and all your hard work put into this amazing piece of software~❤️

from lively.

rocksdanister avatar rocksdanister commented on August 17, 2024

I see, the wallpaper however often starts not in sync on my screens whether it's on boot or when switching between video wallpapers. It however might be an issue on my system only.

Are you using latest Lively v2.1? there is code that sync video.

// Synchronizing position and audio
foreach (var item in wallpapers)
{
if (item.Category.IsVideoWallpaper() && !item.Screen.IsPrimary)
{
Logger.Info($"Disabling audio track on screen {item.Screen.DeviceName} (duplicate.)");
item.SetMute(true);
}
item.SetPlaybackPos(0, PlaybackPosType.absolutePercent);
}

from lively.

Msprg avatar Msprg commented on August 17, 2024

I'm not sure if I was on 2.0 or 2.1 before, but there was some update just as I checked, and it seems it's now starting synced as well so I guess that works~!

from lively.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.