CLASSES
TagsA - Z

VideoTexture

BaseTextureTexture

Description

class VideoTexture extends Texture

Constructor

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

Creates a video texture.

Sample : Video Texture

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) => void
constraints { minWidth: number, maxWidth: number, minHeight: number, maxHeight: number, deviceId: string }