🎥 Make videos programmatically with React
new terminology docs
Jonny Burgera1062f2a4b7f
diff --git a/packages/docs/docs/contributing/docs.md b/packages/docs/docs/contributing/docs.mdindex 6ef05cd69b..417eaabf5f 100644--- a/packages/docs/docs/contributing/docs.md+++ b/packages/docs/docs/contributing/docs.md@@ -110,7 +110,7 @@ Use `<ExperimentalBadge />` to mark something as experimental:### Demos-Using `<Demo type="[demo-name]" />` you can render a [Remotion Player](/docs/terminology#remotion-player) and specify props that can be updated.+Using `<Demo type="[demo-name]" />` you can render a [Remotion Player](/docs/terminology/player) and specify props that can be updated.```md<Demo type="rect"/>diff --git a/packages/docs/docs/miscellaneous/video-formats.md b/packages/docs/docs/miscellaneous/video-formats.mdindex 3a8d1fb6f6..2a0d657306 100644--- a/packages/docs/docs/miscellaneous/video-formats.md+++ b/packages/docs/docs/miscellaneous/video-formats.md@@ -10,7 +10,7 @@ Remotion supports a variety of video codecs.**Output formats**: Videos can be rendered to `H.264` (MP4), `H.265`, (HEVC), `VP8` and `VP9` (WebM), `ProRes` as well as GIFs. See the [Encoding guide](/docs/encoding) for more detail.**Codecs supported for [`<Video>`](/docs/video):** Remotion uses the default `<video>` tag for playback and therefore inherits codec support from the browser.-During rendering this means that the Chrome codecs are supported. In the [Remotion Studio](/docs/terminology#remotion-studio) and in the [Player](/docs/terminology#remotion-player), the codec support from the browser in which the webpage is hosted in applies.+During rendering this means that the Chrome codecs are supported. In the [Remotion Studio](/docs/terminology#remotion-studio) and in the [Player](/docs/terminology/player), the codec support from the browser in which the webpage is hosted in applies.Codec support varies between browsers and changes from time to time. Refer to this [MDN article](https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Video_codecs) for browser support.:::notediff --git a/packages/docs/docs/player/api.md b/packages/docs/docs/player/api.mdindex f6527c90df..4b881d8c5f 100644--- a/packages/docs/docs/player/api.md+++ b/packages/docs/docs/player/api.md@@ -5,7 +5,7 @@ slug: /player/playercrumb: "@remotion/player"----A component which can be rendered in a regular React App (for example: [Create React App](https://create-react-app.dev/), [Next.JS](https://nextjs.org)) to display a Remotion video.+A component which can be rendered in a regular React App (for example: [Next.JS](https://nextjs.org), [Vite.js](https://vitejs.dev), [Create React App](https://create-react-app.dev/)) to display a Remotion video.```tsx twoslash title="MyApp.tsx"// @allowUmdGlobalAccessdiff --git a/packages/docs/docs/player/preloading.md b/packages/docs/docs/player/preloading.mdindex 624497f1c8..d48d1f1d70 100644--- a/packages/docs/docs/player/preloading.md+++ b/packages/docs/docs/player/preloading.md@@ -5,7 +5,7 @@ title: "Preloading assets"crumb: "@remotion/player"----By default, assets such as videos, audio, or images will only be loaded as they enter the video. When using the [Remotion Player](/docs/terminology#remotion-player), you may want to preload those assets beforehand to make them play immediately once they enter the video.+By default, assets such as videos, audio, or images will only be loaded as they enter the video. When using the [Remotion Player](/docs/terminology/player), you may want to preload those assets beforehand to make them play immediately once they enter the video.Two ways of preloading are supported:diff --git a/packages/docs/docs/player/thumbnail.md b/packages/docs/docs/player/thumbnail.mdindex f96a5f2438..5e2fb69fd8 100644--- a/packages/docs/docs/player/thumbnail.md+++ b/packages/docs/docs/player/thumbnail.md@@ -7,7 +7,7 @@ crumb: "@remotion/player"_available from v3.2.41_-A component which can be rendered in a regular React App (for example: [Create React App](https://create-react-app.dev/), [Next.JS](https://nextjs.org)) to display a single frame of a video.+A component which can be rendered in a regular React App (for example: for example: [Next.JS](https://nextjs.org), [Vite.js](https://vitejs.dev), [Create React App](https://create-react-app.dev/)) to display a single frame of a video.```tsx twoslash title="MyApp.tsx"// @allowUmdGlobalAccessdiff --git a/packages/docs/docs/terminology.md b/packages/docs/docs/terminology.mdindex fda5c85a09..ef4b47ba87 100644--- a/packages/docs/docs/terminology.md+++ b/packages/docs/docs/terminology.md@@ -10,7 +10,7 @@ Here we try to explain the meaning of some terms that are used often in the docuA composition is the definition of a renderable asset. It consists of a React component, width, height, FPS and a duration. It can be registered in the [Remotion Studio](#remotion-studio) by rendering a [`<Composition>`](/docs/composition) (to render video or audio render target) or a [`<Still>`](/docs/still).-In the [Remotion Player](#remotion-player), you don't use the `<Composition>` component, rather you pass the component and metadata directly to the [`<Player>`](/docs/player).+In the [Remotion Player](/docs/terminology/player), you don't use the `<Composition>` component, rather you pass the component and metadata directly to the [`<Player>`](/docs/player).## Sequence@@ -59,15 +59,15 @@ In the [Remotion Player](#remotion-player), there is no concept of an entry poin## Remotion Studio-The Remotion Studio is the editor that opens that when you run [`npx remotion studio`](/docs/cli/studio) or `npx remotion preview`. It allows fast editing and playback of [compositions](#composition). It is included in the `@remotion/cli` package. It is not the same as the [Remotion Player](#remotion-player).+[Remotion Studio](/docs/terminology/studio)## Remotion Preview-The former name of the [Remotion Studio](#remotion-studio), renamed in v4.0. Since the Preview gained more capabilities than just previewing, the name was not fitting anymore.+[Remotion Preview](/docs/terminology/studio#remotion-preview)## Remotion Player-The Remotion Player is a React component [`<Player>`](/docs/player) that can be embedded into a React app. It can be used by installing the `@remotion/player` package into a React app (for example: Create React App, Next.JS, Remix). It is not the same as the [Remotion Studio](#remotion-studio).+[Remotion Player](/docs/terminology/player)## Concurrencydiff --git a/packages/docs/docs/terminology/player.md b/packages/docs/docs/terminology/player.mdnew file mode 100644index 0000000000..a8b43c4bce--- /dev/null+++ b/packages/docs/docs/terminology/player.md@@ -0,0 +1,13 @@+---+title: Remotion Player+crumb: "Terminology"+---++The Remotion Player is the React component [`<Player>`](/docs/player) that can be embedded into a React app.+It can be used by installing the [`@remotion/player`](https://npmjs.org/packages/@remotion/player) package into a React app (for example: Create React App, Next.JS, Remix, Vite).+It is not the same as the [Remotion Studio](/docs/terminology/studio).++## See++- [Player API](/docs/player/player)+- [Documentation](/docs/player/)diff --git a/packages/docs/docs/terminology/studio.md b/packages/docs/docs/terminology/studio.mdnew file mode 100644index 0000000000..7807b1ef73--- /dev/null+++ b/packages/docs/docs/terminology/studio.md@@ -0,0 +1,22 @@+---+title: Remotion Studio+crumb: "Terminology"+---++The [Remotion Studio](/docs/studio) is the editor that opens that when you run [`npx remotion studio`](/docs/cli/studio).+It allows fast editing and playback of [compositions](/docs/terminology/compositions).+It is included in the [`@remotion/cli`](https://npmjs.org/packages/@remotion/cli) package.+It is not the same as the [Remotion Player](/docs/player).++You can [deploy the Remotion Studio](/docs/deploy-studio) to render on a VPS.+Since v4.0.93, the Studio is also embedded in every [Remotion Bundle](/docs/terminology/bundle), albeit it does not support rendering.++## Remotion Preview++The former name of the Remotion Studio, renamed in v4.0.0.+Since the Preview gained more capabilities than just previewing, the name was not fitting anymore.++## See++- [Remotion Studio](/docs/studio)+- [Deploy the Remotion Studio](/docs/deploy-studio)diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 7d8d6c2db2..5a516c7a06 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -150,6 +150,7 @@ module.exports = {type: "doc",id: "player/installation",},+label: "@remotion/player",items: ["player/api", "player/thumbnail"],},@@ -756,7 +757,15 @@ module.exports = {href: "/docs/api",label: "API Reference",},- "terminology",+ {+ type: "category",+ label: "Terminology",+ link: {+ type: "doc",+ id: "terminology",+ },+ items: ["terminology/player", "terminology/studio"],+ },"resources",{type: "category",diff --git a/packages/player/src/Thumbnail.tsx b/packages/player/src/Thumbnail.tsxindex f78127ee57..4a8f041976 100644--- a/packages/player/src/Thumbnail.tsx+++ b/packages/player/src/Thumbnail.tsx@@ -134,7 +134,7 @@ const forward = forwardRef as <T, P = {}>() => (props: P & React.RefAttributes<T>) => React.ReactElement | null;/**- * @description A component which can be rendered in a regular React App (for example: Create React App, Next.js) to display a single frame of a video.+ * @description A component which can be rendered in a regular React App (for example: Next.js, Vite) to display a single frame of a video.* @see [Documentation](https://www.remotion.dev/docs/player/thumbnail)*/