Giter Club home page Giter Club logo

Comments (8)

Kenton419 avatar Kenton419 commented on June 16, 2024 1

Thanks so much for the quick response. I appreciate it and look forward to the updates.

from youtube-background.

insad avatar insad commented on June 16, 2024 1

in "onVideoPlayerReady":

"$(e.target.a)" must become "$(e.target.f)"

from youtube-background.

stamat avatar stamat commented on June 16, 2024

I'll check it out right away! Thanks for reporting this man! <3

from youtube-background.

stamat avatar stamat commented on June 16, 2024

Alright @Kenton419 something definitely changed, since it's not working on any of my production sites, which is really annoying... Probably the YT API clears all of the injected css via the script... I can probably override this by waiting for the video to initialise in the background and then assign the css properties and then do that fade in effect which is pending...

from youtube-background.

stamat avatar stamat commented on June 16, 2024

@Kenton419 the issue was that the YT API changed the names of the variables within their event object, making the script fail to find the actual target and assign the css properties to it. I've fixed it, I'll do some cleanup and ping you when I post a new version of the code!

from youtube-background.

stamat avatar stamat commented on June 16, 2024

@insad in order to ensure the longevity of this solution ( if they try change this again ) I added a for in loop to find the iFrame DOM Object, I'm currently objectifying this code so it will be easier to manage in future!

from youtube-background.

stamat avatar stamat commented on June 16, 2024

@Kenton419, for the time being use @insad 's suggestion - if you are in a hurry. I got a bit tangled up in refactoring this bunch of code so I'll finish it in approx 12 - 16 hours!

from youtube-background.

stamat avatar stamat commented on June 16, 2024

@Kenton419 sorry for the wait man! Had to take care of my grandmother, corona...
Anyway, the issue has been solved and the code completely refactored in the latest version.
Check it out!

I'm always happy to fix and improve! Thanks for submitting this!

from youtube-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.