VideoTexture

BaseTextureTexture

Description

class VideoTexture extends Texture

Constructor

new VideoTexture(name, urlsOrVideo, HTMLVideoElement, scene, generateMipMaps, invertY, samplingMode)

Creates a video texture.

Sample : https://doc.babylonjs.com/tutorials/01._Advanced_Texturing

Parameters

Name Type Description
name string
urlsOrVideo string[] or HTMLVideoElement
scene Scene
optional generateMipMaps boolean
optional invertY boolean

Members

video : HTMLVideoElement

Methods

update() boolean

dispose() void

static CreateFromWebCam(scene, onReady, constraints) void

Parameters

Name Type Description
scene Scene
onReady videoTexture VideoTexture

|