by TheAceOfHearts · 9y ago · 0 comments
I think every time I've encountered a website that autoplays video, it's been an annoyance. But maybe I haven't considered the topic with enough depth, what are examples of legitimate use-cases for autoplay video?
Of course since this only effects video that includes an audio track it wont impact them. I can't recall anything that auto plays video with audio that wasn't user hostile.
document.addEventListener('keypress', event => { if (event.key === 'space') video.play(); });
...then everything should just work fine.