I'm trying to autoplay a video as soon as the user interacted with the page. If I play the video before, I obviously get a security error :
Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.
That's fair, I catch this error and now want to register an event to retry the play as soon as the user interacted with the page.
=> Is there such an event available ?
I tried to register events on mouseover / mousemove / touchmove / click / focus / visibilitychanged but it's not optimal, and not very reliable after some tests ...