Skip to content

🎥 Make videos programmatically with React

replace docs page

Jonny Burgerb82243451496
diff --git a/packages/docs/docs/buffer-state.md b/packages/docs/docs/buffer-state.md
index 21ddd22a51..172f470c2a 100644
--- a/packages/docs/docs/buffer-state.md
+++ b/packages/docs/docs/buffer-state.md
@@ -4,6 +4,10 @@ title: Display a buffer state
crumb: Building video apps
---
+:::warning
+Since Remotion XXX, Remotion has a [native buffer state](/docs/player/buffer-state). The technique described on this page should only be used for older versions of Remotion.
+:::
+
In your [`<Player>`](/docs/player), you might have videos and other assets that might take some time to load after they enter the scene.
You can [preload those assets](/docs/player/preloading), but sometimes browser policies prevent preloading and [a brief flash is possible](/docs/troubleshooting/player-flicker) while the browser needs to decode the video before playing.
@@ -81,7 +85,7 @@ export const BufferManager: React.FC<{
bufferState.current[id] = false;
sendEvents();
},
- [sendEvents]
+ [sendEvents],
);
const needsToBuffer = useCallback(
@@ -89,7 +93,7 @@ export const BufferManager: React.FC<{
bufferState.current[id] = true;
sendEvents();
},
- [sendEvents]
+ [sendEvents],
);
const bufferEvents = useMemo(() => {
@@ -153,7 +157,7 @@ export const BufferManager: React.FC<{
bufferState.current[id] = false;
sendEvents();
},
- [sendEvents]
+ [sendEvents],
);
const needsToBuffer = useCallback(
@@ -161,7 +165,7 @@ export const BufferManager: React.FC<{
bufferState.current[id] = true;
sendEvents();
},
- [sendEvents]
+ [sendEvents],
);
const bufferEvents = useMemo(() => {
@@ -291,7 +295,7 @@ export const BufferManager: React.FC<{
bufferState.current[id] = false;
sendEvents();
},
- [sendEvents]
+ [sendEvents],
);
const needsToBuffer = useCallback(
@@ -299,7 +303,7 @@ export const BufferManager: React.FC<{
bufferState.current[id] = true;
sendEvents();
},
- [sendEvents]
+ [sendEvents],
);
const bufferEvents = useMemo(() => {
diff --git a/packages/docs/docs/troubleshooting/video-flicker.md b/packages/docs/docs/troubleshooting/video-flicker.md
index 6042ddf97c..59c7c427fa 100644
--- a/packages/docs/docs/troubleshooting/video-flicker.md
+++ b/packages/docs/docs/troubleshooting/video-flicker.md
@@ -37,7 +37,7 @@ This effect is only happening in the Remotion Studio and the Remotion Player, an
<strong><Step>2</Step>Option 2: Pause the <code>{"<Player/>"}</code> when media is buffering</strong><br/>
-You may want to pause the `<Player>` temporarily to allow loading of the assets and resume once the assets are ready for playback. [See here](/docs/buffer-state) for how to implement this.
+You may want to pause the `<Player>` temporarily to allow loading of the assets and resume once the assets are ready for playback. [See here](/docs/player/buffer-state) for how to implement this.
<strong><Step>3</Step>Option 3: Preloading to avoid network request</strong><br/>
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index dd44d8dc5a..a224c0490f 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -687,7 +687,6 @@ module.exports = {
},
"brownfield",
"video-uploads",
- "buffer-state",
"presigned-urls",
"font-picker",
],