VideoStatus
Lens Studio v1.5.0+
Description
Describes the current status of a VideoTextureProvider.
Enum Value | Description |
---|---|
VideoStatus.Stopped |
The video playback has stopped |
VideoStatus.Preparing |
The video is being prepared |
VideoStatus.Playing |
The video is playing |
VideoStatus.Paused |
The video playback is paused |
Examples
// Check if the video is playing
//@input Asset.Texture videoTexture
var provider = script.videoTexture.control;
if(provider.getStatus() == VideoStatus.Playing){
print("Video is playing");
}
Still Looking for help?
Visit Support