Phaser API Documentation

  Version: 
createVideoTexture(srcVideo, [noRepeat], [flipY])

Description:

Creates a new WebGL Texture based on the given HTML Video Element.

Parameters:

name type arguments Default description
srcVideo HTMLVideoElement

The Video to create the WebGL Texture from

noRepeat boolean <optional> false

Should this canvas be allowed to set REPEAT?

flipY boolean <optional> false

Should the WebGL Texture set UNPACK_MULTIPLY_FLIP_Y?

Returns:
Description:

The newly created WebGL Texture.

Type:
  • WebGLTexture
Since: 3.20.0