π₯ Make videos programmatically with React
update audio and video
Jonny Burger60d9ce43765e
diff --git a/packages/docs/docs/audio.md b/packages/docs/docs/audio.mdindex 3d32c4493b..fc1d7fb325 100644--- a/packages/docs/docs/audio.md+++ b/packages/docs/docs/audio.md@@ -1,19 +1,20 @@----title: <Audio /> (experimental)-sidebar_label: <Audio /> π§+title: <Audio />id: audio----:::warning-This component is a work in progress. The final output **does not** yet have audio even with this component. At the moment, you need to add audio manually after the render, but you may find the component useful to listen to your intended audio track while editing your video-:::+Using this component, you can add audio to your video. All audio formats which are supported by Chromium are supported by the component.-Using this component, you can add audio to your video. All audio formats which are supported by Chromium are supported by the component. There is currently no option to trim audio or control it's volume. **Audio currently only plays in the preview.**+:::info+Version 1.x doesn't render audio to it's output. Make sure to upgrade to [Remotion 2.0](/docs/2-0-migration) to render audio+:::## API / ExampleUse an import or require to load an audio file and pass it to the `src` props of the `<Audio />` component.+The component also accepts a `volume` props which allows you to control the volume of the audio in it's entirety or frame by frame. Read the page on [using audio](/docs/using-audio) to learn more.+`<Audio>` has two more helper props: `startFrom` and `endAt` for defining the start frame and end frame. Both are optional and do not get forwarded to the native `<audio>` element but tell Remotion which portion of the audio should be included.```tsx@@ -36,4 +37,6 @@ export const MyVideo = () => {## See also+- [Using audio](/docs/audio)+- [Audio visualization](/docs/audio-visualization)- [`<Video />`](/docs/video)diff --git a/packages/docs/docs/video.md b/packages/docs/docs/video.mdindex 987d204ba5..00c4ed84fa 100644--- a/packages/docs/docs/video.md+++ b/packages/docs/docs/video.md@@ -5,14 +5,12 @@ id: videoThis component allows you to include a video file in your Remotion project. While in the preview, the video will just play in a HTML5 `<video>` tag, during render, the exact frame needed will be extracted.-:::warning-Videos with audio are not supported - yet! Audio will be muted in the final render.-:::-## API / ExampleUse an import or require to load an video file and pass it as the `src` prop. All the props that the native `<video>` element accepts (except `autoplay` and `controls`) will be forwarded (but of course not all are useful for Remotion). This means you can use all CSS to style the video.+`<Video>` also accepts a `volume` prop which allows you to control the volume for the whole track or change it on a per-frame basis. Refer to the [using audio](/docs/using-audio#controlling-volume) guide to learn how to use it.+`<Video>` has two more helper props: `startFrom` and `endAt` to define when the video should start and end. Both are optional and do not get forwarded to the native `<video>` element but tell Remotion which portion of the video to use.```tsx