🎥 Make videos programmatically with React
fix: buffer state came in 4.0.111
Jonny Burgere98a42b6a86b
diff --git a/packages/docs/docs/audio.md b/packages/docs/docs/audio.mdindex bd331cf5c8..ff9a60d7df 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.1.111"/>+### `pauseWhenBuffering`<AvailableFrom v="4.0.111"/>If set to `true` and the audio is buffering, 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.mdindex fc3943f74e..708a0612ab 100644--- a/packages/docs/docs/buffer-state.md+++ b/packages/docs/docs/buffer-state.md@@ -5,7 +5,7 @@ crumb: Building video apps---:::warning-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.+Since Remotion v4.0.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.mdindex 7a2a3c8a92..3f97ae2ab0 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.1.111" />+## `setBufferStateDelayInMilliseconds()`<AvailableFrom v="4.0.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.mdindex 49958989fa..d9364cb484 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 pitchA `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.1.111"/>+### `pauseWhenBuffering`<AvailableFrom v="4.0.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.mdindex 9666a9aac2..53de2744f1 100644--- a/packages/docs/docs/player/api.md+++ b/packages/docs/docs/player/api.md@@ -837,13 +837,13 @@ ref.current?.addEventListener("error", (e) => {});```-### `waiting`<AvailableFrom v="4.1.111" />+### `waiting`<AvailableFrom v="4.0.111" />Fires when the Player has entered into the [native buffering state](/docs/player/buffer-state).Read here [how to best implement state management](/docs/player/buffer-state#state-management).-### `resume`<AvailableFrom v="4.1.111" />+### `resume`<AvailableFrom v="4.0.111" />Fires when the Player has exited the [native buffering state](/docs/player/buffer-state).diff --git a/packages/docs/docs/player/buffer-state.mdx b/packages/docs/docs/player/buffer-state.mdxindex b94ef5f360..0987527914 100644--- a/packages/docs/docs/player/buffer-state.mdx+++ b/packages/docs/docs/player/buffer-state.mdx@@ -6,7 +6,7 @@ id: buffer-statecrumb: Best practices----_available from 4.1.111_+_available from 4.0.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.