Coder Social home page Coder Social logo

musafiroon / remotion-microfrontends Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mykeels/remotion-microfrontends

0.0 0.0 0.0 132 KB

An experiment to see how microfrontends can enable a remotion composition to have its component loaded over a URL

JavaScript 0.99% TypeScript 98.43% CSS 0.59%

remotion-microfrontends's Introduction

Remotion Microfrontends

An experiment, to investigate the feasibility of loading remotion compositions over a URL.

Background

There are two projects, my-chassis and my-video.

my-chassis is the root project, which loads compositions defined in my-video

Note

  • CORS may prevent assets of one project from being loaded in the browser when running the other project, so I use Allow CORS, a chrome extension to disable CORS so I can keep experimenting.
  • Remotion keeps complaining about there being multiple versions of itself running, even though I have set it up as a shared module in webpack's module-federation. I have gotten around this by setting window.remotion_imported = false, and this can be discussed later.
  • Crucial components for allowing use of useCurrentFrame() and useVideoConfig() in remote compositions are not exposed in remotion's core, and a forked branch has been created for this.
  • Remotion components such as Sequence, Series, Freeze and more, have not been tested, but can be in further investigations if this works.

Goals

A microfrontend component should:

  1. Continue to work as expected with hooks such as:

    • useVideoConfig()
    • useCurrentFrame()
  2. Use remotion's delayRender and continueRender when loading

remotion-microfrontends's People

Contributors

mykeels avatar

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.