pixi.js
    Preparing search index...

    Interface VideoSourceOptionsAdvanced

    Options for video sources.

    interface VideoSourceOptions {
        _resourceId?: number;
        addressMode?: WRAP_MODE;
        addressModeU?: WRAP_MODE;
        addressModeV?: WRAP_MODE;
        addressModeW?: WRAP_MODE;
        alphaMode?: ALPHA_MODES;
        antialias?: boolean;
        autoGarbageCollect?: boolean;
        autoGenerateMipmaps?: boolean;
        autoLoad?: boolean;
        autoPlay?: boolean;
        compare?: COMPARE_FUNCTION;
        crossorigin?: string | boolean;
        destroyed?: boolean;
        dimensions?: TEXTURE_DIMENSIONS;
        format?: TEXTURE_FORMATS;
        height?: number;
        label?: string;
        lodMaxClamp?: number;
        lodMinClamp?: number;
        loop?: boolean;
        magFilter?: SCALE_MODE;
        maxAnisotropy?: number;
        minFilter?: SCALE_MODE;
        mipLevelCount?: number;
        mipmapFilter?: SCALE_MODE;
        muted?: boolean;
        playsinline?: boolean;
        preload?: boolean;
        preloadTimeoutMs?: number;
        resolution?: number;
        resource?: HTMLVideoElement;
        scaleMode?: SCALE_MODE;
        updateFPS?: number;
        width?: number;
        wrapMode?: WRAP_MODE;
        destroy(): void;
        update(): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _resourceId?: number
    addressMode?: WRAP_MODE

    setting this will set wrapModeU,wrapModeV and wrapModeW all at once!

    addressModeU?: WRAP_MODE

    specifies the {{GPUAddressMode|address modes}} for the texture width, height, and depth coordinates, respectively.

    addressModeV?: WRAP_MODE

    specifies the {{GPUAddressMode|address modes}} for the texture width, height, and depth coordinates, respectively.

    addressModeW?: WRAP_MODE

    Specifies the {{GPUAddressMode|address modes}} for the texture width, height, and depth coordinates, respectively.

    alphaMode?: ALPHA_MODES

    The alpha mode of the video.

    antialias?: boolean

    Only really affects RenderTextures. Should we use antialiasing for this texture. It will look better, but may impact performance as a Blit operation will be required to resolve the texture.

    autoGarbageCollect?: boolean

    If true, the Garbage Collector will unload this texture if it is not used after a period of time

    autoGenerateMipmaps?: boolean

    Should we auto generate mipmaps for this texture? This will automatically generate mipmaps for this texture when uploading to the GPU. Mipmapped textures take up more memory, but can look better when scaled down.

    For performance reasons, it is recommended to NOT use this with RenderTextures, as they are often updated every frame. If you do, make sure to call updateMipmaps after you update the texture.

    autoLoad?: boolean

    If true, the video will start loading immediately.

    autoPlay?: boolean

    If true, the video will start playing as soon as it is loaded.

    When provided the sampler will be a comparison sampler with the specified COMPARE_FUNCTION. Note: Comparison samplers may use filtering, but the sampling results will be implementation-dependent and may differ from the normal filtering rules.

    crossorigin?: string | boolean

    If true, the video will be loaded with the crossorigin attribute.

    destroyed?: boolean = false

    Has the style been destroyed?

    dimensions?: TEXTURE_DIMENSIONS

    how many dimensions does this texture have? currently v8 only supports 2d

    the format that the texture data has

    height?: number

    the pixel height of this texture source. This is the REAL pure number, not accounting resolution

    label?: string

    optional label, can be used for debugging

    lodMaxClamp?: number

    Specifies the minimum and maximum levels of detail, respectively, used internally when sampling a texture.

    lodMinClamp?: number

    specifies the minimum and maximum levels of detail, respectively, used internally when sampling a texture.

    loop?: boolean

    If true, the video will loop when it ends.

    magFilter?: SCALE_MODE

    specifies the sampling behavior when the sample footprint is smaller than or equal to one texel.

    maxAnisotropy?: number

    Specifies the maximum anisotropy value clamp used by the sampler. Note: Most implementations support TextureStyle#maxAnisotropy values in range between 1 and 16, inclusive. The used value of TextureStyle#maxAnisotropy will be clamped to the maximum value that the platform supports.

    setting this to anything higher than 1 will set scale modes to 'linear'

    minFilter?: SCALE_MODE

    specifies the sampling behavior when the sample footprint is larger than one texel.

    mipLevelCount?: number

    The number of mip levels to generate for this texture. this is overridden if autoGenerateMipmaps is true

    mipmapFilter?: SCALE_MODE

    specifies behavior for sampling between mipmap levels.

    muted?: boolean

    If true, the video will be muted.

    playsinline?: boolean

    If true, the video will play inline.

    preload?: boolean

    If true, the video will be preloaded.

    preloadTimeoutMs?: number

    The time in milliseconds to wait for the video to preload before timing out.

    resolution?: number

    the resolution of the texture.

    resource?: HTMLVideoElement

    the resource that will be uploaded to the GPU. This is where we get our pixels from eg an ImageBimt / Canvas / Video etc

    scaleMode?: SCALE_MODE

    setting this will set magFilter,minFilter and mipmapFilter all at once!

    updateFPS?: number

    The number of times a second to update the texture from the video. Leave at 0 to update at every render.

    width?: number

    the pixel width of this texture source. This is the REAL pure number, not accounting resolution

    wrapMode?: WRAP_MODE

    Methods