Skip to content

🎥 Make videos programmatically with React

`remotion`: Don't buffer if readyState === HAVE_FUTURE_DATA

Jonny Burger50e80ba95a26
diff --git a/packages/core/src/buffer-until-first-frame.ts b/packages/core/src/buffer-until-first-frame.ts
index 0bab976839..3d023e5f87 100644
--- a/packages/core/src/buffer-until-first-frame.ts
+++ b/packages/core/src/buffer-until-first-frame.ts
@@ -51,7 +51,7 @@ export const useBufferUntilFirstFrame = ({
}
if (
- current.readyState >= current.HAVE_ENOUGH_DATA &&
+ current.readyState >= current.HAVE_FUTURE_DATA &&
!isSafariWebkit() &&
// In Desktop Chrome, the video might switch to playing
// but does not play due to Bluetooth headphones