🎥 Make videos programmatically with React
loop
Jonny Burger8ab2c6613b8e
diff --git a/packages/docs/docs/media/audio.mdx b/packages/docs/docs/media/audio.mdxindex f62b68919e..d202378ead 100644--- a/packages/docs/docs/media/audio.mdx+++ b/packages/docs/docs/media/audio.mdx@@ -116,10 +116,6 @@ export const MyVideo = () => {};```-### `loopVolumeCurveBehavior?`--**Currently not supported!**-### `name?`A name and that will be shown as the label of the sequence in the timeline of the Remotion Studio. This property is purely for helping you keep track of items in the timeline.@@ -132,20 +128,32 @@ A name and that will be shown as the label of the sequence in the timeline of th**Currently not supported!**+### `loop?`<AvailableFrom v="3.2.29" />++Makes the audio loop indefinitely.++```tsx twoslash title="Example of a looped audio"+import {experimental_Audio as Audio} from '@remotion/media';++// ---cut---+export const MyComposition = () => {+ return <Audio loop src="https://parser.media/audio.wav" />;+};+```++### `loopVolumeCurveBehavior?`++**Currently not supported!**+### `muted?`The `muted` prop will be respected. It will lead to no audio being played while still keeping the audio tag mounted. It's value may change over time, for example to only mute a certain section of the audio.```tsx twoslash title="Example of a muted video"-import {AbsoluteFill, OffthreadVideo} from 'remotion';import {experimental_Audio as Audio} from '@remotion/media';// ---cut---export const MyComposition = () => {- return (- <AbsoluteFill>- <Audio muted src="https://parser.media/audio.wav" />- </AbsoluteFill>- );+ return <Audio muted src="https://parser.media/audio.wav" />;};```diff --git a/packages/docs/docs/media/video.mdx b/packages/docs/docs/media/video.mdxindex c8ff8c405b..060e184fcd 100644--- a/packages/docs/docs/media/video.mdx+++ b/packages/docs/docs/media/video.mdx@@ -118,10 +118,6 @@ export const MyVideo = () => {};```-### `loopVolumeCurveBehavior?`--**Currently not supported!**-### `name?`A name and that will be shown as the label of the sequence in the timeline of the Remotion Studio. This property is purely for helping you keep track of items in the timeline.@@ -151,6 +147,28 @@ export const MyComposition = () => {};```+### `loop?`<AvailableFrom v="3.2.29" />++Makes the video loop indefinitely.++```tsx twoslash title="Example of a looped video"+import {AbsoluteFill} from 'remotion';+import {experimental_Video as NewVideo} from '@remotion/media';++// ---cut---+export const MyComposition = () => {+ return (+ <AbsoluteFill>+ <Video loop src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" />+ </AbsoluteFill>+ );+};+```++### `loopVolumeCurveBehavior?`++**Currently not supported!**+### `acceptableTimeShiftInSeconds?`**Pending removal**: Future iterations will also have client-side playback and not support this prop which was designed for the `<video>` tag.