Phaser API Documentation

  Version: 
video(x, y, [key])

Description:

Creates a new Video Game Object and adds it to the Scene.

Note: This method will only be available if the Video Game Object has been built into Phaser.

Parameters:

name type arguments description
x number

The horizontal position of this Game Object in the world.

y number

The vertical position of this Game Object in the world.

key string <optional>

Optional key of the Video this Game Object will play, as stored in the Video Cache.

Returns:
Description:

The Game Object that was created.

Since: 3.20.0