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)
.
name | type | description |
---|---|---|
video | Phaser.GameObjects.Video |
The Video Game Object that emitted the event. |
texture | Phaser.Textures.Texture |
The Texture that was created. |