Protected
constructorReadonly
currentReturns the number of played cycles.
Readonly
currentReturns the current time in seconds, or zero if accessed during playback being in unprepared state.
Readonly
durationReturns the duration of playback range in seconds, or zero if accessed while playback is in an unprepared state.
Readonly
isReturns true if video file has been loaded and is ready for decoding and false otherwise.
Readonly
lastReturns the time of the last acquired texture in seconds, or zero if accessed during playback being in unprepared state.
Readonly
onThe event for being reported about playback finished. When this event is triggered, lens developers can evict this texture from material slots to avoid disrupting user's experience.
Readonly
onThe event for being reported about playback start. When this event is triggered, lens developers can set video texture to material slots and see actual video frames.
The playback rate of the video. The rate is set when starting playback, meaning that updates to this property does not take effect until the video is stopped and started again. Defaults to 1.
Sets or returns playback end time in unit range.
Sets or returns playback start time in unit range.
Readonly
statusA read-only property that returns the status of provider. Suggested as a substitution for the existing getStatus()
Readonly
totalReturns the duration of loaded video file in seconds, or zero if accessed during playback being in unprepared state.
The audio volume of the video resource, normalized from 0 to 1.
Returns the texture's aspect ratio, which is calculated as width / height.
Returns the height of the texture in pixels.
Returns the name of this object's type.
Returns the width of the texture in pixels.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Pauses the video playback.
Plays the video playCount
times. If playCount
is less than 0, it loops infinitely.
Resumes the video playback.
Sets the current playback time to the specified time in seconds.
Stops the video playback.
Controls a video texture resource. Can be accessed through Texture.control.
Example