Skip to content

Commit f5128a4

Browse files
committed
Fixed Video return type. Fix phaserjs#5003
1 parent 58d40fa commit f5128a4

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/gameobjects/video/VideoFactory.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,18 @@ var Video = require('./Video');
88
var GameObjectFactory = require('../GameObjectFactory');
99

1010
/**
11-
* Creates a new Image Game Object and adds it to the Scene.
11+
* Creates a new Video Game Object and adds it to the Scene.
1212
*
13-
* Note: This method will only be available if the Image Game Object has been built into Phaser.
13+
* Note: This method will only be available if the Video Game Object has been built into Phaser.
1414
*
1515
* @method Phaser.GameObjects.GameObjectFactory#video
1616
* @since 3.20.0
1717
*
1818
* @param {number} x - The horizontal position of this Game Object in the world.
1919
* @param {number} y - The vertical position of this Game Object in the world.
20-
* @param {string} texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager.
21-
* @param {(string|integer)} [frame] - An optional frame from the Texture this Game Object is rendering with.
20+
* @param {string} [key] - Optional key of the Video this Game Object will play, as stored in the Video Cache.
2221
*
23-
* @return {Phaser.GameObjects.Image} The Game Object that was created.
22+
* @return {Phaser.GameObjects.Video} The Game Object that was created.
2423
*/
2524
GameObjectFactory.register('video', function (x, y, key)
2625
{

0 commit comments

Comments
 (0)