LogoPixi’VN
pixi-jsVariables

Variable: loadVideoTextures

> const loadVideoTextures: object

Defined in: node_modules/pixi.js/lib/assets/loader/parsers/textures/loadVideoTextures.d.ts:55

A simple plugin to load video textures.

You can pass VideoSource options to the loader via the .data property of the asset descriptor when using Assets.load().

// Set the data
const texture = await Assets.load({
    src: './assets/city.mp4',
    data: {
        preload: true,
        autoPlay: true,
    },
});

Type Declaration

extension

> extension: object

extension.name

> name: string

extension.type

> type: LoadParser

id

> id: string

name

> name: string

used for deprecation purposes

load()

> load<T>(url, asset, loader): Promise<Texture<TextureSource<any>>>

Type Parameters

T

T

Parameters

url

string

asset

ResolvedAsset<LoadVideoData>

loader

Loader

Returns

Promise<Texture<TextureSource<any>>>

test()

> test(url): boolean

Parameters

url

string

Returns

boolean

unload()

> unload(texture): void

Parameters

texture

Texture

Returns

void

Advanced