GithubHelp home page GithubHelp logo

Comments (4)

pickonedev avatar pickonedev commented on June 26, 2024

This is the image resolution
1
And this is what I see on my tablet
2

from lovelace-animated-background.

pickonedev avatar pickonedev commented on June 26, 2024

@Villhellm Any advices?

from lovelace-animated-background.

pickonedev avatar pickonedev commented on June 26, 2024

Seems that the rendered resolution for the background is 960 x 600, on a tablet with 1920 x 1200...

from lovelace-animated-background.

pavlov70 avatar pavlov70 commented on June 26, 2024

Sadly, I believe the author passed away a year or so ago from what I saw on the HA forum. I had the same issue with a 1920x1200 tablet and my custom 1920x1200 cinemagraphs. I "fixed" it by modifying animated-background.js around line 450 thusly:
video { width: 1280px; height: 800px; position: absolute; top: 0; left: 0; }

The end result is 1920x200 cinemagraphs that play full-screen with no clipping on my 1920x1200 display. You can play with the resolution but that's what worked for me. I think there's either some bad math in the code or the author was trying to accommodate as many variables as possible. With my above change, anything other than 1920x1200 videos and display will likely result in a video that doesn't fill the entire screen.

Also, in case you run into issues with .webm files, I was able to get those working by hard-coding "type='video/webm'" in the doc_body line around line 433. Again, all of your videos will have to be webm if you make that change.

Hope this helps.

from lovelace-animated-background.

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.