Video#grab()

grab(clear, alpha, blendMode) → {Phaser.BitmapData} Grabs the current frame from the Video or Video Stream and renders it to the Video.snapshot BitmapData. You can optionally set if the BitmapData should be cleared or not, the alpha and the blend mode of the draw. If you need more advanced control over the grabbing them call Video.snapshot.copy directly with the same parameters as BitmapData.copy. Parameters Name Type Argument Default Description clear boolean <optional> false Sho

Video#game

game : Phaser.Game A reference to the currently running game. Source code: gameobjects/Video.js (Line 46)

Video#duration

[readonly] duration : number The duration of the video in seconds. Source code: gameobjects/Video.js (Line 1187)

Video#disableTextureUpload

disableTextureUpload : boolean If true this video will never send its image data to the GPU when its dirty flag is true. This only applies in WebGL. Source code: gameobjects/Video.js (Line 75)

Video#destroy()

destroy() Destroys the Video object. This calls Video.stop and then Video.removeVideoElement.If any Sprites are using this Video as their texture it is up to you to manage those. Source code: gameobjects/Video.js (Line 1141)

Video#currentTime

currentTime : number The current time of the video in seconds. If set the video will attempt to seek to that point in time. Source code: gameobjects/Video.js (Line 1167)

Video#createVideoFromURL()

createVideoFromURL(url, autoplay) → {Phaser.Video} Creates a new Video element from the given URL. Parameters Name Type Argument Default Description url string The URL of the video. autoplay boolean <optional> false Automatically start the video? Returns Phaser.Video - This Video object for method chaining. Source code: gameobjects/Video.js (Line 530)

Video#createVideoFromBlob()

createVideoFromBlob(blob) → {Phaser.Video} Creates a new Video element from the given Blob. The Blob must contain the video data in the correct encoded format.This method is typically called by the Phaser.Loader and Phaser.Cache for you, but is exposed publicly for convenience. Parameters Name Type Description blob Blob The Blob containing the video data: Blob([new Uint8Array(data)]) Returns Phaser.Video - This Video object for method chaining. Source code: gameobjects/Video.js (Li

Video#connectToMediaStream()

connectToMediaStream(video, stream) → {Phaser.Video} Connects to an external media stream for the webcam, rather than using a local one. Parameters Name Type Description video HTMLVideoElement The HTML Video Element that the stream uses. stream MediaStream The Video Stream data. Returns Phaser.Video - This Video object for method chaining. Source code: gameobjects/Video.js (Line 311)

Video#complete()

complete() Called when the video completes playback (reaches and ended state).Dispatches the Video.onComplete signal. Source code: gameobjects/Video.js (Line 623)