Loads a Video from the given URL, ready for playback with the Video.play
method.
If a video is already playing, this method allows you to change the source of the current video element. It works by first stopping the current video and then starts playback of the new source through the existing video element.
The reason you may wish to do this is because videos that require interaction to unlock, remain in an unlocked state, even if you change the source of the video. By changing the source to a new video you avoid having to go through the unlock process again.
name | type | arguments | Default | description |
---|---|---|---|---|
urls | string | Array.<string> | Phaser.Types.Loader.FileTypes.VideoFileURLConfig | Array.<Phaser.Types.Loader.FileTypes.VideoFileURLConfig> | <optional> |
The absolute or relative URL to load the video files from. |
|
noAudio | boolean | <optional> | false |
Does the video have an audio track? If not you can enable auto-playing on it. |
crossOrigin | string | <optional> |
The value to use for the |
This Video Game Object for method chaining.