A flag for whether video playback is currently locked by awaiting a user gesture
A user gesture must be registered before video playback can begin. This Set records the video elements which await such a gesture.
A collection of HTML5 video objects which are currently active within the FVTT page
Handle the first observed user gesture We need a slight delay because unfortunately Chrome is stupid and doesn't always acknowledge the gesture fast enough.
The mouse-move event which enables playback
Register an event listener to await the first mousemove gesture and begin playback once observed A user interaction must involve a mouse click or keypress. Listen for any of these events, and handle the first observed gesture.
Play a single video source If playback is not yet enabled, add the video to the pending queue
The VIDEO element to play