Skip to content

🎥 Make videos programmatically with React

another one

JonnyBurgerbdd71618f5ed
diff --git a/packages/docs/docs/client-side-rendering/migration.mdx b/packages/docs/docs/client-side-rendering/migration.mdx
new file mode 100644
index 0000000000..7536744b51
--- /dev/null
+++ b/packages/docs/docs/client-side-rendering/migration.mdx
@@ -0,0 +1,31 @@
+---
+sidebar_label: Migration
+title: Migrating code to client-side rendering
+crumb: 'FAQ'
+---
+
+:::warning
+This feature is not available yet, but we are already writing docs.
+[Track progress on GitHub](https://github.com/remotion-dev/remotion/issues/5913) and discuss in the [`#web-renderer`](https://remotion.dev/discord) channel on Discord.
+:::
+
+We try to support as much code that was written for [server-side rendering](/docs/ssr) as possible.
+Some code is unsupported or may need changing.
+
+You may start future-proofing your code now if you are interested in using [client-side rendering](/docs/client-side-rendering) in the future.
+
+## Use `useRemotionEnvironment()` instead of `getRemotionEnvironment()`
+
+[`getRemotionEnvironment()`](/docs/get-remotion-environment) is a global API that may conflict with other Remotion instances in your project, such as when you have a [`<Player>`](/docs/player) mounted on the same page.
+
+Start using the [`useRemotionEnvironment()`](/docs/use-remotion-environment) hook instead.
+
+## Use `useDelayRender()` for of `delayRender()`, `continueRender()` and `cancelRender()`
+
+If you have multiple renders at the same time or another instance of Remotion on the same page, such as a `<Player>`, the [`delayRender()`](/docs/delay-render), [`continueRender()`](/docs/continue-render) and [`cancelRender()`](/docs/cancel-render) functions may conflict.
+
+Start using the [`useDelayRender()`](/docs/use-delay-render) hook instead, which scopes these functions to a composition.
+
+## Ensure assets are available via CORS
+
+Unlike server-side rendering, where video and audio assets are downloaded in a Node.js process, and where images can be captured even if they are [tainted](https://www.unblu.com/en/docs/latest/knowledge-base/configuration/collaboration-layers/embedded-co-browsing/html-tainted-canvas-limitation.html), in client-side rendering, CORS is enforced and images and canvas may not be tainted.
diff --git a/packages/docs/docs/miscellaneous/render-in-browser.mdx b/packages/docs/docs/miscellaneous/render-in-browser.mdx
index 12b9f6b7b1..b7e0dba142 100644
--- a/packages/docs/docs/miscellaneous/render-in-browser.mdx
+++ b/packages/docs/docs/miscellaneous/render-in-browser.mdx
@@ -15,14 +15,6 @@ See [Client-side rendering](/docs/client-side-rendering) for an overview of the
We hope to launch this mode in late 2025.
-## Future-proofing your code
-
-To prepare yourself for client-side rendering, update your code:
-
-- to use the [`useRemotionEnvironment()`](/docs/use-remotion-environment) hook instead of `getRemotionEnvironment()`
-- to use the [`useDelayRender()`](/docs/use-delay-render) hook instead of `delayRender()`, `continueRender()` and `cancelRender()`
-- Ensure your assets are available via CORS, so the client-side can access them
-
## See also
- [`<Player>`](/player): Displaying a Remotion video in the browser without encoding it
diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.ts
index 2af50c4710..1fc64d5be4 100644
--- a/packages/docs/sidebars.ts
+++ b/packages/docs/sidebars.ts
@@ -949,6 +949,7 @@ const sidebars: SidebarsConfig = {
'client-side-rendering/index',
'client-side-rendering/how-it-works',
'client-side-rendering/limitations',
+ 'client-side-rendering/migration',
],
},
{
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index 3ea8006bde..166390262e 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -683,6 +683,15 @@ export const articles = [
noAi: false,
slug: 'client-side-rendering/limitations',
},
+ {
+ id: 'client-side-rendering/migration',
+ title: 'Migrating code to client-side rendering',
+ relativePath: 'docs/client-side-rendering/migration.mdx',
+ compId: 'articles-docs-client-side-rendering-migration',
+ crumb: 'FAQ',
+ noAi: false,
+ slug: 'client-side-rendering/migration',
+ },
{
id: 'clipper',
title: '<Experimental.Clipper>',