Skip to content

🎥 Make videos programmatically with React

`remotion`: Fix native buffering state when using startFrom and endAt

Jonny Burger3d255821397d
diff --git a/packages/core/src/video/OffthreadVideo.tsx b/packages/core/src/video/OffthreadVideo.tsx
index 8df8ab6610..d32329ecff 100644
--- a/packages/core/src/video/OffthreadVideo.tsx
+++ b/packages/core/src/video/OffthreadVideo.tsx
@@ -47,7 +47,10 @@ export const OffthreadVideo: React.FC<OffthreadVideoProps> = (props) => {
durationInFrames={endAtFrameNo}
name={name}
>
- <OffthreadVideo {...otherProps} />
+ <OffthreadVideo
+ pauseWhenBuffering={pauseWhenBuffering ?? false}
+ {...otherProps}
+ />
</Sequence>
);
}
diff --git a/packages/core/src/video/Video.tsx b/packages/core/src/video/Video.tsx
index 31c3b0ef0f..77eab87133 100644
--- a/packages/core/src/video/Video.tsx
+++ b/packages/core/src/video/Video.tsx
@@ -101,7 +101,11 @@ const VideoForwardingFunction: React.ForwardRefRenderFunction<
durationInFrames={endAtFrameNo}
name={name}
>
- <Video {...otherProps} ref={ref} />
+ <Video
+ pauseWhenBuffering={pauseWhenBuffering ?? false}
+ {...otherProps}
+ ref={ref}
+ />
</Sequence>
);
}