Optional
source: string | HTMLVideoElement | (string | IVideoResourceOptionsElement)[]Video element to use.
Optional
options: IVideoResourceOptionsOptions to use
Readonly
destroyedIf resource has been destroyed.
false
true
if resource is created by BaseTexture
useful for doing cleanup with BaseTexture destroy
and not cleaning up resources that were created
externally.
Override the source to be the video element.
The url of the resource
Static
Readonly
MIME_Map of video MIME types that can't be directly derived from file extensions.
Static
Readonly
TYPESList of common video file extensions supported by VideoResource.
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. If 0, requestVideoFrameCallback
is used to
update the texture. If requestVideoFrameCallback
is not available, the texture is updated 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
Start preloading the video resource.
Handle the validate event
Set the style, optional to override
yeah, renderer!
the texture
texture instance for this webgl context
true
is successUnbind to a parent BaseTexture
Parent texture
Upload the texture to the GPU.
Upload to the renderer
Reference to parent texture
Optional
source: ImageSource(optional)
Static
crossStatic
testGenerated using TypeDoc
Resource type for HTMLVideoElement.
Memberof
PIXI