Skip to content

🎥 Make videos programmatically with React

add to docs

Jonny Burger3ecd34f9591a
diff --git a/packages/docs/docs/offthreadvideo.md b/packages/docs/docs/offthreadvideo.md
index ed275d5468..670110ca7f 100644
--- a/packages/docs/docs/offthreadvideo.md
+++ b/packages/docs/docs/offthreadvideo.md
@@ -212,7 +212,11 @@ Only set `transparent` to `true` if you need transparency. It is slower than non
## Looping a video
-Unlike [`<Video>`](/docs/video), `OffthreadVideo` does not currently implement the `loop` property. You can use the following snippet that uses [`@remotion/media-utils`](/docs/media-utils/) to loop a video.
+Unlike [`<Video>`](/docs/video), `OffthreadVideo` does not currently implement the `loop` property.
+
+You can use the following snippet that uses [`@remotion/media-utils`](/docs/media-utils/) to loop a video.
+
+Note that this will mount a `<video>` tag in the browser, meaning only codecs supported by the browser can be used.
```tsx twoslash title="LoopedOffthreadVideo.tsx"
import { getVideoMetadata } from "@remotion/media-utils";
diff --git a/packages/docs/docs/use-offthread-video-texture.md b/packages/docs/docs/use-offthread-video-texture.md
index e4b6eb7330..3d88546dab 100644
--- a/packages/docs/docs/use-offthread-video-texture.md
+++ b/packages/docs/docs/use-offthread-video-texture.md
@@ -113,6 +113,10 @@ If set to `true`, frames will be extracted as PNG, enabling transparency but als
If set to `false` (_default_), frames will be extracted as bitmap (BMP), which is faster.
+## Looping a texture
+
+Like `<OffthreadVideo>`, looping a video [is not supported out of the box](/docs/offthreadvideo#looping-a-video) but can be achieved with the `<Loop>` component.
+
## See also
- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/three/src/use-offthread-video-texture.ts)