mobile > expertise : force reverse video preload for mobile playback

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-04-04 10:25:16 +02:00
parent 35b3869e97
commit 0148d5a9c3

View file

@ -62,6 +62,7 @@
requestAnimationFrame(() => computeOffset()) requestAnimationFrame(() => computeOffset())
// Force first-frame decode (required on mobile Safari) // Force first-frame decode (required on mobile Safari)
videoFwd.play().then(() => videoFwd.pause()).catch(() => {}) videoFwd.play().then(() => videoFwd.pause()).catch(() => {})
if (videoRev) videoRev.play().then(() => videoRev.pause()).catch(() => {})
} }
if (videoFwd.readyState >= 1) start() if (videoFwd.readyState >= 1) start()
else videoFwd.addEventListener('loadedmetadata', start, { once: true }) else videoFwd.addEventListener('loadedmetadata', start, { once: true })