Skip to content

🎥 Make videos programmatically with React

Merge branch 'main' into tone-frequency

JonnyBurger9d4ff4c346df
diff --cc packages/docs/docs/media/audio.mdx
index 10376503ce,e7894d617d..861d066b7d
--- a/packages/docs/docs/media/audio.mdx
+++ b/packages/docs/docs/media/audio.mdx
@@@ -216,14 -216,31 +216,31 @@@ Currently only works during rendering
Planning to support it during preview as well.
:::
+### `toneFrequency?`
+
+Accepts a number between `0.01` and `2`, where `1` represents the original pitch. Values less than `1` will decrease the pitch, while values greater than `1` will increase it.
+
+A `toneFrequency` of 0.5 would lower the pitch by half, and a `toneFrequency` of `1.5` would increase the pitch by 50%.
+
+The value must stay the same across the entire time the video tag is mounted.
+
+ ### `fallbackHtml5AudioProps?`
+
+ When a [fallback to `<Audio>` from `remotion`](/docs/media/fallback) happens, this prop allows you to pass props to the fallback `<Audio>` component.
+ Only props that are not supported by `<Audio>` from `@remotion/media` need to be specified here - props that apply for both tags will automatically be forwarded and do not need to be specified here.
+
+ #### `onError?`
+
+ Maps to [`<Audio />` -> `onError`](/docs/audio#onerror)
+
+ #### `useWebAudioApi?`
+
+ Maps to [`<Audio />` -> `useWebAudioApi`](/docs/audio#usewebaudioapi)
+
-#### `toneFrequency?`
-
-Maps to [`<Audio />` -> `toneFrequency`](/docs/audio#tonefrequency)
-
-:::note
-Subject to change: Will soon become a top-level prop.
-:::
-
+ #### `acceptableTimeShiftInSeconds?`
+
+ Maps to [`<Audio />` -> `acceptableTimeShiftInSeconds`](/docs/audio#acceptabletimeshiftinseconds)
+
### `disallowFallbackToHtml5Audio?`<AvailableFrom v="3.0.356" />
By default, if the video cannot be embedded using this tag, [a fallback to `<Audio>` from `remotion`](/docs/media/fallback) will be attempted.
diff --cc packages/docs/docs/media/video.mdx
index e0bcc1ee4a,ba6f42189c..ca35874def
--- a/packages/docs/docs/media/video.mdx
+++ b/packages/docs/docs/media/video.mdx
@@@ -248,19 -248,35 +248,40 @@@ Currently only works during rendering
Planning to support it during preview as well.
:::
+### `toneFrequency?`
+
+Accepts a number between `0.01` and `2`, where `1` represents the original pitch. Values less than `1` will decrease the pitch, while values greater than `1` will increase it.
+
+A `toneFrequency` of 0.5 would lower the pitch by half, and a `toneFrequency` of `1.5` would increase the pitch by 50%.
+
+The value must stay the same across the entire time the video tag is mounted.
+
+:::note
+Currently only works during rendering.
+Planning to support it during preview as well.
+:::
+
+ ### `fallbackOffthreadVideoProps?`
+
+ When a [fallback to `<OffthreadVideo>`](/docs/media/fallback) happens, this prop allows you to pass props to the fallback `<OffthreadVideo>` component.
+ Only props that are not supported by `<Video>` from `@remotion/media` need to be specified here - props that apply for both tags will automatically be forwarded and do not need to be specified here.
+
+ #### `acceptableTimeShiftInSeconds?`
+
+ Maps to [`<OffthreadVideo />` -> `acceptableTimeShiftInSeconds`](/docs/offthreadvideo#acceptabletimeshiftinseconds)
+
-#### `toneFrequency?`
-
-Maps to [`<OffthreadVideo />` -> `toneFrequency`](/docs/offthreadvideo#tonefrequency)
-
-:::note
-Subject to change: Will soon become a top-level prop.
-:::
-
+ #### `transparent?`
+
+ Maps to [`<OffthreadVideo />` -> `transparent`](/docs/offthreadvideo#transparent)
+
+ #### `toneMapped?`
+
+ Maps to [`<OffthreadVideo />` -> `toneMapped`](/docs/offthreadvideo#tonemapped)
+
+ #### `onError?`
+
+ Maps to [`<OffthreadVideo />` -> `onError`](/docs/offthreadvideo#onerror)
+
### `disallowFallbackToOffthreadVideo?`<AvailableFrom v="3.0.356" />
By default, if the video cannot be embedded using this tag, [a fallback to `<OffthreadVideo>`](/docs/media/fallback) will be attempted.