Optionalsource: string | HTMLVideoElement | (string | IVideoResourceOptionsElement)[]Video element to use.
Optionaloptions: IVideoResourceOptionsOptions to use
OptionalautoLoad?: booleanOptionalautoPlay?: booleanOptionalcrossorigin?: string | booleanOptionalloop?: booleanOptionalmuted?: booleanOptionalplaysinline?: booleanOptionalupdateFPS?: numberReadonlydestroyedIf resource has been destroyed.
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 ReadonlyMIME_Map of video MIME types that can't be directly derived from file extensions.
Static ReadonlyTYPESList 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.
Call when destroying resource, unbind any BaseTexture object before calling this method, as reference counts are maintained internally.
Destroys this texture.
Trigger a resize event
X dimension
Y dimension
Set the style, optional to override
yeah, renderer!
the texture
texture instance for this webgl context
true is successTrigger updating of the texture.
Optional_deltaTime: numbertime delta since last tick
Upload the texture to the GPU.
Upload to the renderer
Reference to parent texture
Optionalsource: ImageSource(optional)
StaticcrossSet cross origin based detecting the url and the crossorigin
Element to apply crossOrigin
URL to check
Optionalcrossorigin: string | booleanCross origin value to use
StatictestUsed to auto-detect the type of resource.
The source object
Optionalextension: stringThe extension of source, if set
true if video source
Resource type for HTMLVideoElement.
Memberof
PIXI