Lens Studio v1.5.0+
Inherits from TextureProvider
Controls a video texture resource. Can be accessed through Texture.control.
Returns the number of times the video has played consecutively.
Returns the status of the video resource.
Pauses the video playback.
play(Number playCount) :
Plays the video
playCount times. If
playCount is less than 0, it loops infinitely.
Resumes the video playback.
setOnFinish(function callback) :
callback as the function invoked when the video resource stops playing.
setOnReady(function onReadyCallback) :
callback as the function invoked when the video resource is ready to be played.
Stops the video playback.
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 width of the texture in pixels.
Returns the name of this object’s type.
isOfType(String type) :
Returns true if the object matches or derives from the passed in type.
// Plays a video texture //@input Asset.Texture movie var loops = 100; var provider = script.movie.control; provider.play(loops);
Still Looking for help?Visit Support