video(key, url) → {Phaser.Video}
Create a Video object.
This will return a Phaser.Video object which you can pass to a Sprite to be used as a texture.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
key | string | null | <optional> | null | The key of the video file in the Phaser.Cache that this Video object will play. Set to |
url | string | null | <optional> | null | If the video hasn't been loaded then you can provide a full URL to the file here (make sure to set key to null) |
Returns
The newly created Video object.
- Source code: gameobjects/GameObjectFactory.js (Line 510)
Please login to continue.