Skip to content

🎥 Make videos programmatically with React

Update use-media-buffering.ts

Jonny Burgerf64c6622b757
diff --git a/packages/core/src/use-media-buffering.ts b/packages/core/src/use-media-buffering.ts
index c2aac81d99..758ddb23b6 100644
--- a/packages/core/src/use-media-buffering.ts
+++ b/packages/core/src/use-media-buffering.ts
@@ -77,7 +77,11 @@ export const useMediaBuffering = ({
// reset if a video is already playing.
// Therefore only calling it after checking if the video
// has no future data.
- current.load();
+
+ // Breaks on Firefox though: https://github.com/remotion-dev/remotion/issues/3915
+ if (!navigator.userAgent.includes('Firefox/')) {
+ current.load();
+ }
} else {
current.addEventListener('waiting', onWaiting);
cleanupFns.push(() => {