Skip to content

🎥 Make videos programmatically with React

document this

JonnyBurgerb5d41fcdfead
diff --git a/packages/docs/docs/media/fallback.mdx b/packages/docs/docs/media/fallback.mdx
index 074414d521..42a353a2ce 100644
--- a/packages/docs/docs/media/fallback.mdx
+++ b/packages/docs/docs/media/fallback.mdx
@@ -15,6 +15,7 @@ Here are some cases where [`@remotion/media`](/docs/media) may fall back to [`<O
- The resource fails to load due to [CORS restrictions](/docs/cors-issues)
- The container format is not supported by [Mediabunny](/docs/mediabunny/formats)
- The codec cannot be decoded by WebCodecs (e.g. a H.265 stream during rendering)
+- The video has an alpha channel and the browser does not support WebGL which is required to decode the alpha channel. The default configuration of the headless browser does not have WebGL enabled.
## Observing when a fallback happens
diff --git a/packages/docs/docs/media/support.mdx b/packages/docs/docs/media/support.mdx
index ff9d1e56f9..9d484de938 100644
--- a/packages/docs/docs/media/support.mdx
+++ b/packages/docs/docs/media/support.mdx
@@ -25,6 +25,6 @@ Prefer non-Matroska-based files (`.mp4`, `.mov`, `.m4a`) when you are doing dist
## Fallback to `<OffthreadVideo>`
-If a media file cannot be decoded, be it because of an unsupported codec or because it does not support CORS, then `@remotion/media` automatically falls back to [`<OffthreadVideo>`](/docs/offthreadvideo) or [`<Html5Audio>`](/docs/html5-audio) from the [`remotion`](/docs/remotion) package.
+If a media file cannot be decoded, be it because of an unsupported codec or because it does not support CORS, or it has an alpha channel and the browser does not support WebGL which is required to decode the alpha channel, then `@remotion/media` automatically falls back to [`<OffthreadVideo>`](/docs/offthreadvideo) or [`<Html5Audio>`](/docs/html5-audio) from the [`remotion`](/docs/remotion) package.
See: [Fallback from `@remotion/media` to `<OffthreadVideo>` or `<Html5Audio>`](/docs/media/fallback)