π₯ Make videos programmatically with React
Remove implementation details from documentation
Jonny Burger5067b19718c3
diff --git a/packages/docs/docs/client-side-rendering/limitations.mdx b/packages/docs/docs/client-side-rendering/limitations.mdxindex 1e499f085f..f8fdca42c7 100644--- a/packages/docs/docs/client-side-rendering/limitations.mdx+++ b/packages/docs/docs/client-side-rendering/limitations.mdx@@ -130,7 +130,7 @@ The [`<Audio>`](/docs/media/audio) from `@remotion/media` is <a style={{color: '[`<ThreeCanvas>`](/docs/three-canvas) from [`@remotion/three`](/docs/three) is <a style={{color: 'green'}}>supported</a>.[`<SkiaCanvas>`](/docs/skia/skia-canvas) from [`@remotion/skia`](/docs/skia) is <a style={{color: 'green'}}>supported</a>.[`<AnimatedImage>`](/docs/animatedimage) is <a style={{color: 'green'}}>supported</a> when rendering in Chrome.-[`<HtmlInCanvas>`](/docs/remotion/html-in-canvas) is <a style={{color: 'green'}}>supported</a> when the component itself is supported, including its [`onPaint`](/docs/remotion/html-in-canvas#onpaint) and [`onInit`](/docs/remotion/html-in-canvas#oninit) callbacks. From <AvailableFrom v="4.0.535" inline />, custom paint results are captured after painting finishes, including the first frame of a still or video. The optional [HTML-in-canvas capture mode](/docs/client-side-rendering/html-in-canvas) supports nested capture in Chrome 157.0.8080.0 or newer and falls back to the built-in DOM composer in older versions.<br />+[`<HtmlInCanvas>`](/docs/remotion/html-in-canvas) is <a style={{color: 'green'}}>supported</a> when the component itself is supported, including its [`onPaint`](/docs/remotion/html-in-canvas#onpaint) and [`onInit`](/docs/remotion/html-in-canvas#oninit) callbacks. The optional [HTML-in-canvas capture mode](/docs/client-side-rendering/html-in-canvas) supports nested capture in Chrome 157.0.8080.0 or newer and falls back to the built-in DOM composer in older versions.<br />[`<OffthreadVideo>`](/docs/offthreadvideo) is <a style={{color: 'red'}}>not supported</a>.β Use [`<Video>`](/docs/media/video) instead.[`<Html5Video>`](/docs/html5-video) is <a style={{color: 'red'}}>not supported</a>.diff --git a/packages/docs/docs/remotion/html-in-canvas.mdx b/packages/docs/docs/remotion/html-in-canvas.mdxindex af58f68a28..81d05f5fd5 100644--- a/packages/docs/docs/remotion/html-in-canvas.mdx+++ b/packages/docs/docs/remotion/html-in-canvas.mdx@@ -112,8 +112,6 @@ The callback receives:An [`OffscreenCanvas`](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas) with backing dimensions `width * pixelDensity` Γ `height * pixelDensity`, rounded up.You should paint to this canvas.-From <AvailableFrom v="4.0.535" inline />, rendering waits for each frame's paint and copies the finished pixels to the visible canvas before capture. Return a `Promise` from `onPaint` if your drawing is asynchronous.-#### `element`The inner [`HTMLDivElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDivElement) that wraps `children`.@@ -159,7 +157,7 @@ From <AvailableFrom v="4.0.528" inline />, it also inherits [`premountFor`](/doc### `ref?`You can add a [React ref](https://react.dev/learn/manipulating-the-dom-with-refs) to `<HtmlInCanvas />`.-It is attached to the visible [`HTMLCanvasElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement). From <AvailableFrom v="4.0.535" inline />, custom handlers use a separate canvas for the drawable subtree during rendering, so use the [`element`](#element) callback parameter to access the children.+It is attached to the [`HTMLCanvasElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement) that hosts the drawable subtree.If you use TypeScript, type the ref with `HTMLCanvasElement`: