mobile > expertise : force reverse video preload for mobile playback
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
35b3869e97
commit
0148d5a9c3
1 changed files with 1 additions and 0 deletions
|
|
@ -62,6 +62,7 @@
|
|||
requestAnimationFrame(() => computeOffset())
|
||||
// Force first-frame decode (required on mobile Safari)
|
||||
videoFwd.play().then(() => videoFwd.pause()).catch(() => {})
|
||||
if (videoRev) videoRev.play().then(() => videoRev.pause()).catch(() => {})
|
||||
}
|
||||
if (videoFwd.readyState >= 1) start()
|
||||
else videoFwd.addEventListener('loadedmetadata', start, { once: true })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue