🎥 Make videos programmatically with React
explain purpose of --gl=angle
JonnyBurger1574a9e323d1
diff --git a/packages/docs/docs/remotion/html-in-canvas.mdx b/packages/docs/docs/remotion/html-in-canvas.mdxindex 4838779f2e..b6e9efa5b1 100644--- a/packages/docs/docs/remotion/html-in-canvas.mdx+++ b/packages/docs/docs/remotion/html-in-canvas.mdx@@ -42,9 +42,9 @@ if (HtmlInCanvas.isSupported()) {}```-## Video and the ANGLE renderer+## Using WebGL during renders-If your composition includes **video** (for example [`<Video>`](/docs/media/video) from `@remotion/media`) and you use `<HtmlInCanvas>`, video will only render when Chromium uses the **ANGLE** OpenGL backend.+If you make use of WebGL during renders, you need to enable it:From the CLI:@@ -52,7 +52,7 @@ From the CLI:npx remotion render --gl=angle```-It is advised to set the default in `remotion.config.ts` so Studio and CLI renders pick it up:+It is advised to set this as default in `remotion.config.ts` so Studio and CLI renders pick it up:```ts twoslash title="remotion.config.ts"import {Config} from '@remotion/cli/config';diff --git a/packages/skills/skills/remotion/rules/html-in-canvas.md b/packages/skills/skills/remotion/rules/html-in-canvas.mdindex d652a9df30..7496800889 100644--- a/packages/skills/skills/remotion/rules/html-in-canvas.md+++ b/packages/skills/skills/remotion/rules/html-in-canvas.md@@ -13,9 +13,9 @@ Do not nest `<HtmlInCanvas>` inside another `<HtmlInCanvas>`. Remotion throws:<HtmlInCanvas> effects cannot be nested together. Chrome will only display the outer effect. Consider merging the effects into one if you can.```-## Video and the ANGLE renderer+## Enabling WebGL during renders-If the composition includes **video** (for example `<Video>` from `@remotion/media`) and you use `<HtmlInCanvas>`, rendering only works when Chromium uses the **ANGLE** OpenGL backend.+If you make use of WebGL during renders, you need to enable it:From the CLI: