Optional
source: string | HTMLVideoElement | (string | IVideoResourceOptionsElement)[]Video element to use.
Optional
options: IVideoResourceOptionsOptions to use
Optional
autoLoad?: booleanOptional
autoPlay?: booleanOptional
crossorigin?: string | booleanOptional
loop?: booleanOptional
muted?: booleanOptional
playsinline?: booleanOptional
updateFPS?: numberProtected
_true
to use Ticker.shared to auto update the base texture.
Protected
_Internal height of the resource.
Protected
_true
if the instance is currently connected to PIXI.Ticker.shared to auto update the base texture.
Protected
_Protected
_Protected
_Internal width of the resource.
Protected
autoWhen set to true will automatically play videos used by this texture once they are loaded. If false, it will not modify the playing state.
Readonly
destroyedIf 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
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.
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
Optional
source: ImageSource(optional)
Static
crossSet cross origin based detecting the url and the crossorigin
Element to apply crossOrigin
URL to check
Optional
crossorigin: string | booleanCross origin value to use
Static
testUsed to auto-detect the type of resource.
The source object
Optional
extension: stringThe extension of source, if set
true
if video source
Resource type for HTMLVideoElement.
Memberof
PIXI