Skip to content

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

Notifications You must be signed in to change notification settings

mykeels/remotion-microfrontends

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages