Skip to content

🎥 Make videos programmatically with React

fix audio loop not working during rendering

JonnyBurger5c7fd5faeea1
diff --git a/packages/media/src/audio/audio.tsx b/packages/media/src/audio/audio.tsx
index 861b01ef64..2f16cf1824 100644
--- a/packages/media/src/audio/audio.tsx
+++ b/packages/media/src/audio/audio.tsx
@@ -9,7 +9,7 @@ const {validateMediaProps} = Internals;
export const Audio: React.FC<AudioProps> = (props) => {
// Should only destruct `trimBefore` and `trimAfter` from props,
// rest gets drilled down
- const {name, stack, showInTimeline, loop, ...otherProps} = props;
+ const {name, stack, showInTimeline, ...otherProps} = props;
const environment = useRemotionEnvironment();
if (typeof props.src !== 'string') {
@@ -29,14 +29,7 @@ export const Audio: React.FC<AudioProps> = (props) => {
return <AudioForRendering {...otherProps} />;
}
- return (
- <AudioForPreview
- loop={loop}
- name={name}
- {...otherProps}
- stack={stack ?? null}
- />
- );
+ return <AudioForPreview name={name} {...otherProps} stack={stack ?? null} />;
};
// TODO: Doesn't work