Giter Site home page Giter Site logo

Comments (2)

dceddia avatar dceddia commented on June 11, 2024 1

I'm only just starting to look at this library myself, but it seems that it supports adding new videos dynamically during playback. I took their CompositingNode demo and modified it to add a video node during playback: https://codesandbox.io/s/videocontext-adding-video-to-end-dynamically-jo3qs

(If you see an error, click CodeSandbox's refresh icon. The demos seem to error initially and I'm not sure why)

The main change I made was to move the addition of the videoNode2 into a setTimeout that triggers 8 seconds after playback begins, and also to use the startAt and stopAt functions to set its time instead of start and stop.

I think for your use case you'd need to manually keep track of the "stop" point of the last video, so that you can add new videos after it, but it does seem to work.

from videocontext.

lucasconstantino avatar lucasconstantino commented on June 11, 2024

@dceddia thanks so much for your reply. Question answered!

from videocontext.

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.