Video#snapshot

[readonly] snapshot : Phaser.BitmapData A snapshot grabbed from the video. This is initially black. Populate it by calling Video.grab().When called the BitmapData is updated with a grab taken from the current video playing or active video stream.If Phaser has been compiled without BitmapData support this property will always be null. Source code: gameobjects/Video.js (Line 288)

Video#startMediaStream()

startMediaStream(captureAudio, width, height) → {Phaser.Video} Instead of playing a video file this method allows you to stream video data from an attached webcam. As soon as this method is called the user will be prompted by their browser to "Allow" access to the webcam.If they allow it the webcam feed is directed to this Video. Call Video.play to start the stream. If they block the webcam the onError signal will be dispatched containing the NavigatorUserMediaErroror MediaStreamError event.

Video#stop()

stop() → {Phaser.Video} Stops the video playing. This removes all locally set signals. If you only wish to pause playback of the video, to resume at a later time, use Video.paused = true instead.If the video hasn't finished downloading calling Video.stop will not abort the download. To do that you need tocall Video.destroy instead. If you are using a video stream from a webcam then calling Stop will disconnect the MediaStream session and disable the webcam. Returns Phaser.Video - This Vi

Video#texture

texture : PIXI.Texture The PIXI.Texture. Source code: gameobjects/Video.js (Line 263)

Video#textureFrame

textureFrame : Phaser.Frame The Frame this video uses for rendering. Source code: gameobjects/Video.js (Line 269)

Video#timeout

timeout : integer The amount of ms allowed to elapsed before the Video.onTimeout signal is dispatched while waiting for webcam access. Default Value 15000 Source code: gameobjects/Video.js (Line 119)

Video#touchLocked

touchLocked : boolean true if this video is currently locked awaiting a touch event. This happens on some mobile devices, such as iOS. Source code: gameobjects/Video.js (Line 81)

Video#type

type : number The const type of this object. Source code: gameobjects/Video.js (Line 70)

Video#unlock()

unlock() Enables the video on mobile devices, usually after the first touch.If the SoundManager hasn't been unlocked then this will automatically unlock that as well.Only one video can be pending unlock at any one time. Source code: gameobjects/Video.js (Line 1046)

Video#updateTexture()

updateTexture(event, width, height) Called automatically if the video source changes and updates the internal texture dimensions.Then dispatches the onChangeSource signal. Parameters Name Type Argument Description event object <optional> The event which triggered the texture update. width integer <optional> The new width of the video. If undefined video.videoWidth is used. height integer <optional> The new height of the video. If undefined video.videoHeight is used