🎥 Make videos programmatically with React
update sidebars
Jonny Burger22050c84e6cc
diff --git a/packages/docs/blog/2021-04-15-remotion-2-0.md b/packages/docs/blog/2021-04-15-remotion-2-0.mdindex dfebe36b6f..63734eedc9 100644--- a/packages/docs/blog/2021-04-15-remotion-2-0.md+++ b/packages/docs/blog/2021-04-15-remotion-2-0.md@@ -41,7 +41,7 @@ You can now also completely omit the video from the output and only emit an audi</video></div>-This is a new helper package which includes functions useful for dealing with audio. Besides audio visualization, you can also for example measure the duration of an audio or video source, which is really useful for making a composition duration dynamic. The functions included are [`getAudioData()`](/docs/get-audio-data), [`getAudioDuration()`](/docs/get-audio-duration), [`getVideoMetadata()`](/docs/get-video-metadata), [`getWaveformPortion()`](/docs/get-waveform-portion), [`visualizeAudio()`](/docs/visualize-audio) and [`useAudioData()`](/docs/use-audio-data).+This is a new helper package which includes functions useful for dealing with audio. Besides audio visualization, you can also for example measure the duration of an audio or video source, which is really useful for making a composition duration dynamic. The functions included are [`getAudioData()`](/docs/get-audio-data), [`getAudioDuration()`](/docs/get-audio-duration-in-seconds), [`getVideoMetadata()`](/docs/get-video-metadata), [`getWaveformPortion()`](/docs/get-waveform-portion), [`visualizeAudio()`](/docs/visualize-audio) and [`useAudioData()`](/docs/use-audio-data).All of them except the last one are completely independent from the ideas of Remotion, so they might be a great fit for your other non-Remotion projects as well! This package is MIT-licensed, so you everybody can use it without obtaining a company license.@@ -117,7 +117,11 @@ In the editor, you can now resize the timeline as well as the left sidebar. Than`interpolate()` now supports arrays with lengths bigger than 2. Really useful for a lot of scenarios - for example you can create a combined fade in/fade out transition with one line.```tsx-const opacity = interpolate(frame, [0, 10, durationInFrames - 10, durationInFrames], [0, 1, 1, 0])+const opacity = interpolate(+ frame,+ [0, 10, durationInFrames - 10, durationInFrames],+ [0, 1, 1, 0]+);```## 170+ tests addeddiff --git a/packages/docs/docs/get-audio-data.md b/packages/docs/docs/get-audio-data.mdindex e76c385929..48ae3bb16f 100644--- a/packages/docs/docs/get-audio-data.md+++ b/packages/docs/docs/get-audio-data.md@@ -67,7 +67,7 @@ If you pass in the same argument to `src` multiple times, it will return a cache## Alternatives-If you need only the duration, prefer [`getAudioDurationInSeconds()`](/docs/get-audio-duration) which is faster because it doesn't need to read waveform data.+If you need only the duration, prefer [`getAudioDurationInSeconds()`](/docs/get-audio-duration-in-seconds) which is faster because it doesn't need to read waveform data.Use the [`useAudioData()`](/docs/use-audio-data) helper hook to not have to do state management yourself and to wrap the call in [`delayRender()`](/docs/delay-render).diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex ecd539c72a..5565c00438 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -196,7 +196,7 @@ module.exports = {items: ["audio-buffer-to-data-url","get-audio-data",- "get-audio-duration",+ "get-audio-duration-in-seconds","get-video-metadata","get-waveform-portion","use-audio-data",