Slide 21
Slide 21 text
IOS BUG #1 - THE HACKY FIX
const handlePlay = () => {
videoEl.pause()
}
const handlePause = () => {
videoEl.play().catch(() => {})
}
videoEl.addEventListener('play', handlePlay, { once: true })
videoEl.addEventListener('pause', handlePause, { once: true })