Skip to content

🎥 Make videos programmatically with React

set 4.0.111 as version

Jonny Burgerd874ccf74953
diff --git a/packages/core/src/use-buffer-state.ts b/packages/core/src/use-buffer-state.ts
index c4df877884..bfd995d0e7 100644
--- a/packages/core/src/use-buffer-state.ts
+++ b/packages/core/src/use-buffer-state.ts
@@ -8,12 +8,12 @@ export const useBufferState = () => {
if (!canUseRemotionHooks) {
if (typeof window !== 'undefined' && window.remotion_isPlayer) {
throw new Error(
- `useCurrentFrame can only be called inside a component that was passed to <Player>. See: https://www.remotion.dev/docs/player/examples`,
+ `useBufferState() can only be called inside a component that was passed to <Player>. See: https://www.remotion.dev/docs/player/examples`,
);
}
throw new Error(
- `useCurrentFrame() can only be called inside a component that was registered as a composition. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions`,
+ `useBufferState() can only be called inside a component that was registered as a composition. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions`,
);
}
diff --git a/packages/docs/docs/audio.md b/packages/docs/docs/audio.md
index b29a188db2..3d2be28e64 100644
--- a/packages/docs/docs/audio.md
+++ b/packages/docs/docs/audio.md
@@ -148,7 +148,7 @@ In the [Remotion Studio](/docs/terminology/studio) or in the [Remotion Player](/
Make values for [`volume`](#volume) greater than `1` result in amplification during renders.
In the Remotion Studio, the volume will be limited to `1`, since the browser cannot amplify audio.
-### `pauseWhenBuffering`<AvailableFrom v="4.0.100"/>
+### `pauseWhenBuffering`<AvailableFrom v="4.1.111"/>
If set to `true` and the video is loading, the Player will enter into the [native buffering state](/docs/player/buffer-state). The default is `false`, but will become `true` in Remotion 5.0.
diff --git a/packages/docs/docs/buffer-state.md b/packages/docs/docs/buffer-state.md
index ba104e9f59..fc3943f74e 100644
--- a/packages/docs/docs/buffer-state.md
+++ b/packages/docs/docs/buffer-state.md
@@ -4,10 +4,8 @@ title: Display a buffer state
crumb: Building video apps
---
-// TODO
-
:::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.
+Since Remotion v4.1.111, 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.
diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.md
index a6b4536067..63e93f352e 100644
--- a/packages/docs/docs/config.md
+++ b/packages/docs/docs/config.md
@@ -757,7 +757,7 @@ Config.setBeepOnFinish(true);
The [command line flag](/docs/cli/studio#--beep-on-finish) `--beep-on-finish` will take precedence over this option.
-## `setBufferStateDelayInMilliseconds()`<AvailableFrom v="4.0.XXXTODO" />
+## `setBufferStateDelayInMilliseconds()`<AvailableFrom v="4.1.111" />
Set the amount of milliseconds after which the Player in the Studio will display a buffering UI after the Player has entered a buffer state. Default `300`.
diff --git a/packages/docs/docs/offthreadvideo.md b/packages/docs/docs/offthreadvideo.md
index db3df12ee2..1962c1313d 100644
--- a/packages/docs/docs/offthreadvideo.md
+++ b/packages/docs/docs/offthreadvideo.md
@@ -195,7 +195,7 @@ Accepts a number between `0.01` and `2`, where `1` represents the original pitch
A `toneFrequency` of 0.5 would lower the pitch by half, and a `toneFrequency` of `1.5` would increase the pitch by 50%.
-### `pauseWhenBuffering`<AvailableFrom v="4.0.100"/>
+### `pauseWhenBuffering`<AvailableFrom v="4.1.111"/>
If set to `true` and the video is loading, the Player will enter into the [native buffering state](/docs/player/buffer-state). The default is `false`, but will become `true` in Remotion 5.0.
diff --git a/packages/docs/docs/player/api.md b/packages/docs/docs/player/api.md
index 18bbb3405b..d4b97aec56 100644
--- a/packages/docs/docs/player/api.md
+++ b/packages/docs/docs/player/api.md
@@ -839,13 +839,13 @@ ref.current?.addEventListener("error", (e) => {
});
```
-### `waiting`<AvailableFrom v="4.1.0TODO" />
+### `waiting`<AvailableFrom v="4.1.111" />
Fires when the Player has entered into the [native buffering state](/docs/player/buffering).
Read here [how to best implement state management](/docs/player/buffer-state#state-management).
-### `resume`<AvailableFrom v="4.1.0TODO" />
+### `resume`<AvailableFrom v="4.1.111" />
Fires when the Player has exited the [native buffering state](/docs/player/buffering).
diff --git a/packages/docs/docs/player/buffer-state.mdx b/packages/docs/docs/player/buffer-state.mdx
index c1cc0bc9e2..bdf35bf58f 100644
--- a/packages/docs/docs/player/buffer-state.mdx
+++ b/packages/docs/docs/player/buffer-state.mdx
@@ -5,7 +5,7 @@ id: buffer-state
crumb: Best practices
---
-_available from 4.1 // FIXME_
+_available from 4.1.111_
Just like regular video players, it is possible that the content being displayed in the Player is not yet fully loaded.
In this case, the best practice is to briefly pause the video, let the content load and then resume playback.