News for hackers. Stuff that matters.
Re:Auto-Play Policy Changes for macOS by jernoble on Thursday June 08, 2017 @04:44PM (#14517047)
A "keypress" event counts as a user gesture, so as long as your code looks like:

document.addEventListener('keypress', event => { if (event.key === 'space') video.play(); });

...then everything should just work fine.

There are no comments on this comment yet.