Skip to content

🎥 Make videos programmatically with React

docs: Include Series in premounting component list

Jonny Burger29911540d12e
diff --git a/packages/docs/docs/player/premounting.mdx b/packages/docs/docs/player/premounting.mdx
index b734345832..462d3b40f1 100644
--- a/packages/docs/docs/player/premounting.mdx
+++ b/packages/docs/docs/player/premounting.mdx
@@ -31,9 +31,12 @@ Pass [`premountFor`](/docs/img#premountfor) directly to the component you want t
- [`<Img>`](/docs/img), [`<AnimatedImage>`](/docs/animatedimage), [`<Gif>`](/docs/gif/gif)
- [`<Lottie>`](/docs/lottie/lottie), [`<RemotionRiveCanvas>`](/docs/rive/remotionrivecanvas)
- [`<AbsoluteFill>`](/docs/absolute-fill), [`Interactive` HTML and SVG components](/docs/interactive), [`<HtmlInCanvas>`](/docs/remotion/html-in-canvas), [`<Solid>`](/docs/solid)
+- [`<Series>`](/docs/series), [`<Series.Sequence>`](/docs/series#premountfor), [`<TransitionSeries>`](/docs/transitions/transitionseries), [`<TransitionSeries.Sequence>`](/docs/transitions/transitionseries)
- [Shape components](/docs/shapes), [`<MacOSCursor>`](/docs/mac-cursors/mac-os-cursor), [rough-notation components](/docs/rough-notation/api)
- [`<ThreeCanvas>`](/docs/three-canvas), [`<ThreeWebGPUCanvas>`](/docs/three-webgpu-canvas)
+Containers with a `layout` prop must use `layout="absolute-fill"` for premounting, including default premounting.
+
For example, this image mounts at frame 30 and becomes visible at frame 60:
```tsx twoslash title="PremountedImage.tsx"
@@ -113,31 +116,6 @@ Seconds are converted to frames using the composition FPS and rounded to the nea
An explicit `premountFor` overrides the default. Pass `premountFor={0}` to disable premounting for a component.
-## With `<Series>` and `<TransitionSeries>`
-
-[`<Series.Sequence>`](/docs/series#premountfor) and [`<TransitionSeries.Sequence>`](/docs/transitions/transitionseries) accept `premountFor` to prepare a scene before its turn in the series. When omitted, the [default premount duration](#default-premount-duration) applies.
-
-```tsx twoslash title="PremountedSeries.tsx"
-import {AbsoluteFill, Img, Series, staticFile} from 'remotion';
-
-export const PremountedSeries: React.FC = () => {
- return (
- <Series>
- <Series.Sequence durationInFrames={60}>
- <AbsoluteFill>First scene</AbsoluteFill>
- </Series.Sequence>
- <Series.Sequence durationInFrames={90} premountFor={30}>
- <Img src={staticFile('logo.png')} />
- </Series.Sequence>
- </Series>
- );
-};
-```
-
-You can also premount an entire [`<Series>`](/docs/series) or [`<TransitionSeries>`](/docs/transitions/transitionseries). For `<Series>`, pass `layout="absolute-fill"` along with `premountFor`, since its default `layout="none"` does not support premounting. `<TransitionSeries>` uses `layout="absolute-fill"` by default.
-
-Containers with `layout="none"` do not use the default premount duration either.
-
## Usage together with the buffer state
Loading an invisible component should not pause playback. Components that support the [buffer state](/docs/player/buffer-state), such as [`<Video>`](/docs/media/video), [`<Audio>`](/docs/media/audio), and [`<Img>`](/docs/img#pausewhenloading), do not trigger it while premounted. This also applies to [`<Html5Audio>`](/docs/html5-audio#pausewhenbuffering), [`<Html5Video>`](/docs/html5-video#pausewhenbuffering), and [`<OffthreadVideo>`](/docs/offthreadvideo#pausewhenbuffering) inside a premounted scene.