Giter VIP home page Giter VIP logo

Comments (5)

Garbee avatar Garbee commented on August 11, 2024

Not currently. I have PR #28 open which is a basic first-pass at allowing for this to work.

from lite-youtube-embed.

paulirish avatar paulirish commented on August 11, 2024

@guillermo7227 i know it's been a while.. but i'm interested in understanding this usecase a little more..

presumably you have something like a ... social video/music jukebox.. and new videos play often.. so you'd want to change the video id from script?

it seems like you'd also need to know when the current video finished.. right?

is there another usecase i'm not considering?

from lite-youtube-embed.

Garbee avatar Garbee commented on August 11, 2024

There could also be the case of say a video course. A list of available videos would show somewhere on the page. When one that isn't active is selected, it updates the same video embed to change the video stream rather than destroying and creating a new node.

from lite-youtube-embed.

RentecErich avatar RentecErich commented on August 11, 2024

In case anyone needs to know this, as a work around, you can remove the lite-youtube element and create another one in its place with the new videoid to get this to work. I tried updating the attr using setAttribute and then using the attributeChangedCallback in the class, but couldnt get it to work. But the above work around got me where I needed to be.

from lite-youtube-embed.

paulirish avatar paulirish commented on August 11, 2024

Yeah I prefer you just make a new one, like what @RentecErich suggests.

Early on we had a version which reacted to changing attributes, but it gets complicated. For now, this is out of scope for this project.

from lite-youtube-embed.

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.