An experiment, to investigate the feasibility of loading remotion compositions over a URL.
There are two projects, my-chassis and my-video.
my-chassis is the root project, which loads compositions defined in my-video
- 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()
anduseVideoConfig()
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.
A microfrontend component should:
-
Continue to work as expected with hooks such as:
useVideoConfig()
useCurrentFrame()
-
Use remotion's
delayRender
andcontinueRender
when loading