Skip to main content

VideoStatus

Enum

Describes the current status of a VideoTextureProvider.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Since Lens Scripting v148

Index

Example

// Check if the video is playing
//@input Asset.Texture videoTexture
var provider = script.videoTexture.control;
if(provider.getStatus() == VideoStatus.Playing){
print("Video is playing");
}

Enumeration Members

Paused

Paused: number

The video playback is paused, resources loaded, at current position

Since

Lens Scripting Version 148


Playing

Playing: number

The video is playing

Since

Lens Scripting Version 148


Preparing

Preparing: number

The video is being prepared

Since

Lens Scripting Version 148


Stopped

Stopped: number

The video playback is stopped, resources loaded, at position 0

Since

Lens Scripting Version 148


Unloaded

Unloaded: number

The video is unloaded (no resources allocated)

Since

Lens Scripting Version 148