Skip to content

🎥 Make videos programmatically with React

revert to correct behavior

Jonny Burgerfefd7fd5553b
diff --git a/packages/core/src/audio/Audio.tsx b/packages/core/src/audio/Audio.tsx
index 96ad6cb640..9cda3e4a7a 100644
--- a/packages/core/src/audio/Audio.tsx
+++ b/packages/core/src/audio/Audio.tsx
@@ -15,13 +15,8 @@ export const Audio: React.FC<RemotionAudioProps & RemotionMainAudioProps> = (
const startAtFrameNo = startAt ?? 0;
const endAtFrameNo = endAt ?? Infinity;
return (
- <Sequence
- from={startAtFrameNo}
- durationInFrames={endAtFrameNo - startAtFrameNo}
- >
- <Sequence from={0 - startAtFrameNo} durationInFrames={Infinity}>
- <Audio {...otherProps} />
- </Sequence>
+ <Sequence from={0 - startAtFrameNo} durationInFrames={endAtFrameNo}>
+ <Audio {...otherProps} />
</Sequence>
);
}
diff --git a/packages/core/src/video/Video.tsx b/packages/core/src/video/Video.tsx
index fe0749229a..6d4ecfafe2 100644
--- a/packages/core/src/video/Video.tsx
+++ b/packages/core/src/video/Video.tsx
@@ -16,13 +16,8 @@ export const Video: React.FC<RemotionVideoProps & RemotionMainVideoProps> = (
const startAtFrameNo = startAt ?? 0;
const endAtFrameNo = endAt ?? Infinity;
return (
- <Sequence
- from={startAtFrameNo}
- durationInFrames={endAtFrameNo - startAtFrameNo}
- >
- <Sequence from={0 - startAtFrameNo} durationInFrames={Infinity}>
- <Video {...otherProps} />
- </Sequence>
+ <Sequence from={0 - startAtFrameNo} durationInFrames={endAtFrameNo}>
+ <Video {...otherProps} />
</Sequence>
);
}