Skip to content

🎥 Make videos programmatically with React

fix player seek bar not going full length¨

Jonny Burger776d0aa70d64
diff --git a/packages/player/src/PlayerSeekBar.tsx b/packages/player/src/PlayerSeekBar.tsx
index 3ac053c21b..8980ae383f 100644
--- a/packages/player/src/PlayerSeekBar.tsx
+++ b/packages/player/src/PlayerSeekBar.tsx
@@ -150,7 +150,7 @@ export const PlayerSeekBar: React.FC<{
return {
height: BAR_HEIGHT,
backgroundColor: 'rgba(255, 255, 255, 1)',
- width: (frame / durationInFrames) * 100 + '%',
+ width: (frame / (durationInFrames - 1)) * 100 + '%',
borderRadius: BAR_HEIGHT / 2,
};
}, [durationInFrames, frame]);