Phaser API Documentation

  Version: 
updateVideoTexture(srcVideo, dstTexture, [flipY])

Description:

Updates a WebGL Texture based on the given HTML Video Element.

Parameters:

name type arguments Default description
srcVideo HTMLVideoElement

The Video to update the WebGL Texture with.

dstTexture WebGLTexture

The destination WebGL Texture to update.

flipY boolean <optional> false

Should the WebGL Texture set UNPACK_MULTIPLY_FLIP_Y?

Returns:
Description:

The updated WebGL Texture.

Type:
  • WebGLTexture
Since: 3.20.0