Skip to content

🎥 Make videos programmatically with React

4-0-migration.md & OffthreadVideo.md updated

Patric Salvisberg6964d96c77b6
diff --git a/packages/docs/docs/4-0-migration.md b/packages/docs/docs/4-0-migration.md
index 650d8aed82..a5962278e6 100644
--- a/packages/docs/docs/4-0-migration.md
+++ b/packages/docs/docs/4-0-migration.md
@@ -142,6 +142,12 @@ The `onBucketEnsured()` option of [`getOrCreateBucket()`](/docs/lambda/getorcrea
## `imageFormat` removed from `<OffthreadVideo>`
+Until now, you could optionally pass the `imageFormat` prop into `<OffthreadVideo>`. This option was introduced in order to make transparent videos possible.
+
+Now, you can instead use the optional `transparent` prop.
+
+Due to this this change, the `OffthreadVideoImageFormat` type is no longer neccessary and has therefore been removed.
+
## `OffthreadVideoImageFormat` removed
## `<Img>` will cancel the render if the image cannot be loaded
diff --git a/packages/docs/docs/offthreadvideo.md b/packages/docs/docs/offthreadvideo.md
index 8ea3e612e8..8c9b0c7de9 100644
--- a/packages/docs/docs/offthreadvideo.md
+++ b/packages/docs/docs/offthreadvideo.md
@@ -45,7 +45,16 @@ The props [`volume`](/docs/video#volume), [`playbackRate`](/docs/video#playbackr
The props [`onError`](/docs/img#onerror), `className` and `style` are supported and get passed to the underlying HTML element. Remember that during render, this is a `<img>` element, and during preview, this is a `<video>` element.
-### `imageFormat` <AvailableFrom v="3.0.22" />
+### `transparent` <AvailableFrom v="4.0.0" />
+
+_optional, boolean_
+If set to `true`, frames will be extracted as PNG, enabling transparency but also slowing down your render.
+
+If set to `false`(_default_), frames will be extracted as bitmap (BMP), which is faster.
+
+### ~~`imageFormat` <AvailableFrom v="3.0.22" />~~
+
+_removed in v4.0.0_
Either `jpeg` or `png`. Default `jpeg`.
With `png`, transparent videos (VP8, VP9, ProRes) can be displayed, however it is around 40% slower, with VP8 videos being [much slower](/docs/slow-method-to-extract-frame).