🎥 Make videos programmatically with React
docs
JonnyBurgere7e7b973eb9c
diff --git a/packages/docs/docs/get-remotion-environment.mdx b/packages/docs/docs/get-remotion-environment.mdxindex 212296ac8e..9321af3172 100644--- a/packages/docs/docs/get-remotion-environment.mdx+++ b/packages/docs/docs/get-remotion-environment.mdx@@ -18,6 +18,7 @@ It returns an object with the following properties:- `isRendering`: Whether the function got called in a render. Also available in the [`calculateMetadata()`](/docs/calculate-metadata) function.- `isPlayer`: Whether a [`<Player>`](/docs/player) is mounted on the current page.- `isReadOnlyStudio`: Whether in a [statically deployed studio](https://www.remotion.dev/docs/studio/deploy-static), where the [`@remotion/studio`](/docs/studio/api) APIs cannot be used (_available from v4.0.238_)+- `isClientSideRendering`: Whether the function [got called in a client-side rendering context](/docs/miscellaneous/render-in-browser) (_available from v4.0.344_)This can be useful if you want components or functions to behave differently depending on the environment.diff --git a/packages/docs/docs/miscellaneous/render-in-browser.mdx b/packages/docs/docs/miscellaneous/render-in-browser.mdxindex 6bb9bb14d2..598e71b4be 100644--- a/packages/docs/docs/miscellaneous/render-in-browser.mdx+++ b/packages/docs/docs/miscellaneous/render-in-browser.mdx@@ -24,6 +24,14 @@ This keeps the possibility to have event handlers like `onPointerDown` attachedThe encoding of the video will work with [Mediabunny](/docs/mediabunny).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()`+- 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 itdiff --git a/packages/docs/docs/use-remotion-environment.mdx b/packages/docs/docs/use-remotion-environment.mdxindex 2420146c46..53e363ca7d 100644--- a/packages/docs/docs/use-remotion-environment.mdx+++ b/packages/docs/docs/use-remotion-environment.mdx@@ -15,6 +15,7 @@ It returns an object with the following properties:- `isRendering`: Whether the hook got called in a render.- `isPlayer`: Whether a [`<Player>`](/docs/player) is mounted on the current page.- `isReadOnlyStudio`: Whether in a [statically deployed studio](https://www.remotion.dev/docs/studio/deploy-static), where the [`@remotion/studio`](/docs/studio/api) APIs cannot be used+- `isClientSideRendering`: Whether the function [got called in a client-side rendering context](/docs/miscellaneous/render-in-browser) (_available from v4.0.344_)This can be useful if you want components to behave differently depending on the environment.