VideoTexture
new VideoTexture(video: HTMLVideoElement)THREE equivalent: THREE.VideoTexture
Texture sourced from an HTMLVideoElement. Auto-updates each frame via the renderer when autoUpdate is true (the default).
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
autoUpdate |
boolean |
When true, the renderer calls update() automatically each frame. Default true. |
Methods
Section titled “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. |