🎥 Make videos programmatically with React
Fix Video playback regression in v4.0.111
Jonny Burgerfcf45ad8eb5e
diff --git a/packages/bugs/api/[v].ts b/packages/bugs/api/[v].tsindex 9d2419a313..dd14967c57 100644--- a/packages/bugs/api/[v].ts+++ b/packages/bugs/api/[v].ts@@ -7,6 +7,13 @@ type Bug = {};const bugs: Bug[] = [+ {+ title: "Video playback in Studio and Player is broken",+ description:+ "OffthreadVideo, Video and Audio tags are affected. Upgrade to 4.0.112.",+ link: "https://remotion.dev/changelog",+ versions: ["4.0.111"],+ },{title: "Remotion Lambda is broken",description: "A render would not start on the Lambda. Upgrade to 4.0.99.",diff --git a/packages/core/src/use-media-playback.ts b/packages/core/src/use-media-playback.tsindex 217b9e7215..716ea53969 100644--- a/packages/core/src/use-media-playback.ts+++ b/packages/core/src/use-media-playback.ts@@ -70,7 +70,8 @@ export const useMediaPlayback = ({return acceptableTimeshift;})();- const pausedOrBuffering = !playing || (buffering && buffering.buffering);+ const pausedOrBuffering =+ !playing || (buffering && buffering.buffering.current);useEffect(() => {if (pausedOrBuffering) {