Skip to content

🎥 Make videos programmatically with React

Revert the main change in the `<Player>` performance PR (revert #2666)

Jonny Burger8a765ef762cd
diff --git a/packages/core/src/use-media-playback.ts b/packages/core/src/use-media-playback.ts
index ade18a1be9..cf404e19f4 100644
--- a/packages/core/src/use-media-playback.ts
+++ b/packages/core/src/use-media-playback.ts
@@ -61,14 +61,6 @@ export const useMediaPlayback = ({
mediaRef.current.playbackRate = playbackRateToSet;
}
- // Let's throttle the seeking to only every 10 frames when a video is playing to avoid bottlenecking
- // the video tag.
- if (playing) {
- if (absoluteFrame % 10 !== 0) {
- return;
- }
- }
-
const desiredUnclampedTime = getMediaTime({
fps,
frame,