Phaser API Documentation

  Version: 
Event: VIDEO_TEXTURE
Phaser.GameObjects.Events.VIDEO_TEXTURE
VIDEO_TEXTURE

Description:

The Video Game Object Texture Ready Event.

This event is dispatched by a Video Game Object when it has finished creating its texture.

This happens when the video has finished loading enough data for its first frame.

If you wish to use the Video texture elsewhere in your game, such as as a Sprite texture, then you should listen for this event first, before creating the Sprites that use it.

Listen for it from a Video Game Object instance using Video.on('textureready', listener).

Parameters:

name type description
video Phaser.GameObjects.Video

The Video Game Object that emitted the event.

texture Phaser.Textures.Texture

The Texture that was created.

Since: 3.60.0