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
| Name | Type | Description |
|---|---|---|
autoUpdate | boolean | When true, the renderer calls update() automatically each frame. Default true. |
Methods
| Method | Description |
|---|---|
update(): void | Sets needsUpdate = true when the video's readyState indicates a current frame is available. Called automatically when autoUpdate is true. |