🎥 Make videos programmatically with React
actually make it work
Jonny Burger8fe522de3e06
diff --git a/packages/example/src/GifTest/index.tsx b/packages/example/src/GifTest/index.tsxindex be7bdc049a..264ddff7ba 100644--- a/packages/example/src/GifTest/index.tsx+++ b/packages/example/src/GifTest/index.tsx@@ -24,7 +24,14 @@ const GifTest: React.FC = () => {return (<div style={{flex: 1, backgroundColor: 'black'}}><Sequence durationInFrames={50}>- <Gif ref={ref1} src={giphy} width={width} height={height} fit="fill" />+ <Gif+ ref={ref1}+ playbackRate={4}+ src={giphy}+ width={width}+ height={height}+ fit="fill"+ /></Sequence><Sequence from={50} durationInFrames={50}>diff --git a/packages/gif/src/useCurrentGifIndex.tsx b/packages/gif/src/useCurrentGifIndex.tsxindex 03bd858a7a..225fb1f78b 100644--- a/packages/gif/src/useCurrentGifIndex.tsx+++ b/packages/gif/src/useCurrentGifIndex.tsx@@ -29,7 +29,7 @@ export function useCurrentGifIndex({return 0;}- const updatedFrame = currentFrame / playbackRate;+ const updatedFrame = currentFrame / (1 / playbackRate);const time = (updatedFrame / videoConfig.fps) * 1000;