Class

TextureVideo

TextureVideo(path)

A texture to display video

Constructor

new TextureVideo(path)

Constructor
Parameters:
Name Type Default Description
path string null Path to the video file

View Source Textures/TextureVideo.js, line 9

Extends

Members

boolean

protected mipmap

Mipmap state
Inherited From:

View Source Textures/TextureInterface.js, line 30

boolean

protected ready

State
Overrides:

View Source Textures/TextureInterface.js, line 22

Methods

getDuration() → {number}

Get video's duration

View Source Textures/TextureVideo.js, line 76

The duration property returns the length of the current audio/video, in seconds
number

getVideoData() → {HTMLVideoElement}

Get video's data

View Source Textures/TextureVideo.js, line 85

The HTML video element
HTMLVideoElement

isMipmaped() → {boolean}

Indicates if the texture use mip-mapping
Inherited From:

View Source Textures/TextureInterface.js, line 47

True if the texture is mip-mapped
boolean

isReady() → {boolean}

Indicates if texture is ready
Inherited From:

View Source Textures/TextureInterface.js, line 38

True if the texture is ready to be use
boolean

isRepeated() → {boolean}

Indicates if the texture is repeated
Inherited From:

View Source Textures/TextureInterface.js, line 56

True if the texture is repeated
boolean

isSmoothed() → {boolean}

Indicates if the texture is smoothed
Inherited From:

View Source Textures/TextureInterface.js, line 65

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

View Source Textures/TextureVideo.js, line 35

pause()

Pause the video

View Source Textures/TextureVideo.js, line 51

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

View Source Textures/TextureVideo.js, line 67

useMipmap(value)

Indicates if the texture must use mip-mapping
Parameters:
Name Type Description
value boolean True to use mip-mapping
Inherited From:

View Source Textures/TextureInterface.js, line 74