A user gesture must be registered before video playback can begin. This Set records the video elements which await such a gesture.
A mapping of base64 video thumbnail images
A flag for whether video playback is currently locked by awaiting a user gesture
Private
#youStore a Promise while the YouTube API is initializing.
Private
#youThe YouTube URL regex.
Play a single video source If playback is not yet enabled, add the video to the pending queue
The VIDEO element to play
Optional
options: { Additional options for modifying video playback
Should the video be playing? Otherwise, it will be paused
Should the video loop?
A specific timestamp between 0 and the video duration to begin playback
Desired volume level of the video's audio channel (if any)
Create and cache a static thumbnail to use for the video. The thumbnail is cached using the video file path or URL.
The source video URL
Thumbnail creation options, including width and height
The created and cached base64 thumbnail image, or a placeholder image if the canvas is disabled and no thumbnail can be generated.
Lazily-load the YouTube API and retrieve a Player instance for a given iframe.
The iframe ID.
A player config object. See https://developers.google.com/youtube/iframe_api_reference for reference.
Private
#injectStatic
has
A helper class to provide common functionality for working with HTML5 video objects A singleton instance of this class is available as
game.video