play(loop, playbackRate) → {Phaser.Video}
Starts this video playing if it's not already doing so.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
loop | boolean | <optional> | false | Should the video loop automatically when it reaches the end? Please note that at present some browsers (i.e. Chrome) do not support seamless video looping. |
playbackRate | number | <optional> | 1 | The playback rate of the video. 1 is normal speed, 2 is x2 speed, and so on. You cannot set a negative playback rate. |
Returns
This Video object for method chaining.
- Source code: gameobjects/Video.js (Line 635)
Please login to continue.