Constructor
new TextureVideo(path)
Constructor
Parameters:
Name | Type | Default | Description |
---|---|---|---|
path |
string | null | Path to the video file |
Extends
Members
boolean
protected mipmap
Mipmap state
- Inherited From:
boolean
protected ready
State
Methods
getDuration() → {number}
Get video's duration
The duration property returns the length of the current audio/video, in seconds
number
getVideoData() → {HTMLVideoElement}
Get video's data
The HTML video element
HTMLVideoElement
isMipmaped() → {boolean}
Indicates if the texture use mip-mapping
- Inherited From:
True if the texture is mip-mapped
boolean
isReady() → {boolean}
Indicates if texture is ready
- Inherited From:
True if the texture is ready to be use
boolean
isRepeated() → {boolean}
Indicates if the texture is repeated
- Inherited From:
True if the texture is repeated
boolean
isSmoothed() → {boolean}
Indicates if the texture is smoothed
- Inherited From:
True if the texture is smoothed
boolean
loadFromFile(path)
Load the video from a file
Parameters:
Name | Type | Description |
---|---|---|
path |
string | Path to the video file |
setSpeed(valueopt)
Set video's playback speed
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
value |
number |
<optional> |
1 | 0.5 is half speed, 1.0 is normal speed, 2.0 is double speed |
useMipmap(value)
Indicates if the texture must use mip-mapping
Parameters:
Name | Type | Description |
---|---|---|
value |
boolean | True to use mip-mapping |
- Inherited From: