Video#play()

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 play

Video#playbackRate

playbackRate : number Gets or sets the playback rate of the Video. This is the speed at which the video is playing. Source code: gameobjects/Video.js (Line 1337)

Video#playing

[readonly] playing : boolean True if the video is currently playing (and not paused or ended), otherwise false. Source code: gameobjects/Video.js (Line 1391)

Video#progress

[readonly] progress : number The progress of this video. This is a value between 0 and 1, where 0 is the start and 1 is the end of the video. Source code: gameobjects/Video.js (Line 1202)

Video#removeVideoElement()

removeVideoElement() Removes the Video element from the DOM by calling parentNode.removeChild on itself.Also removes the autoplay and src attributes and nulls the reference. Source code: gameobjects/Video.js (Line 1111)

Video#render()

render() If the game is running in WebGL this will push the texture up to the GPU if it's dirty.This is called automatically if the Video is being used by a Sprite, otherwise you need to remember to call it in your render function.If you wish to suppress this functionality set Video.disableTextureUpload to true. Source code: gameobjects/Video.js (Line 859)

Video#retry

retry : integer The current retry attempt. Source code: gameobjects/Video.js (Line 155)

Video#retryInterval

retryInterval : integer The number of ms between each retry at monitoring the status of a downloading video. Default Value 500 Source code: gameobjects/Video.js (Line 161)

Video#retryLimit

retryLimit : integer When starting playback of a video Phaser will monitor its readyState using a setTimeout call.The setTimeout happens once every Video.retryInterval ms. It will carry on monitoring the videostate in this manner until the retryLimit is reached and then abort. Default Value 20 Source code: gameobjects/Video.js (Line 149)

Video#setTouchLock()

setTouchLock() Sets the Input Manager touch callback to be Video.unlock.Required for mobile video unlocking. Mostly just used internally. Source code: gameobjects/Video.js (Line 1033)