Video element to use.
Returns true if the underlying source is playing.
Returns true if the underlying source is ready for playing.
Fired when the video is loaded and ready to play
Handle video error events.
Runs the update loop when the video is ready to play
Fired when a pause event is triggered, stops the update loop
Map of video MIME types that can't be directly derived from file extensions.
List of common video file extensions supported by VideoResource.
Should the base texture automatically update itself, set to true by default
Should the base texture automatically update itself, set to true by default
The height of the resource.
How many times a second to update the texture from the video. Leave at 0 to update at every render. A lower fps can help performance, as updating the texture at 60fps on a 30ps video may not be efficient.
How many times a second to update the texture from the video. Leave at 0 to update at every render. A lower fps can help performance, as updating the texture at 60fps on a 30ps video may not be efficient.
Has been validated
The width of the resource.
Bind to a parent BaseTexture
Parent texture
Call when destroying resource, unbind any BaseTexture object before calling this method, as reference counts are maintained internally.
Destroys this texture
Start preloading the video resource.
Handle the validate event
Trigger a resize event
X dimension
Y dimension
Set the style, optional to override
true
is success
Unbind to a parent BaseTexture
Parent texture
Trigger updating of the texture
Upload the texture to the GPU.
Upload to the renderer
Reference to parent texture
true is success
Set cross origin based detecting the url and the crossorigin
Element to apply crossOrigin
URL to check
Used to auto-detect the type of resource.
The source object
The extension of source, if set
true
if video source
Generated using TypeDoc
Resource type for HTMLVideoElement.
PIXI