🎥 Make videos programmatically with React
docs tweaks
Jonny Burgerc0547e4bfc81
diff --git a/packages/docs/docs/audio.md b/packages/docs/docs/audio.mdindex ffd359e7cb..96490f57dd 100644--- a/packages/docs/docs/audio.md+++ b/packages/docs/docs/audio.md@@ -14,20 +14,20 @@ Using this component, you can add audio to your video. All audio formats which aUse an import or require to load an audio file and pass it to the `src` props of the `<Audio />` component.-`<Audio>` has two more helper props `startAt` (start frame no) and `endAt` (end frame no) both are optional and does not get forwarded to the native `<audio>` element but helps Remotion understand about which portion of the audio needs to be rendered.+`<Audio>` has two more helper props: `startAt` 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.```tsximport {Audio} from 'remotion';-import audio from './audio.mp4'+import audio from './audio.mp3'export const MyVideo = () => {return (<div><div>Hello World!</div>- <Audio- src={audio}- startAt={60} // if audio is 30fps, then it will start at 2s- endAt={120} // if audio is 30fps, then it will end at 4s+ <Audio+ src={audio}+ startAt={59} // if composition is 30fps, then it will start at 2s+ endAt={120} // if composition is 30fps, then it will end at 4s/></div>)diff --git a/packages/docs/docs/video.md b/packages/docs/docs/video.mdindex 441932fd89..3f0da37d22 100644--- a/packages/docs/docs/video.md+++ b/packages/docs/docs/video.md@@ -13,7 +13,7 @@ Videos with audio are not supported - yet! Audio will be muted in the final rendUse 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>` has two more helper props `startAt` (start frame no) and `endAt` (end frame no) both are optional and does not get forwarded to the native `<video>` element but helps Remotion understand about which portion of the video needs to be rendered.+`<Video>` has two more helper props: `startAt` 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.```tsximport {Video} from 'remotion';@@ -25,7 +25,7 @@ export const MyVideo = () => {<div>Hello World!</div><Videosrc={video}- startAt={60} // if video is 30fps, then it will start at 2s+ startAt={59} // if video is 30fps, then it will start at 2sendAt={120} // if video is 30fps, then it will end at 4sstyle={{height: 1080 / 2, width: 1920 / 2}}/>