🎥 Make videos programmatically with React
docs: Recommend premounting over audio and video preloading
JonnyBurgera5813131fe3e
diff --git a/packages/docs/docs/preload/preload-audio.mdx b/packages/docs/docs/preload/preload-audio.mdxindex 6f15573de6..b326087494 100644--- a/packages/docs/docs/preload/preload-audio.mdx+++ b/packages/docs/docs/preload/preload-audio.mdx@@ -12,9 +12,9 @@ This function preloads audio in the DOM so that when an HTML5 `<audio>` elementIt only affects HTML5 audio elements such as [`<Html5Audio>`](/docs/html5-audio), not [`<Audio>` from `@remotion/media`](/docs/media/audio).-While preload is not necessary for rendering, it can help with seamless playback in the [`<Player />`](/docs/player) and in the Studio.--An alternative to `preloadAudio()` is the [`prefetch()`](/docs/prefetch) API. See [`@remotion/preload` vs `prefetch()`](/docs/player/preloading#remotionpreload-vs-prefetch) to decide which one is better for your usecase.+:::warning+Using `preloadAudio()` is not recommended. Use [premounting](/docs/player/premounting) instead to give media time to load and initialize before it starts playing in the [Player](/docs/player) or [Studio](/docs/studio).+:::## Usagediff --git a/packages/docs/docs/preload/preload-video.mdx b/packages/docs/docs/preload/preload-video.mdxindex 3c5315f8bd..db2f741f67 100644--- a/packages/docs/docs/preload/preload-video.mdx+++ b/packages/docs/docs/preload/preload-video.mdx@@ -13,9 +13,9 @@ This function preloads a video in the DOM so that when an HTML5 `<video>` elemenIt only affects HTML5 video elements such as [`<Html5Video>`](/docs/html5-video), not [`<Video>` from `@remotion/media`](/docs/media/video).-While preload is not necessary for rendering, it can help with seamless playback in the [`<Player />`](/docs/player) and in the Studio.--An alternative to `preloadVideo()` is the [`prefetch()`](/docs/prefetch) API. See [`@remotion/preload` vs `prefetch()`](/docs/player/preloading#remotionpreload-vs-prefetch) to decide which one is better for your usecase.+:::warning+Using `preloadVideo()` is not recommended. Use [premounting](/docs/player/premounting) instead to give media time to load and initialize before it appears in the [Player](/docs/player) or [Studio](/docs/studio).+:::## Usage