Skip to content

🎥 Make videos programmatically with React

revert videoForRendering.tsx

Shankhadeep Deyaf0e3382bbc2
diff --git a/packages/core/src/video/VideoForRendering.tsx b/packages/core/src/video/VideoForRendering.tsx
index ff942a4b1c..182cac9582 100644
--- a/packages/core/src/video/VideoForRendering.tsx
+++ b/packages/core/src/video/VideoForRendering.tsx
@@ -1,5 +1,4 @@
import React, {useEffect, useRef} from 'react';
-import {FEATURE_FLAG_V2_BREAKING_CHANGES} from '../feature-flags';
import {continueRender, delayRender} from '../ready-manager';
import {useCurrentFrame} from '../use-frame';
import {useUnsafeVideoConfig} from '../use-unsafe-video-config';
@@ -21,9 +20,7 @@ export const VideoForRendering: React.FC<RemotionVideoProps> = ({
if (!videoRef.current) {
return;
}
- const frameInSeconds = FEATURE_FLAG_V2_BREAKING_CHANGES
- ? (frame + 1) / videoConfig.fps
- : frame / videoConfig.fps;
+ const frameInSeconds = frame / videoConfig.fps;
const handle = delayRender();
if (videoRef.current.currentTime === frameInSeconds) {
if (videoRef.current.readyState >= 2) {