VideoTexture

new VideoTexture(video: HTMLVideoElement)
THREE: THREE.VideoTexture

Texture sourced from an HTMLVideoElement. Auto-updates each frame via the renderer when autoUpdate is true (the default).

Properties

NameTypeDescription
autoUpdate

boolean

When true, the renderer calls update() automatically each frame. Default true.

Methods

MethodDescription
update(): void

Sets needsUpdate = true when the video's readyState indicates a current frame is available. Called automatically when autoUpdate is true.